1# $NetBSD: GENERIC,v 1.192 2024/01/13 19:31:39 tsutsui Exp $
2#
3# GENERIC machine description file
4#
5# This machine description file is used to generate the default NetBSD
6# kernel.  The generic kernel does not include all options, subsystems
7# and device drivers, but should be useful for most applications.
8#
9# The machine description file can be customised for your specific
10# machine to reduce the kernel size and improve its performance.
11#
12# For further information on compiling NetBSD kernels, see the config(8)
13# man page.
14#
15# For further information on hardware support for this architecture, see
16# the intro(4) man page.  For further information about kernel options
17# for this architecture, see the options(4) man page.  For an explanation
18# of each device driver in this file see the section 4 man page for the
19# device.
20
21# Supports Sun3 (3/50, 3/60, 3/110, 3/160, 3/260, 3/E)
22# Supports root on: ie0, le0, sd*, ...
23
24include   "arch/sun3/conf/std.sun3"
25
26#options  INCLUDE_CONFIG_FILE # embed config file in kernel binary
27
28#ident              "GENERIC-$Revision: 1.192 $"
29
30makeoptions         COPTS="-Os -fno-unwind-tables -fno-omit-frame-pointer"
31          # Bootloader has size limit (~2MB). -fno-omit-frame-pointer is
32          # necessary for backtraces in DDB.
33
34# Machines to be supported by this kernel
35options   FPU_EMULATE
36options   HAVECACHE           # Sun3/260 VAC
37
38# Needs to be set per system.  i.e change these as you see fit
39maxusers  4
40
41# Standard system options
42options   KTRACE              # system call tracing
43options   SYSVMSG             # System V message queues
44options   SYSVSEM             # System V semaphores
45options   SYSVSHM             # System V shared memory
46
47#options  MODULAR             # new style module(7) framework
48#options  MODULAR_DEFAULT_AUTOLOAD
49
50#options  INSECURE  # disable kernel security level
51#options  USERCONF  # userconf(4) support
52options   PIPE_SOCKETPAIR     # smaller, but slower pipe(2)
53#options  SYSCTL_INCLUDE_DESCR          # Include sysctl descriptions in kernel
54
55# Alternate buffer queue strategies for better responsiveness under high
56# disk I/O load.
57#options  BUFQ_READPRIO
58#options  BUFQ_PRIOCSCAN
59
60# Which kernel debugger?  Uncomment either this:
61options   DDB
62# ... or these for KGDB (gdb remote target)
63makeoptions         DEBUG="-g"          # debugging symbols for gdb
64#options  KGDB
65#options  KGDB_DEV=0x0C01     # ttya=0C00 ttyb=0C01
66
67# Other debugging options
68options   DDB_HISTORY_SIZE=512          # enable history editing in DDB
69#options  DEBUG               # kernel debugging code
70#options  DIAGNOSTIC          # extra kernel sanity checking
71#options  PMAP_DEBUG
72#options  SCSIDEBUG
73#options  SCSIVERBOSE                   # Verbose SCSI errors
74
75# Compatibility options
76# Originally in NetBSD 1.0, but limited to 6.0 for size.
77#include  "conf/compat_netbsd10.config"
78include   "conf/compat_netbsd60.config"
79
80#options  COMPAT_SUNOS        # can run SunOS 4.1.1 executables
81#options  COMPAT_AOUT_M68K # support for NetBSD a.out executables
82#options  COMPAT_LINUX        # can run Linux/m68k executables
83#options  COMPAT_OSSAUDIO     # can run Linux/m68k executables
84#options  EXEC_AOUT # support for a.out executables
85
86# File systems
87file-system         FFS                 # Berkeley Fast Filesystem
88file-system         NFS                 # Sun NFS client support
89file-system         CD9660              # ISO 9660 + Rock Ridge file system
90#file-system        FDESC               # /dev/fd/*
91#file-system        KERNFS              # /kern
92file-system         NULLFS              # loopback file system
93#file-system        OVERLAY             # overlay file system
94file-system         PROCFS              # /proc
95#file-system        UNION               # union file system
96file-system         MFS                 # memory-based filesystem
97file-system         PTYFS               # /dev/pts/N support
98# Disabled as 20KB larger than MFS.
99#file-system        TMPFS               # Efficient memory file-system
100#file-system        UDF                 # experimental - OSTA UDF CD/DVD file-system
101
102# File system options
103#options  FFS_EI              # FFS Endian Independent support
104options   FFS_NO_SNAPSHOT     # No FFS snapshot support
105#options  QUOTA               # legacy UFS quotas
106#options  QUOTA2              # new, in-filesystem UFS quotas
107#options  UFS_DIRHASH         # UFS Large Directory Hashing
108#options  UFS_EXTATTR         # Extended attribute support for UFS1
109#options  WAPBL               # File system journaling support
110#options  NFSSERVER # Network File System server
111
112# Networking options
113options   INET                # IP protocol stack support
114#options  INET6               # IPV6
115#options  IPSEC               # IP security
116#options  IPSEC_DEBUG         # debug for IP security
117#options  GATEWAY             # IP packet forwarding
118#options  TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
119
120#options  ALTQ                # Manipulate network interfaces' output queues
121#options  ALTQ_BLUE # Stochastic Fair Blue
122#options  ALTQ_CBQ  # Class-Based Queueing
123#options  ALTQ_CDNR # Diffserv Traffic Conditioner
124#options  ALTQ_FIFOQ          # First-In First-Out Queue
125#options  ALTQ_FLOWVALVE      # RED/flow-valve (red-penalty-box)
126#options  ALTQ_HFSC # Hierarchical Fair Service Curve
127#options  ALTQ_LOCALQ         # Local queueing discipline
128#options  ALTQ_PRIQ # Priority Queueing
129#options  ALTQ_RED  # Random Early Detection
130#options  ALTQ_RIO  # RED with IN/OUT
131#options  ALTQ_WFQ  # Weighted Fair Queueing
132
133# Work-around for root on slow servers (insurance...)
134options   NFS_BOOT_RWSIZE=1024
135options   NFS_BOOT_BOOTPARAM
136
137config              netbsd root on ? type ?
138
139# On-board I/O space (required)
140include "arch/sun3/conf/obio.sun3"
141
142# On-board memory (optional)
143# See frame-buffers
144obmem0 at mainbus?
145
146# VME bus support (optional)
147# One unit for each address space
148vme0 at mainbus? # A16/D16
149vme1 at mainbus? # A16/D32
150vme2 at mainbus? # A24/D16
151vme3 at mainbus? # A24/D32
152vme4 at mainbus? # A32/D16
153vme5 at mainbus? # A32/D32
154
155#
156# Serial ports
157#
158zstty0    at zsc1 channel 0   # ttya
159zstty1    at zsc1 channel 1   # ttyb
160
161kbd0      at zsc0 channel 0   # keyboard
162ms0       at zsc0 channel 1   # mouse
163
164#
165# Network devices
166#
167
168# Intel Ethernet (onboard, or VME)
169ie0 at obio0 addr 0x0C0000 ipl 3
170ie1 at vme2 addr 0xe88000 ipl 3 vect 0x75
171
172# Lance Ethernet (only onboard)
173le0 at obio0 addr 0x120000 ipl 3
174
175# All Sun3 machines with an "le" (3/50, 3/60) should be
176# presumed to have the old, buggy LANCE chip. (Rev. C)
177options   LANCE_REVC_BUG
178
179#
180# Disk and tape devices
181#
182
183# Sun3 "si" SCSI controller (NCR 5380)
184# This driver has several flags which may be enabled using
185# the "flags" directive.  Valid flags are:
186#
187# 0x000ff Set (1<<target) to disable disconnect/reselect
188# 0x0ff00 Set (1<<(target+8)) to disable parity checking
189# 0x10000 Set this bit to disable DMA interrupts (poll)
190# 0x20000 Set this bit to disable DMA entirely (use PIO)
191#
192# For example: "flags 0x1000f" would disable DMA interrupts,
193# and disable disconnect/reselect for targets 0-3
194si0 at obio0 addr 0x140000 ipl 2
195si0 at vme2 addr 0x200000 ipl 2 vect 0x40
196si1 at vme2 addr 0x204000 ipl 2 vect 0x41
197
198# Xylogics 450/451 controllers (VME A16/D16)
199xyc0 at vme0 addr 0xee40 ipl 2 vect 0x48
200xyc1 at vme0 addr 0xee48 ipl 2 vect 0x49
201xy* at xyc? drive ?
202
203# Xylogics 7053 controllers (VME A16/D32)
204xdc0 at vme1 addr 0xee80 ipl 2 vect 0x44
205xdc1 at vme1 addr 0xee90 ipl 2 vect 0x45
206xd* at xdc? drive ?
207
208# Xylogics 472 tape controllers?
209
210# Sun3/E SCSI+Ethernet board (VME A24/D16)
211# Note: the board uses vect and vect+1
212sebuf0 at vme2 addr 0x300000 ipl 2 vect 0x74 # and 0x75
213sebuf1 at vme2 addr 0x340000 ipl 2 vect 0x76 # and 0x77
214si* at sebuf?
215ie* at sebuf?
216
217#
218# Frame buffer devices
219#
220
221include "arch/sun3/conf/bw2.sun3"
222include "arch/sun3/conf/cg4.sun3"
223
224# 3/60 P4 accelerated 8-bit color frame buffer
225# cgsix0 at obmem0 addr 0xff000000
226
227# 3/60 P4 24-bit color frame buffer
228# cgeight0 at obmem0 addr 0xff300000
229
230# Sun-3 color board, or CG5 8-bit frame buffer (VME A24/D16).
231cgtwo0 at vme2 addr 0x400000 ipl 4 vect 0xA8
232
233# Support for the CG9 24-bit frame buffer (VME A32/D32).
234# cgnine0 at vme5 addr 0x08000000 ipl 4 vect 0xAA
235
236#
237# SCSI infrastructure
238#
239scsibus* at scsi?
240
241sd* at scsibus? target ? lun ?                    # SCSI disks
242st* at scsibus? target ? lun ?                    # SCSI tapes
243cd* at scsibus? target ? lun ?                    # SCSI CD-ROMs
244#ch* at scsibus? target ? lun ?                   # SCSI changer devices
245#ss* at scsibus? target ? lun ?                   # SCSI scanners
246uk* at scsibus? target ? lun ?                    # unknown SCSI devices
247
248#
249# accept filters
250#pseudo-device   accf_data              # "dataready" accept filter
251#pseudo-device   accf_http              # "httpready" accept filter
252
253# Memory-disk drivers
254pseudo-device       md
255
256# Misc.
257pseudo-device       loop                          # network loopback
258pseudo-device       bpfilter            # packet filter
259#pseudo-device      carp                          # Common Address Redundancy Protocol
260pseudo-device       sl                            # CSLIP
261#pseudo-device      ppp                           # PPP
262#pseudo-device      pppoe                         # PPP over Ethernet (RFC 2516)
263#pseudo-device      tun                           # network tunneling over tty
264#pseudo-device      tap                           # virtual Ethernet
265#pseudo-device      gre                           # generic L3 over IP tunnel
266#pseudo-device      npf                           # NPF packet filter
267#pseudo-device      gif                           # IPv[46] over IPv[46] tunnel (RFC1933)
268#pseudo-device      faith                         # IPv[46] tcp relay translation i/f
269#pseudo-device      stf                           # 6to4 IPv6 over IPv4 encapsulation
270#pseudo-device      vlan                          # IEEE 802.1q encapsulation
271#pseudo-device      bridge                        # simple inter-network bridging
272#pseudo-device      vether                        # Virtual Ethernet for bridge
273#pseudo-device      agr                           # IEEE 802.3ad link aggregation
274
275pseudo-device       pty                           # pseudo-terminals
276#pseudo-device      vnd                           # paging to files
277#options  VND_COMPRESSION               # compressed vnd(4)
278#pseudo-device      ccd                           # concatenated disks
279#pseudo-device      cgd                           # cryptographic disk devices
280#pseudo-device      raid                          # RAIDframe disk driver
281#options  RAID_AUTOCONFIG               # auto-configuration of RAID components
282# Options to enable various other RAIDframe RAID types.
283#options  RF_INCLUDE_EVENODD=1
284#options  RF_INCLUDE_RAID5_RS=1
285#options  RF_INCLUDE_PARITYLOGGING=1
286#options  RF_INCLUDE_CHAINDECLUSTER=1
287#options  RF_INCLUDE_INTERDECLUSTER=1
288#options  RF_INCLUDE_PARITY_DECLUSTERING=1
289#options  RF_INCLUDE_PARITY_DECLUSTERING_DS=1
290#pseudo-device      fss                           # file system snapshot device
291pseudo-device       clockctl            # user control of clock subsystem
292pseudo-device       ksyms                         # /dev/ksyms
293#pseudo-device      swwdog                        # software watchdog timer -- swwdog(4)
294
295# Veriexec
296# include "dev/veriexec.config"
297
298# Pull in optional local configuration - always at end
299cinclude  "arch/sun3/conf/GENERIC.local"
300