GENERIC revision 1.23 1 # $NetBSD: GENERIC,v 1.23 2000/01/23 23:46:19 hubertf Exp $
2
3 include "arch/sparc64/conf/std.sparc64"
4
5 #ident "GENERIC-$Revision: 1.23 $"
6
7 maxusers 32
8
9 ## System kernel configuration. See options(4) for more detail.
10
11
12 # Options for variants of the Sun SPARC architecure.
13 # We currently support three architecture types; at least one is required.
14 options SUN4U # sun4u - Ultra 140 and 170
15 options TRAPWIN
16 options __ELF__ # we use elf
17 #options _LP64 # we're using a 64-bit compiler
18
19 ## System options specific to the sparc machine type
20
21 ## Use a faster console than the PROM's slow drawing routines. Not needed
22 ## for headless (no framebuffer) machines.
23 # XXX broken on sparc64
24 #options RASTERCONSOLE # fast rasterop console
25
26 #### System options that are the same for all ports
27
28 ## Root device configuration: change the ?'s if you are going to use a
29 ## nonstandard root partition (other than where the kernel is booted from)
30 ## and/or nonstandard root type (not ffs or nfs). Normally this can be
31 ## automagically determined at boot time.
32
33 config netbsd root on ? type ?
34
35 ## UVM options.
36 #options UVM_PAGE_TRKOWN
37 #options UVMHIST
38 #options UVMHIST_PRINT # Loud!
39
40 ## System call tracing (see ktrace(1)).
41 options KTRACE
42
43 ## Collect statistics on kernel malloc's and free's. This does have a
44 ## significant performance hit on slower machines, so it is intended for
45 ## diagnostic use only.
46 #options KMEMSTATS
47
48 ## System V compatible IPC subsystem. (msgctl(2), semctl(2), and shmctl(2))
49 options SYSVMSG # System V message queues
50 options SYSVSEM # System V semaphores
51 options SYSVSHM # System V shared memory
52 #options SHMMAXPGS=1024 # 1024 pages is the default
53
54 ## Loadable kernel module support; still under development.
55 options LKM
56
57 ## NFS boot options; default on sparc is the bootparam protocol
58 options NFS_BOOT_BOOTPARAM
59 #options NFS_BOOT_BOOTP
60 #options NFS_BOOT_DHCP
61
62 #### Debugging options
63
64 ## The DDB in-kernel debugger runs at panic (unless DDB_ONPANIC=0), or at
65 ## serial console break or keyboard reset, where the PROM would normally
66 ## intercept. DDB_HISTORY_SIZE adds up/down arrow command history.
67 # we enable DDB in GENERIC for now.
68 options DDB # kernel dynamic debugger
69 options DDB_HISTORY_SIZE=100 # enable history editing in DDB
70 #options DDB_ONPANIC # see also sysctl(8): `ddb.onpanic'
71
72 ## You may also use gdb, on another computer connected to this machine over
73 ## a serial port. Both KGDBDEV and KGDBRATE should be specified; KGDBDEV is
74 ## a dev_t encoded device number of the serial port to use.
75 ## (0xc01 = ttya, 0xc02 = ttyb.)
76 #options KGDB # support for kernel gdb
77 #options KGDBDEV=0xc01 # kgdb device number (this sample is `ttyb')
78 #options KGDBRATE=38400 # baud rate
79
80
81 ## Compile the kernel with debugging symbols (`netbsd.gdb' is the debug file),
82 ## such that gdb(1) can be used on a kernel coredump.
83
84 #makeoptions DEBUG="-g"
85
86
87 ## Adds code to the kernel that does internal consistency checks, and will
88 ## cause the kernel to panic if corruption of internal data structures
89 ## is detected.
90 #options DIAGNOSTIC # extra kernel sanity checking
91
92 ## Enable (possibly expensive) debugging code that may also display messages
93 ## on the system console
94 #options DEBUG
95
96 ## Make SCSI error messages more verbose when explaining their meanings.
97 options SCSIVERBOSE
98 options PCIVERBOSE
99
100 ## `INSECURE' turns off the kernel security level (securelevel = 0 always).
101 ## This allows writing to /dev/mem, loading kernel modules while multi-user,
102 ## and other insecurities good only for development work. Do not use this
103 ## option on a production machine.
104 #options INSECURE
105
106 ## Allow non-root users to grab /dev/console with programs such as xconsole.
107 ## `xconsole' therefore does not need setuid root with this option enabled.
108 #options UCONSOLE
109
110 ## `FDSCRIPTS' allows non-readable but executable scripts by providing a
111 ## pre-opened opaque file to the script interpreter. `SETUIDSCRIPTS',
112 ## which implies FDSCRIPTS, allows scripts to be set-user-id using the same
113 ## opaque file mechanism. Perl calls this "secure setuid scripts."
114
115 #options FDSCRIPTS
116 #options SETUIDSCRIPTS
117
118 ## Options for compatibility with previous releases foreign system binaries.
119 ## In the cases of COMPAT_SUNOS and COMPAT_SVR4, you may need to set up
120 ## additional user-level utilities or system configuration files. See
121 ## compat_sunos(8) and compat_svr4(8).
122
123 options COMPAT_43 # 4.3BSD system interfaces
124 options COMPAT_10 # NetBSD 1.0 binary compatibility
125 options COMPAT_11 # NetBSD 1.1 binary compatibility
126 options COMPAT_12 # NetBSD 1.2 binary compatibility
127 options COMPAT_13 # NetBSD 1.3 binary compatibility
128 options COMPAT_14 # NetBSD 1.4 binary compatibility
129 #options COMPAT_NETBSD32 # NetBSD/sparc binary compatibility -- 64-bit only
130 options COMPAT_SUNOS # SunOS 4.x binary compatibility
131 options COMPAT_SVR4 # SunOS 5.x binary compatibility
132 options EXEC_ELF32 # Exec module for SunOS 5.x binaries.
133 #options EXEC_ELF64 # Exec module for sparc64 & SunOs 5.x binaries. -- 64-bit only
134 #options SYSCALL_DEBUG
135 options COMPAT_AOUT # NetBSD/sparc compat support
136 options EXEC_AOUT # execve(2) support for a.out binaries
137
138 ## File systems. You probably need at least one of FFS or NFS.
139 file-system FFS # Berkeley Fast Filesystem
140 file-system NFS # Sun NFS-compatible filesystem client
141 file-system KERNFS # kernel data-structure filesystem
142 file-system NULLFS # NULL layered filesystem
143 file-system OVERLAY # overlay file system
144 file-system MFS # memory-based filesystem
145 file-system FDESC # user file descriptor filesystem
146 file-system UMAPFS # uid/gid remapping filesystem
147 file-system LFS # Log-based filesystem (still experimental)
148 file-system PORTAL # portal filesystem (still experimental)
149 file-system PROCFS # /proc
150 file-system CD9660 # ISO 9660 + Rock Ridge file system
151 file-system UNION # union file system
152 file-system MSDOSFS # MS-DOS FAT filesystem(s).
153
154 ## File system options.
155 options NFSSERVER # Sun NFS-compatible filesystem server
156 options QUOTA # FFS quotas
157 #options FFS_EI # FFS Endian Independent support
158 #options SOFTDEP # FFS soft updates support.
159
160 # Pull in config fragments for kernel crypto. This is required for
161 # options IPSEC etc. to work. If you want to run with IPSEC, uncomment
162 # one of these, based on whether you use crypto-us or crypto-intl, and
163 # adjust the prefixes as necessary.
164
165 #prefix ../crypto-us/sys
166 #cinclude "conf/files.crypto-us"
167 #prefix
168
169 #prefix ../crypto-intl/sys
170 #cinclude "conf/files.crypto-intl"
171 #prefix
172
173 ## Network protocol support. In most environments, INET is required.
174 options INET # IP (Internet Protocol) v4
175 options INET6 # IPV6
176 #options IPSEC # IP security
177 #options IPSEC_ESP # IP security (encryption part; define w/IPSEC)
178 #options IPSEC_DEBUG # debug for IP security
179 options TCP_COMPAT_42 # 4.2BSD IP implementation compatibility
180 #options GATEWAY # packet forwarding ("router switch")
181 options MROUTING # packet forwarding of multicast packets
182 #options DIRECTED_BROADCAST # allow broadcasts through routers
183 options NS # Xerox NS networking
184 #options NSIP # Xerox NS tunneling over IP
185 options ISO,TPIP # OSI networking
186 options EON # OSI tunneling over IP
187 #options CCITT,LLC,HDLC # X.25 packet switched protocol
188 options NETATALK # AppleTalk (over Ethernet) protocol
189 options NTP # Network Time Protocol in-kernel support
190 #options PPS_SYNC # Add serial line synchronization for NTP
191 options PFIL_HOOKS # Add pfil(9) hooks, intended for custom LKMs.
192 options IPFILTER_LOG # Add ipmon(8) logging for ipfilter device
193 options PPP_BSDCOMP # Add BSD compression to ppp device
194 options PPP_DEFLATE # Add deflate (libz) compression to ppp device
195 options PPP_FILTER # Add active filters for ppp (via bpf)
196
197
198 #### Main bus and CPU .. all systems.
199 mainbus0 at root
200 cpu0 at mainbus0
201
202 #### Bus types found on SPARC systems.
203
204 sbus0 at mainbus0 # Ultra 1
205 #upa0 at mainbus0 # Ultra 1E, Ultra 2, Ex0000
206 psycho* at mainbus0 # Darwin, Ultra5
207 pci* at psycho?
208 pci* at simba?
209 simba* at pci? dev ? function ? # `APB' support.
210 ebus* at pci? # ebus devices
211
212 #### Standard system devices -- all required for a given architecture
213
214 ## Auxiliary system registers -- We use the OBP for power management
215 #auxreg0 at sbus0
216 #auxreg0 at pci0
217
218 # We also need:
219 # bpp0 at sbus0 # parallel port
220 # ecpp0 at pci0 # parallel port ?
221 lpt* at ebus? # parallel port
222
223 ## Mostek clock found on 4/300, sun4c, sun4m and sun4u systems.
224 ## The Mostek clock NVRAM is the "eeprom" on sun4/300 systems.
225 clock0 at sbus0 slot ? offset ?
226 clock0 at ebus?
227
228 ## Timer chip found on 4/300, sun4c, sun4m and sun4u systems.
229 timer0 at mainbus0 # sun4c
230
231 #### Serial port configuration
232
233 ## Zilog 8530 serial chips. Each has two-channels.
234 ## zs0 is ttya and ttyb. zs1 is the keyboard and mouse.
235 zs0 at sbus0 slot ? offset ?
236 zstty0 at zs0 channel 0 # ttya
237 zstty1 at zs0 channel 1 # ttyb
238
239 zs1 at sbus0 slot ? offset ?
240 kbd0 at zs1 channel 0 # keyboard
241 ms0 at zs1 channel 1 # mouse
242
243 ## PCI machines apparently have serial ports
244 ## Siemens SAB82532 controller: ttya and ttyb (sab)
245 ## Part of NS PC87332VLJ Super I/O controller: kbd/mouse (com)
246
247 ## These are two SAB82532 controllers
248 #sab0 at ebus? # ttya/ttyb
249 #sabtty0 at sab0 channel 0 # ttya
250 #sabtty1 at sab0 channel 1 # ttyb
251
252 ## Part of a PC87332VLJ?
253 #ucom0 at ebus? addr 0x3083f8 # `com' driver
254 #ucom1 at ebus? addr 0x3062f8 #
255 #ucom0 at ebus? # `com' driver
256 #ucom1 at ebus? #
257 #kbd0 at ucom0 channel 0 # keyboard
258 #ms0 at ucom1 channel 1 # mouse
259
260 #### Disk controllers and disks
261
262 ## The following flags may be set for the NCR53c94 based esp driver:
263 ## bits 0-7: disable disconnect/reselect for the corresponding target
264 ## bits 8-15: disable synchronous negotiation for target [bit-8]
265
266 ## sun4/300, sun4c, sun4m and sun4u on-board SCSI, and FSBE/S SBus SCSI cards.
267 ## Both `dma' and `esp' are needed in all cases.
268 ## Two kinds of additional SBus SCSI interfaces are available. One uses
269 ## "esp at sbus" like the sun4c on-board; the other uses "esp at dma".
270
271 ## sun4/300 SCSI - an NCR53c94 or equivalent behind
272 ## an LSI Logic DMA controller
273
274 dma0 at sbus0 slot ? offset ? # sun4c/sun4m/sun4u
275 esp0 at dma0 flags 0x0000 # sun4m/sun4u
276 scsibus* at esp?
277
278 # FSBE/S SCSI
279 dma* at sbus? slot ? offset ? # SBus
280 esp* at dma? flags 0x0000 # SBus
281
282 scsibus* at esp?
283
284 ## Qlogic ISP SBus SCSI Card
285 isp* at sbus? slot ? offset ?
286 scsibus* at isp?
287
288 ## FAS support missing
289 #fas* at sbus? slot ? offset ?
290 #scsibus* at fas?
291
292 ## GLM support is missing
293 #scsi* at pci? # 53C875 "glm" compatible
294
295 ## These entries find devices on all SCSI busses and assign
296 ## unit numbers dynamically.
297 sd* at scsibus? target ? lun ? # SCSI disks
298 st* at scsibus? target ? lun ? # SCSI tapes
299 cd* at scsibus? target ? lun ? # SCSI CD-ROMs
300 ch* at scsibus? target ? lun ? # SCSI changer devices
301 ss* at scsibus? target ? lun ? # SCSI scanners
302 uk* at scsibus? target ? lun ? # unknown SCSI
303
304 # PCI IDE.
305 pciide* at pci ? dev ? function ? flags 0x0000
306 wd* at pciide? channel ? drive ? flags 0x0000
307 atapibus* at pciide? channel ?
308
309 cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives
310 sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives
311 uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown
312
313 ## Floppy controller and drive found on SPARCstations.
314
315 # need share with the sparc...uses auxreg. what is this on sparc64?
316 #fdc0 at sbus0 slot ? offset ?
317 #fdc0 at pci? # Called fdthree?
318 #fd* at fdc0 # the drive itself
319
320 ## A disk-like interface to files. Can be used to create floppy, CD,
321 ## miniroot images, etc.
322
323 pseudo-device vnd 4
324
325 ## Concatenated and striped disks; with this, you can create a software-based
326 ## disk array similar to a "RAID 0" setup. See ccd(4).
327
328 pseudo-device ccd 4
329
330 ## RAIDframe disk driver: software RAID driver. See raid(4).
331
332 pseudo-device raid 4
333
334 ## Memory disk device, used on boot floppies with compressed
335 ## kernel-plus-root-disk images.
336
337 pseudo-device md 1
338
339
340 #### Network interfaces
341
342 ## LANCE Ethernet - an AMD 7990 LANCE behind specialized DMA glue
343 ## Three flavors of additional SBus ethernets are available. One attaches
344 ## directly like the sun4c on-board, one uses the ledma device like the
345 ## sun4m on-board, and one uses the lebuffer device.
346
347 ledma0 at sbus0 slot ? offset ? # sun4m on-board
348 le0 at ledma0 # sun4m on-board
349 le* at sbus? slot ? offset ? # SBus
350 ledma* at sbus? slot ? offset ? # SBus
351 le* at ledma? # SBus
352 lebuffer0 at sbus? slot ? offset ? # SBus
353 le0 at lebuffer? # SBus
354 lebuffer* at sbus? slot ? offset ? # SBus
355 le* at lebuffer? # SBus
356
357 ## HME not supported yet
358 #hme* at sbus0 slot ? offset ?
359 #network* at pci? # "hme" compatible
360
361 ## qec/be, qec/hme
362 qec* at sbus? slot ? offset ?
363 be* at qec?
364 qe* at qec?
365
366 ## Loopback network interface; required
367 pseudo-device loop
368
369 ## SLIP and CSLIP interfaces, for IP over a serial line.
370 pseudo-device sl 2
371
372 ## PPP, the successor to SLIP. See pppd(8).
373 pseudo-device ppp 2
374
375 ## Starmode Radio IP, a special hardware network device.
376 pseudo-device strip 1
377
378 ## Network "tunnel" device, allowing protocol stacks to run in the userland.
379 ## This is used by the third-party user-mode "ppp" program, and others.
380 pseudo-device tun 4
381
382 ## Generic L3 over IP tunnel
383 #pseudo-device gre 2 # generic L3 over IP tunnel
384
385 ## Berkeley Packet Filter, required to run RARPD. A generic C-language
386 ## interface that allows selective examining of incoming packets.
387 pseudo-device bpfilter 8
388
389 ## IP Filter, used in firewall and NAT applications. See ipnat(8) for
390 ## one example of the use of the IP Filter.
391 pseudo-device ipfilter
392
393 ## for IPv6
394 pseudo-device gif 4 # IPv[46] over IPv[46] tunnel (RFC1933)
395 #pseudo-device faith 1 # IPv[46] tcp relay translation i/f
396
397
398 #### Audio and video devices
399
400 ## /dev/audio support (`audiocs' plus `audio')
401 ##
402 audiocs0 at sbus0 slot ? offset ? # SUNW,CS4231
403 audio* at audiocs0
404
405
406 ## Sun "bwtwo" black and white framebuffer, found on sun4, sun4c, and sun4m
407 ## systems. If your sun4 system has a cgfour installed in the P4 slot,
408 ## the P4 entries for "bwtwo" will attach to the overlay plane of the
409 ## "cgfour".
410
411 #bwtwo0 at sbus0 slot ? offset ? # sun4c and sun4m
412 #bwtwo* at sbus? slot ? offset ? #
413
414 ## Sun "cgthree" Sbus color framebuffer
415 #cgthree0 at sbus? slot ? offset ?
416 #cgthree* at sbus? slot ? offset ?
417
418 ## Sun "cgsix" accelerated color framebuffer.
419 cgsix0 at sbus? slot ? offset ?
420 cgsix* at sbus? slot ? offset ?
421
422 ## Sun "tcx" accelerated color framebuffer.
423 #tcx0 at sbus? slot ? offset ?
424 #tcx* at sbus? slot ? offset ?
425
426 # Sun "cgfourteen" accelerated 24-bit framebuffer.
427 #cgfourteen0 at obio0 # sun4m
428
429 ## Sun FFB not supported
430 #ffb* at upa?
431
432 #### Other device configuration
433
434 ## Pseudo ttys, required for network logins and programs like screen.
435 ## 32 is a good number for average systems; you may have as many as you
436 ## like, though 256 is more or less the upper limit. Increasing this
437 ## number still requires you to run /dev/MAKEDEV to create the files
438 ## for the ptys.
439
440 pseudo-device pty 64 # pseudo-ttys (for network, etc.)
441
442 ## Random device, used to implement /dev/random (a source of random noise),
443 ## and generate randomness for some kernel formulae.
444 ## THIS DEVICE IS EXPERIMENTAL; use at your own risk.
445
446 pseudo-device rnd
447