GENERIC revision 1.24
1# $NetBSD: GENERIC,v 1.24 2000/02/26 17:35:42 oster Exp $ 2 3include "arch/sparc64/conf/std.sparc64" 4 5#ident "GENERIC-$Revision: 1.24 $" 6 7maxusers 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. 14options SUN4U # sun4u - Ultra 140 and 170 15options TRAPWIN 16options __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 33config 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)). 41options 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)) 49options SYSVMSG # System V message queues 50options SYSVSEM # System V semaphores 51options SYSVSHM # System V shared memory 52#options SHMMAXPGS=1024 # 1024 pages is the default 53 54## Loadable kernel module support; still under development. 55options LKM 56 57## NFS boot options; default on sparc is the bootparam protocol 58options 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. 68options DDB # kernel dynamic debugger 69options 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. 97options SCSIVERBOSE 98options 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 123options COMPAT_43 # 4.3BSD system interfaces 124options COMPAT_10 # NetBSD 1.0 binary compatibility 125options COMPAT_11 # NetBSD 1.1 binary compatibility 126options COMPAT_12 # NetBSD 1.2 binary compatibility 127options COMPAT_13 # NetBSD 1.3 binary compatibility 128options COMPAT_14 # NetBSD 1.4 binary compatibility 129#options COMPAT_NETBSD32 # NetBSD/sparc binary compatibility -- 64-bit only 130options COMPAT_SUNOS # SunOS 4.x binary compatibility 131options COMPAT_SVR4 # SunOS 5.x binary compatibility 132options 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 135options COMPAT_AOUT # NetBSD/sparc compat support 136options EXEC_AOUT # execve(2) support for a.out binaries 137 138## File systems. You probably need at least one of FFS or NFS. 139file-system FFS # Berkeley Fast Filesystem 140file-system NFS # Sun NFS-compatible filesystem client 141file-system KERNFS # kernel data-structure filesystem 142file-system NULLFS # NULL layered filesystem 143file-system OVERLAY # overlay file system 144file-system MFS # memory-based filesystem 145file-system FDESC # user file descriptor filesystem 146file-system UMAPFS # uid/gid remapping filesystem 147file-system LFS # Log-based filesystem (still experimental) 148file-system PORTAL # portal filesystem (still experimental) 149file-system PROCFS # /proc 150file-system CD9660 # ISO 9660 + Rock Ridge file system 151file-system UNION # union file system 152file-system MSDOSFS # MS-DOS FAT filesystem(s). 153 154## File system options. 155options NFSSERVER # Sun NFS-compatible filesystem server 156options 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. 174options INET # IP (Internet Protocol) v4 175options 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 179options TCP_COMPAT_42 # 4.2BSD IP implementation compatibility 180#options GATEWAY # packet forwarding ("router switch") 181options MROUTING # packet forwarding of multicast packets 182#options DIRECTED_BROADCAST # allow broadcasts through routers 183options NS # Xerox NS networking 184#options NSIP # Xerox NS tunneling over IP 185options ISO,TPIP # OSI networking 186options EON # OSI tunneling over IP 187#options CCITT,LLC,HDLC # X.25 packet switched protocol 188options NETATALK # AppleTalk (over Ethernet) protocol 189options NTP # Network Time Protocol in-kernel support 190#options PPS_SYNC # Add serial line synchronization for NTP 191options PFIL_HOOKS # Add pfil(9) hooks, intended for custom LKMs. 192options IPFILTER_LOG # Add ipmon(8) logging for ipfilter device 193options PPP_BSDCOMP # Add BSD compression to ppp device 194options PPP_DEFLATE # Add deflate (libz) compression to ppp device 195options PPP_FILTER # Add active filters for ppp (via bpf) 196 197 198#### Main bus and CPU .. all systems. 199mainbus0 at root 200cpu0 at mainbus0 201 202#### Bus types found on SPARC systems. 203 204sbus0 at mainbus0 # Ultra 1 205#upa0 at mainbus0 # Ultra 1E, Ultra 2, Ex0000 206psycho* at mainbus0 # Darwin, Ultra5 207pci* at psycho? 208pci* at simba? 209simba* at pci? dev ? function ? # `APB' support. 210ebus* 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 ? 221lpt* 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. 225clock0 at sbus0 slot ? offset ? 226clock0 at ebus? 227 228## Timer chip found on 4/300, sun4c, sun4m and sun4u systems. 229timer0 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. 235zs0 at sbus0 slot ? offset ? 236zstty0 at zs0 channel 0 # ttya 237zstty1 at zs0 channel 1 # ttyb 238 239zs1 at sbus0 slot ? offset ? 240kbd0 at zs1 channel 0 # keyboard 241ms0 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 274dma0 at sbus0 slot ? offset ? # sun4c/sun4m/sun4u 275esp0 at dma0 flags 0x0000 # sun4m/sun4u 276scsibus* at esp? 277 278# FSBE/S SCSI 279dma* at sbus? slot ? offset ? # SBus 280esp* at dma? flags 0x0000 # SBus 281 282scsibus* at esp? 283 284## Qlogic ISP SBus SCSI Card 285isp* at sbus? slot ? offset ? 286scsibus* 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. 297sd* at scsibus? target ? lun ? # SCSI disks 298st* at scsibus? target ? lun ? # SCSI tapes 299cd* at scsibus? target ? lun ? # SCSI CD-ROMs 300ch* at scsibus? target ? lun ? # SCSI changer devices 301ss* at scsibus? target ? lun ? # SCSI scanners 302uk* at scsibus? target ? lun ? # unknown SCSI 303 304# PCI IDE. 305pciide* at pci ? dev ? function ? flags 0x0000 306wd* at pciide? channel ? drive ? flags 0x0000 307atapibus* at pciide? channel ? 308 309cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives 310sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives 311uk* 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 323pseudo-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 328pseudo-device ccd 4 329 330## RAIDframe disk driver: software RAID driver. See raid(4). 331 332pseudo-device raid 4 333#options RAID_AUTOCONFIG # auto-configuration of RAID components 334 335## Memory disk device, used on boot floppies with compressed 336## kernel-plus-root-disk images. 337 338pseudo-device md 1 339 340 341#### Network interfaces 342 343## LANCE Ethernet - an AMD 7990 LANCE behind specialized DMA glue 344## Three flavors of additional SBus ethernets are available. One attaches 345## directly like the sun4c on-board, one uses the ledma device like the 346## sun4m on-board, and one uses the lebuffer device. 347 348ledma0 at sbus0 slot ? offset ? # sun4m on-board 349le0 at ledma0 # sun4m on-board 350le* at sbus? slot ? offset ? # SBus 351ledma* at sbus? slot ? offset ? # SBus 352le* at ledma? # SBus 353lebuffer0 at sbus? slot ? offset ? # SBus 354le0 at lebuffer? # SBus 355lebuffer* at sbus? slot ? offset ? # SBus 356le* at lebuffer? # SBus 357 358## HME not supported yet 359#hme* at sbus0 slot ? offset ? 360#network* at pci? # "hme" compatible 361 362## qec/be, qec/hme 363qec* at sbus? slot ? offset ? 364be* at qec? 365qe* at qec? 366 367## Loopback network interface; required 368pseudo-device loop 369 370## SLIP and CSLIP interfaces, for IP over a serial line. 371pseudo-device sl 2 372 373## PPP, the successor to SLIP. See pppd(8). 374pseudo-device ppp 2 375 376## Starmode Radio IP, a special hardware network device. 377pseudo-device strip 1 378 379## Network "tunnel" device, allowing protocol stacks to run in the userland. 380## This is used by the third-party user-mode "ppp" program, and others. 381pseudo-device tun 4 382 383## Generic L3 over IP tunnel 384#pseudo-device gre 2 # generic L3 over IP tunnel 385 386## Berkeley Packet Filter, required to run RARPD. A generic C-language 387## interface that allows selective examining of incoming packets. 388pseudo-device bpfilter 8 389 390## IP Filter, used in firewall and NAT applications. See ipnat(8) for 391## one example of the use of the IP Filter. 392pseudo-device ipfilter 393 394## for IPv6 395pseudo-device gif 4 # IPv[46] over IPv[46] tunnel (RFC1933) 396#pseudo-device faith 1 # IPv[46] tcp relay translation i/f 397 398 399#### Audio and video devices 400 401## /dev/audio support (`audiocs' plus `audio') 402## 403audiocs0 at sbus0 slot ? offset ? # SUNW,CS4231 404audio* at audiocs0 405 406 407## Sun "bwtwo" black and white framebuffer, found on sun4, sun4c, and sun4m 408## systems. If your sun4 system has a cgfour installed in the P4 slot, 409## the P4 entries for "bwtwo" will attach to the overlay plane of the 410## "cgfour". 411 412#bwtwo0 at sbus0 slot ? offset ? # sun4c and sun4m 413#bwtwo* at sbus? slot ? offset ? # 414 415## Sun "cgthree" Sbus color framebuffer 416#cgthree0 at sbus? slot ? offset ? 417#cgthree* at sbus? slot ? offset ? 418 419## Sun "cgsix" accelerated color framebuffer. 420cgsix0 at sbus? slot ? offset ? 421cgsix* at sbus? slot ? offset ? 422 423## Sun "tcx" accelerated color framebuffer. 424#tcx0 at sbus? slot ? offset ? 425#tcx* at sbus? slot ? offset ? 426 427# Sun "cgfourteen" accelerated 24-bit framebuffer. 428#cgfourteen0 at obio0 # sun4m 429 430## Sun FFB not supported 431#ffb* at upa? 432 433#### Other device configuration 434 435## Pseudo ttys, required for network logins and programs like screen. 436## 32 is a good number for average systems; you may have as many as you 437## like, though 256 is more or less the upper limit. Increasing this 438## number still requires you to run /dev/MAKEDEV to create the files 439## for the ptys. 440 441pseudo-device pty 64 # pseudo-ttys (for network, etc.) 442 443## Random device, used to implement /dev/random (a source of random noise), 444## and generate randomness for some kernel formulae. 445## THIS DEVICE IS EXPERIMENTAL; use at your own risk. 446 447pseudo-device rnd 448