GENERIC revision 1.28
1# $NetBSD: GENERIC,v 1.28 2000/04/05 14:28:55 mrg Exp $ 2 3include "arch/sparc64/conf/std.sparc64" 4 5#ident "GENERIC-$Revision: 1.28 $" 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#options PCI_CONFIG_DUMP # verbosely dump PCI config space 100 101## `INSECURE' turns off the kernel security level (securelevel = 0 always). 102## This allows writing to /dev/mem, loading kernel modules while multi-user, 103## and other insecurities good only for development work. Do not use this 104## option on a production machine. 105#options INSECURE 106 107## Allow non-root users to grab /dev/console with programs such as xconsole. 108## `xconsole' therefore does not need setuid root with this option enabled. 109#options UCONSOLE 110 111## `FDSCRIPTS' allows non-readable but executable scripts by providing a 112## pre-opened opaque file to the script interpreter. `SETUIDSCRIPTS', 113## which implies FDSCRIPTS, allows scripts to be set-user-id using the same 114## opaque file mechanism. Perl calls this "secure setuid scripts." 115 116#options FDSCRIPTS 117#options SETUIDSCRIPTS 118 119## Options for compatibility with previous releases foreign system binaries. 120## In the cases of COMPAT_SUNOS and COMPAT_SVR4, you may need to set up 121## additional user-level utilities or system configuration files. See 122## compat_sunos(8) and compat_svr4(8). 123 124options COMPAT_43 # 4.3BSD system interfaces 125options COMPAT_10 # NetBSD 1.0 binary compatibility 126options COMPAT_11 # NetBSD 1.1 binary compatibility 127options COMPAT_12 # NetBSD 1.2 binary compatibility 128options COMPAT_13 # NetBSD 1.3 binary compatibility 129options COMPAT_14 # NetBSD 1.4 binary compatibility 130#options COMPAT_NETBSD32 # NetBSD/sparc binary compatibility -- 64-bit only 131options COMPAT_SUNOS # SunOS 4.x binary compatibility 132options COMPAT_SVR4 # SunOS 5.x binary compatibility 133options EXEC_ELF32 # Exec module for SunOS 5.x binaries. 134#options EXEC_ELF64 # Exec module for sparc64 & SunOs 5.x binaries. -- 64-bit only 135#options SYSCALL_DEBUG 136options COMPAT_AOUT # NetBSD/sparc compat support 137options EXEC_AOUT # execve(2) support for a.out binaries 138 139## File systems. You probably need at least one of FFS or NFS. 140file-system FFS # Berkeley Fast Filesystem 141file-system NFS # Sun NFS-compatible filesystem client 142file-system KERNFS # kernel data-structure filesystem 143file-system NULLFS # NULL layered filesystem 144file-system OVERLAY # overlay file system 145file-system MFS # memory-based filesystem 146file-system FDESC # user file descriptor filesystem 147file-system UMAPFS # uid/gid remapping filesystem 148file-system LFS # Log-based filesystem (still experimental) 149file-system PORTAL # portal filesystem (still experimental) 150file-system PROCFS # /proc 151file-system CD9660 # ISO 9660 + Rock Ridge file system 152file-system UNION # union file system 153file-system MSDOSFS # MS-DOS FAT filesystem(s). 154 155## File system options. 156options NFSSERVER # Sun NFS-compatible filesystem server 157options QUOTA # FFS quotas 158#options FFS_EI # FFS Endian Independent support 159#options SOFTDEP # FFS soft updates support. 160 161# Pull in config fragments for kernel crypto. This is required for 162# options IPSEC etc. to work. If you want to run with IPSEC, uncomment 163# one of these, based on whether you use crypto-us or crypto-intl, and 164# adjust the prefixes as necessary. 165 166#prefix ../crypto-us/sys 167#cinclude "conf/files.crypto-us" 168#prefix 169 170#prefix ../crypto-intl/sys 171#cinclude "conf/files.crypto-intl" 172#prefix 173 174## Network protocol support. In most environments, INET is required. 175options INET # IP (Internet Protocol) v4 176options INET6 # IPV6 177#options IPSEC # IP security 178#options IPSEC_ESP # IP security (encryption part; define w/IPSEC) 179#options IPSEC_DEBUG # debug for IP security 180options TCP_COMPAT_42 # 4.2BSD IP implementation compatibility 181#options GATEWAY # packet forwarding ("router switch") 182options MROUTING # packet forwarding of multicast packets 183#options DIRECTED_BROADCAST # allow broadcasts through routers 184options NS # Xerox NS networking 185#options NSIP # Xerox NS tunneling over IP 186options ISO,TPIP # OSI networking 187options EON # OSI tunneling over IP 188#options CCITT,LLC,HDLC # X.25 packet switched protocol 189options NETATALK # AppleTalk (over Ethernet) protocol 190options NTP # Network Time Protocol in-kernel support 191#options PPS_SYNC # Add serial line synchronization for NTP 192options PFIL_HOOKS # Add pfil(9) hooks, intended for custom LKMs. 193options IPFILTER_LOG # Add ipmon(8) logging for ipfilter device 194options PPP_BSDCOMP # Add BSD compression to ppp device 195options PPP_DEFLATE # Add deflate (libz) compression to ppp device 196options PPP_FILTER # Add active filters for ppp (via bpf) 197 198 199#### Main bus and CPU .. all systems. 200mainbus0 at root 201cpu0 at mainbus0 202 203#### Bus types found on SPARC systems. 204 205sbus0 at mainbus0 # Ultra 1 206#upa0 at mainbus0 # Ultra 1E, Ultra 2, Ex0000 207psycho* at mainbus0 # Darwin, Ultra5 208pci* at psycho? 209pci* at simba? 210simba* at pci? dev ? function ? # `APB' support. 211ebus* at pci? # ebus devices 212 213#### Standard system devices -- all required for a given architecture 214 215## Auxiliary system registers -- We use the OBP for power management 216#auxreg0 at sbus0 217auxio0 at ebus? # auxio registers 218 219# We also need: 220# bpp0 at sbus0 # parallel port 221# ecpp0 at pci0 # parallel port ? 222lpt* at ebus? # parallel port 223 224## Mostek clock found on 4/300, sun4c, sun4m and sun4u systems. 225## The Mostek clock NVRAM is the "eeprom" on sun4/300 systems. 226clock0 at sbus0 slot ? offset ? 227clock0 at ebus? 228 229## Timer chip found on 4/300, sun4c, sun4m and sun4u systems. 230timer0 at mainbus0 # sun4c 231 232#### Serial port configuration 233 234## Zilog 8530 serial chips. Each has two-channels. 235## zs0 is ttya and ttyb. zs1 is the keyboard and mouse. 236zs0 at sbus0 slot ? offset ? 237zstty0 at zs0 channel 0 # ttya 238zstty1 at zs0 channel 1 # ttyb 239 240zs1 at sbus0 slot ? offset ? 241kbd0 at zs1 channel 0 # keyboard 242ms0 at zs1 channel 1 # mouse 243 244## PCI machines apparently have serial ports 245## Siemens SAB82532 controller: ttya and ttyb (sab) 246## Part of NS PC87332VLJ Super I/O controller: kbd/mouse (com) 247 248## These are two SAB82532 controllers 249#sab0 at ebus? # ttya/ttyb 250#sabtty0 at sab0 channel 0 # ttya 251#sabtty1 at sab0 channel 1 # ttyb 252 253## Part of a PC87332VLJ? 254#ucom0 at ebus? addr 0x3083f8 # `com' driver 255#ucom1 at ebus? addr 0x3062f8 # 256#ucom0 at ebus? # `com' driver 257#ucom1 at ebus? # 258#kbd0 at ucom0 channel 0 # keyboard 259#ms0 at ucom1 channel 1 # mouse 260 261#### Disk controllers and disks 262 263## The following flags may be set for the NCR53c94 based esp driver: 264## bits 0-7: disable disconnect/reselect for the corresponding target 265## bits 8-15: disable synchronous negotiation for target [bit-8] 266 267## sun4/300, sun4c, sun4m and sun4u on-board SCSI, and FSBE/S SBus SCSI cards. 268## Both `dma' and `esp' are needed in all cases. 269## Two kinds of additional SBus SCSI interfaces are available. One uses 270## "esp at sbus" like the sun4c on-board; the other uses "esp at dma". 271 272## sun4/300 SCSI - an NCR53c94 or equivalent behind 273## an LSI Logic DMA controller 274 275dma0 at sbus0 slot ? offset ? # sun4c/sun4m/sun4u 276esp0 at dma0 flags 0x0000 # sun4m/sun4u 277scsibus* at esp? 278 279# FSBE/S SCSI 280dma* at sbus? slot ? offset ? # SBus 281esp* at dma? flags 0x0000 # SBus 282 283scsibus* at esp? 284 285## Qlogic ISP SBus SCSI Card 286isp* at sbus? slot ? offset ? 287scsibus* at isp? 288 289## FAS support missing 290#fas* at sbus? slot ? offset ? 291#scsibus* at fas? 292 293## GLM support is missing 294#scsi* at pci? # 53C875 "glm" compatible 295 296## These entries find devices on all SCSI busses and assign 297## unit numbers dynamically. 298sd* at scsibus? target ? lun ? # SCSI disks 299st* at scsibus? target ? lun ? # SCSI tapes 300cd* at scsibus? target ? lun ? # SCSI CD-ROMs 301ch* at scsibus? target ? lun ? # SCSI changer devices 302ss* at scsibus? target ? lun ? # SCSI scanners 303uk* at scsibus? target ? lun ? # unknown SCSI 304 305# PCI IDE. 306pciide* at pci ? dev ? function ? flags 0x0000 307wd* at pciide? channel ? drive ? flags 0x0000 308atapibus* at pciide? channel ? 309 310cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives 311sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives 312uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown 313 314## Floppy controller and drive found on SPARCstations. 315 316# need share with the sparc...uses auxreg. what is this on sparc64? 317#fdc0 at sbus0 slot ? offset ? 318#fdc0 at pci? # Called fdthree? 319#fd* at fdc0 # the drive itself 320 321## A disk-like interface to files. Can be used to create floppy, CD, 322## miniroot images, etc. 323 324pseudo-device vnd 4 325 326## Concatenated and striped disks; with this, you can create a software-based 327## disk array similar to a "RAID 0" setup. See ccd(4). 328 329pseudo-device ccd 4 330 331## RAIDframe disk driver: software RAID driver. See raid(4). 332 333pseudo-device raid 4 334#options RAID_AUTOCONFIG # auto-configuration of RAID components 335 336## Memory disk device, used on boot floppies with compressed 337## kernel-plus-root-disk images. 338 339pseudo-device md 1 340 341 342#### Network interfaces 343 344## LANCE Ethernet - an AMD 7990 LANCE behind specialized DMA glue 345## Three flavors of additional SBus ethernets are available. One attaches 346## directly like the sun4c on-board, one uses the ledma device like the 347## sun4m on-board, and one uses the lebuffer device. 348 349ledma0 at sbus0 slot ? offset ? # sun4m on-board 350le0 at ledma0 # sun4m on-board 351le* at sbus? slot ? offset ? # SBus 352ledma* at sbus? slot ? offset ? # SBus 353le* at ledma? # SBus 354lebuffer0 at sbus? slot ? offset ? # SBus 355le0 at lebuffer? # SBus 356lebuffer* at sbus? slot ? offset ? # SBus 357le* at lebuffer? # SBus 358 359## HME not supported yet 360#hme* at sbus0 slot ? offset ? 361hme* at pci? # "hme" compatible 362 363# MII/PHY support 364# XXX: only nsphy "tested" 365#exphy* at mii? phy ? # 3Com internal PHYs 366#icsphy* at mii? phy ? # Integrated Circuit Systems ICS1890 367#inphy* at mii? phy ? # Intel 82555 PHYs 368#lxtphy* at mii? phy ? # Level One LXT-970 PHYs 369nsphy* at mii? phy ? # NS83840 PHYs 370#qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs 371#sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs 372#tlphy* at mii? phy ? # ThunderLAN PHYs 373#ukphy* at mii? phy ? # generic unknown PHYs 374 375## qec/be, qec/hme 376qec* at sbus? slot ? offset ? 377be* at qec? 378qe* at qec? 379 380## Loopback network interface; required 381pseudo-device loop 382 383## SLIP and CSLIP interfaces, for IP over a serial line. 384pseudo-device sl 2 385 386## PPP, the successor to SLIP. See pppd(8). 387pseudo-device ppp 2 388 389## Starmode Radio IP, a special hardware network device. 390pseudo-device strip 1 391 392## Network "tunnel" device, allowing protocol stacks to run in the userland. 393## This is used by the third-party user-mode "ppp" program, and others. 394pseudo-device tun 4 395 396## Generic L3 over IP tunnel 397#pseudo-device gre 2 # generic L3 over IP tunnel 398 399## Berkeley Packet Filter, required to run RARPD. A generic C-language 400## interface that allows selective examining of incoming packets. 401pseudo-device bpfilter 8 402 403## IP Filter, used in firewall and NAT applications. See ipnat(8) for 404## one example of the use of the IP Filter. 405pseudo-device ipfilter 406 407## for IPv6 408pseudo-device gif 4 # IPv[46] over IPv[46] tunnel (RFC1933) 409#pseudo-device faith 1 # IPv[46] tcp relay translation i/f 410 411 412#### Audio and video devices 413 414## /dev/audio support (`audiocs' plus `audio') 415## 416audiocs0 at sbus0 slot ? offset ? # SUNW,CS4231 417audio* at audiocs0 418 419 420## Sun "bwtwo" black and white framebuffer, found on sun4, sun4c, and sun4m 421## systems. If your sun4 system has a cgfour installed in the P4 slot, 422## the P4 entries for "bwtwo" will attach to the overlay plane of the 423## "cgfour". 424 425#bwtwo0 at sbus0 slot ? offset ? # sun4c and sun4m 426#bwtwo* at sbus? slot ? offset ? # 427 428## Sun "cgthree" Sbus color framebuffer 429#cgthree0 at sbus? slot ? offset ? 430#cgthree* at sbus? slot ? offset ? 431 432## Sun "cgsix" accelerated color framebuffer. 433cgsix0 at sbus? slot ? offset ? 434cgsix* at sbus? slot ? offset ? 435 436## Sun "tcx" accelerated color framebuffer. 437#tcx0 at sbus? slot ? offset ? 438#tcx* at sbus? slot ? offset ? 439 440# Sun "cgfourteen" accelerated 24-bit framebuffer. 441#cgfourteen0 at obio0 # sun4m 442 443## Sun FFB not supported 444#ffb* at upa? 445 446#### Other device configuration 447 448## Pseudo ttys, required for network logins and programs like screen. 449## 32 is a good number for average systems; you may have as many as you 450## like, though 256 is more or less the upper limit. Increasing this 451## number still requires you to run /dev/MAKEDEV to create the files 452## for the ptys. 453 454pseudo-device pty 64 # pseudo-ttys (for network, etc.) 455 456## Random device, used to implement /dev/random (a source of random noise), 457## and generate randomness for some kernel formulae. 458## THIS DEVICE IS EXPERIMENTAL; use at your own risk. 459 460pseudo-device rnd 461