GENERIC revision 1.81
1# $NetBSD: GENERIC,v 1.81 2002/09/25 11:49:55 martti 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 21include "arch/x68k/conf/std.x68k" 22 23options INCLUDE_CONFIG_FILE # embed config file in kernel binary 24 25#ident "GENERIC-$Revision: 1.81 $" 26 27maxusers 8 28 29## System kernel configuration. See options(4) for more detail. 30 31 32## Options for variants of the m68k MPU 33## you must have at least the correct one; REQUIRED 34options M68030 35options M68040 36options M68060 37## If you want an optimized kernel for a specific processor, use either: 38#makeoptions CMACHFLAGS="-m68030" 39#makeoptions CMACHFLAGS="-m68040 -Wa,-m68030 -Wa,-m68851" 40#makeoptions CMACHFLAGS="-m68060 -Wa,-m68030 -Wa,-m68851" 41 42 43#### System options specific to the x68k port 44 45options EXTENDED_MEMORY # support for >16MB memory 46options FPU_EMULATE # software fpu emulation for MC68030 47options FPSP # floating point emulation for MC68040 48options M060SP # int/fp emulation for MC68060 49#options JUPITER # support for "Jupiter-X" accelerator 50#options MAPPEDCOPY # use page mapping for large copyin/copyout 51#options ZSCONSOLE,ZSCN_SPEED="9600" # use serial console 52 53 54#### System options that are the same for all ports 55 56## Root device configuration: change the ?'s if you are going to use a 57## nonstandard root partition (other than where the kernel is booted from) 58## and/or nonstandard root type (not ffs or nfs). Normally this can be 59## automagically determined at boot time. 60 61config netbsd root on ? type ? 62#config netbsd root on sd0 type ffs 63 64## RTC is offset from GMT; -540 means JST-9 65options RTC_OFFSET=-540 # hardware clock is this many mins. west of GMT 66 67## System call tracing (see ktrace(1)). 68options KTRACE 69 70## Collect statistics on kernel malloc's and free's. This does have a 71## significant performance hit on slower machines, so it is intended for 72## diagnostic use only. 73#options KMEMSTATS 74 75## System V compatible IPC subsystem. (msgctl(2), semctl(2), and shmctl(2)) 76options SYSVMSG # System V message queues 77options SYSVSEM # System V semaphores 78#options SEMMNI=10 # number of semaphore identifiers 79#options SEMMNS=60 # number of semaphores in system 80#options SEMUME=10 # max number of undo entries per process 81#options SEMMNU=30 # number of undo structures in system 82options SYSVSHM # System V shared memory 83#options SHMMAXPGS=1024 # 1024 pages is the default 84 85## Loadable kernel module support 86#options LKM 87 88options USERCONF # userconf(4) support 89#options PIPE_SOCKETPAIR # smaller, but slower pipe(2) 90 91## NFS boot options; not supported currently: needs nfsboot program 92#options NFS_BOOT_BOOTPARAM 93#options NFS_BOOT_BOOTP 94#options NFS_BOOT_DHCP 95 96#### Debugging options 97 98## The DDB in-kernel debugger runs at panic (unless DDB_ONPANIC=0), or at 99## serial console break or keyboard reset, where the PROM would normally 100## intercept. DDB_HISTORY_SIZE adds up/down arrow command history. 101#options DDB # kernel dynamic debugger 102#options DDB_HISTORY_SIZE=100 # enable history editing in DDB 103#options DDB_ONPANIC=1 # see also sysctl(8): `ddb.onpanic' 104#options PANICBUTTON # interrupt switch invokes DDB 105 106## You may also use gdb, on another computer connected to this machine over 107## a serial port. Both KGDB_DEV and KGDB_DEVRATE should be specified; 108## KGDB_DEV is a dev_t encoded device number of the serial port to use. 109## KGDB is not supported for now. 110#options KGDB # support for kernel gdb 111#options KGDB_DEV=0xc00 # kgdb device number 112#options KGDB_DEVRATE=9600 # baud rate 113 114## Compile the kernel with debugging symbols (`netbsd.gdb' is the debug file), 115## such that gdb(1) can be used on a kernel coredump. 116 117#makeoptions DEBUG="-g" 118 119## Adds code to the kernel that does internal consistency checks, and will 120## cause the kernel to panic if corruption of internal data structures 121## is detected. 122#options DIAGNOSTIC # extra kernel sanity checking 123 124## Enable (possibly expensive) debugging code that may also display messages 125## on the system console 126#options DEBUG 127 128## These options enable verbose messages for several subsystems. 129## Warning, these may compile large string tables into the kernel! 130#options SCSIVERBOSE # human readable SCSI error messages 131#options USBVERBOSE # verbose USB device autoconfig messages 132 133## `INSECURE' turns off the kernel security level (securelevel = 0 always). 134## This allows writing to /dev/mem, loading kernel modules while multi-user, 135## and other insecurities good only for development work. Do not use this 136## option on a production machine. 137#options INSECURE 138 139## Allow non-root users to grab /dev/console with programs such as xconsole. 140## `xconsole' therefore does not need setuid root with this option enabled. 141#options UCONSOLE 142 143## `FDSCRIPTS' allows non-readable but executable scripts by providing a 144## pre-opened opaque file to the script interpreter. `SETUIDSCRIPTS', 145## which implies FDSCRIPTS, allows scripts to be set-user-id using the same 146## opaque file mechanism. Perl calls this "secure setuid scripts." 147 148#options FDSCRIPTS 149#options SETUIDSCRIPTS 150 151## Options for compatibility with previous releases foreign system binaries. 152 153options COMPAT_43 # 4.3BSD system interfaces 154options COMPAT_09 # NetBSD 0.9 binary compatibility 155options COMPAT_10 # NetBSD 1.0 binary compatibility 156options COMPAT_11 # NetBSD 1.1 binary compatibility 157options COMPAT_12 # NetBSD 1.2 binary compatibility 158options COMPAT_13 # NetBSD 1.3 binary compatibility 159options COMPAT_14 # NetBSD 1.4 binary compatibility 160options COMPAT_AOUT_M68K # compatibility with NetBSD/m68k a.out 161#options COMPAT_M68K4K # NetBSD/m68k4k binaries 162#options COMPAT_SUNOS # SunOS 4.x binary compatibility; broken 163#options COMPAT_SVR4 # SVR4 binary compatibility; broken 164#options COMPAT_LINUX # Linux/m68k binary compatibility 165#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended. 166 167## File systems. 168file-system FFS # Berkeley Fast Filesystem 169file-system NFS # Sun NFS-compatible filesystem client 170file-system KERNFS # kernel data-structure filesystem 171#file-system NULLFS # NULL layered filesystem (buggy) 172#file-system OVERLAY # overlay file system 173file-system MFS # memory-based filesystem 174#file-system FDESC # user file descriptor filesystem 175file-system UMAPFS # uid/gid remapping filesystem 176#file-system LFS # Log-structured filesystem (experimental) 177#file-system PORTAL # portal filesystem (experimental) 178file-system PROCFS # /proc 179file-system CD9660 # ISO 9660 + Rock Ridge file system 180#file-system UNION # union file system (a little buggy) 181file-system MSDOSFS # MS-DOS FAT filesystem(s). 182#file-system ADOSFS # AmigaDOS filesystem 183 184## File system options. 185options NFSSERVER # Sun NFS-compatible filesystem server 186#options QUOTA # FFS quotas 187#options FFS_EI # FFS Endian Independent support 188options SOFTDEP # FFS soft updates support. 189 190## Network protocol support. In most environments, INET is required. 191options INET # IP (Internet Protocol) v4 192options INET6 # IPV6 193#options IPSEC # IP security 194#options IPSEC_ESP # IP security (encryption part; define w/IPSEC) 195#options IPSEC_DEBUG # debug for IP security 196#options GATEWAY # packet forwarding ("router switch") 197#options MROUTING # packet forwarding of multicast packets 198#options DIRECTED_BROADCAST # allow broadcasts through routers 199#options NS # Xerox NS networking 200#options NSIP # Xerox NS tunneling over IP 201#options ISO,TPIP # OSI networking 202#options EON # OSI tunneling over IP 203#options CCITT,LLC,HDLC # X.25 packet switched protocol 204#options NETATALK # AppleTalk (over Ethernet) protocol 205#options NTP # Network Time Protocol in-kernel support 206#options PPS_SYNC # Add serial line synchronization for NTP 207options PFIL_HOOKS # Add pfil(9) hooks, intended for custom LKMs. 208#options IPFILTER_LOG # Add ipmon(8) logging for ipfilter device 209#options IPFILTER_DEFAULT_BLOCK # block all packets by default 210#options PPP_BSDCOMP # Add BSD compression to ppp device 211#options PPP_DEFLATE # Add deflate (libz) compression to ppp device 212#options PPP_FILTER # Add active filters for ppp (via bpf) 213#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 214 215 216#### Device configurations 217 218## Fundamental devices; see also std.x68k 219dmac0 at intio0 addr 0xe84000 # DMA controler 220xel0 at intio0 221opm0 at intio0 addr 0xe90000 # OPM: required for fdc 222 223## Display devices and console 224grfbus0 at mainbus0 # bitmapped displays 225grf0 at grfbus0 # multiplane graphics 226grf1 at grfbus0 # flexible graphics 227 228kbd0 at mfp0 # standard keyboard 229ite0 at grf0 # internal terminal emulator 230options ITE_KERNEL_ATTR=4 # bold for kernel messages 231 # see /sys/arch/x68k/dev/itevar.h 232pseudo-device pow 2 # software power switch 233 234## floppy disks 235fdc0 at intio0 addr 0xe94000 intr 96 dma 0 dmaintr 100 # floppy controler 236fd* at fdc0 unit ? # builtin floppy drives 237 238## SCSI devices 239scsirom0 at intio0 addr 0xfc0000 # Built-in SCSI BIOS 240scsirom1 at intio0 addr 0xea0020 # External SCSI BIOS 241spc0 at scsirom0 # genuin SCSI 242spc1 at scsirom1 # genuin SCSI 243scsibus* at spc? 244mha0 at scsirom1 # Mankai MK-HA1 (Mach-2) 245scsibus* at mha0 246 247sd* at scsibus? target ? lun ? # SCSI disks 248cd* at scsibus? target ? lun ? # SCSI CD-ROMs 249#st* at scsibus? target ? lun ? # SCSI tapes 250#ss* at scsibus? target ? lun ? # SCSI scanners 251#ch* at scsibus? target ? lun ? # SCSI changer devices 252#uk* at scsibus? target ? lun ? # SCSI unknown devices 253 254## Ports 255zsc0 at intio0 addr 0xe98000 intr 112 256zstty0 at zsc0 channel 0 # built-in RS-232C 257ms0 at zsc0 channel 1 # standard mouse 258#zsc1 at intio0 addr 0xeafc00 intr 113 259#zstty2 at zsc1 channel 0 260#zstty3 at zsc1 channel 1 261#zsc2 at intio0 addr 0xeafc10 intr 114 262#zstty4 at zsc2 channel 0 263#zstty5 at zsc2 channel 1 264par0 at intio0 addr 0xe8c000 # Builtin printer port 265 266pseudo-device sram # battery-backuped static RAM 267pseudo-device bell # OPM bell 268 269xcom0 at mainbus0 # NS16550 fast serial 270xcom1 at mainbus0 271 272## Audio device 273vs0 at intio0 addr 0xe92000 dma 3 dmaintr 106 274audio* at vs? 275 276## Network interfaces 277ne* at intio0 addr 0xece300 intr 249 # Nereid Ethernet 278ne* at intio0 addr 0xeceb00 intr 248 # Nereid Ethernet 279neptune0 at intio0 addr 0xece000 intr 249 # Neptune-X 280neptune1 at intio0 addr 0xece400 intr 249 # Neptune-X at alt. addr. 281ne* at neptune? addr 0x300 # NE2000 or clone 282 283 284## MII/PHY support for USB ethernet 285#acphy* at mii? phy ? 286 287## USB Controller and Devices; Experimental 288 289# Nereid USB controllers 290#slhci0 at intio0 addr 0xece380 intr 251 291#slhci1 at intio0 addr 0xeceb80 intr 250 292#options SLHCI_DEBUG 293 294# USB bus support 295#usb* at slhci? 296 297# USB Hubs 298#uhub* at usb? 299#uhub* at uhub? port ? configuration ? interface ? 300 301# USB HID device 302#uhidev* at uhub? port ? configuration ? interface ? 303 304# USB Mice; not supported wscons yet 305#ums* at uhidev? reportid ? 306#wsmouse* at ums? mux 0 307 308# USB Keyboards; not supported wscons yet 309#ukbd* at uhidev? reportid ? 310#wskbd* at ukbd? console ? mux 1 311 312# USB Generic HID devices 313#uhid* at uhidev? reportid ? 314 315# USB Printer 316#ulpt* at uhub? port ? configuration ? interface ? 317 318# USB Modem 319#umodem* at uhub? port ? configuration ? 320#ucom* at umodem? 321 322# USB Mass Storage; wd not supported 323#umass* at uhub? port ? configuration ? interface ? 324#atapibus* at umass? channel ? 325#scsibus* at umass? channel ? 326#wd* at umass? 327 328# USB audio 329#uaudio* at uhub? port ? configuration ? 330 331# USB MIDI 332#umidi* at uhub? port ? configuration ? 333 334# USB IrDA 335# USB-IrDA bridge spec 336#uirda* at uhub? port ? configuration ? interface ? 337#irframe* at uirda? 338 339# SigmaTel STIr4200 USB/IrDA Bridge 340#ustir* at uhub? port ? 341#irframe* at ustir? 342 343# USB Ethernet adapters 344#aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters 345#cue* at uhub? port ? # CATC USB-EL1201A based adapters 346#kue* at uhub? port ? # Kawasaki LSI KL5KUSB101B based adapters 347#url* at uhub? port ? # Realtek RTL8150L based adapters 348 349# Prolific PL2301/PL2302 host-to-host adapter 350#upl* at uhub? port ? 351 352# Serial adapters 353#uftdi* at uhub? port ? # FTDI FT8U100AX serial adapter 354#ucom* at uftdi? portno ? 355 356#umct* at uhub? port ? # MCT USB-RS232 serial adapter 357#ucom* at umct? portno ? 358 359#uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter 360#ucom* at uplcom? portno ? 361 362#uvscom* at uhub? port ? # SUNTAC Slipper U VS-10U serial adapter 363#ucom* at uvscom? portno ? 364 365# Diamond Multimedia Rio 500 366#urio* at uhub? port ? 367 368# USB Handspring Visor 369#uvisor* at uhub? port ? 370#ucom* at uvisor? 371 372# USB scanners 373#uscanner* at uhub? port ? 374 375# USB scanners that use SCSI emulation, e.g., HP5300 376#usscanner* at uhub? port ? 377#scsibus* at usscanner? channel ? 378 379# Y@P firmware loader 380#uyap* at uhub? port ? 381 382# D-Link DSB-R100 USB radio 383#udsbr* at uhub? port ? 384#radio* at udsbr? 385 386# USB Generic driver 387#ugen* at uhub? port ? 388 389 390#### Pseudo devices 391 392## A disk-like interface to files. Can be used to create floppy, CD, 393## miniroot images, etc. 394 395pseudo-device vnd 4 396 397## Concatenated and striped disks; with this, you can create a software-based 398## disk array similar to a "RAID 0" setup. See ccd(4). 399 400#pseudo-device ccd 4 401 402## RAIDframe disk driver: software RAID driver. See raid(4). 403 404pseudo-device raid 8 405options RAID_AUTOCONFIG # auto-configuration of RAID components 406# Options to enable various other RAIDframe RAID types. 407# options RF_INCLUDE_EVENODD=1 408# options RF_INCLUDE_RAID5_RS=1 409# options RF_INCLUDE_PARITYLOGGING=1 410# options RF_INCLUDE_CHAINDECLUSTER=1 411# options RF_INCLUDE_INTERDECLUSTER=1 412# options RF_INCLUDE_PARITY_DECLUSTERING=1 413# options RF_INCLUDE_PARITY_DECLUSTERING_DS=1 414 415 416## Memory disk device, used on boot floppies with compressed 417## kernel-plus-root-disk images. 418 419#pseudo-device md 1 420 421## Loopback network interface; required 422pseudo-device loop 423 424## SLIP and CSLIP interfaces, for IP over a serial line. 425pseudo-device sl 1 426 427## PPP, the successor to SLIP. See pppd(8). 428pseudo-device ppp 1 429 430## PPP over Ethernet (RFC 2516) 431pseudo-device pppoe 432 433## Network "tunnel" device, allowing protocol stacks to run in the userland. 434## This is used by the third-party user-mode "ppp" program, and others. 435#pseudo-device tun 4 436 437## Generic L3 over IP tunnel 438#pseudo-device gre 2 # generic L3 over IP tunnel 439 440## Berkeley Packet Filter, required to run RARPD. A generic C-language 441## interface that allows selective examining of incoming packets. 442pseudo-device bpfilter 4 443 444## IP Filter, used in firewall and NAT applications. See ipnat(8) for 445## one example of the use of the IP Filter. 446#pseudo-device ipfilter 447 448## for IPv6 449pseudo-device gif 1 # IPv[46] over IPv[46] tunnel (RFC1933) 450#pseudo-device faith 1 # IPv[46] tcp relay translation i/f 451#pseudo-device stf 1 # 6to4 IPv6 over IPv4 encapsulation 452 453## IEEE 802.1Q Virtual LAN encapsulation, see vlan(4). 454pseudo-device vlan 455 456## Simple inter-network traffic bridging 457pseudo-device bridge 458 459#### Other device configuration 460 461## Pseudo ttys, required for network logins and programs like screen. 462 463pseudo-device pty # pseudo-terminals 464 465## Random device, used to implement /dev/random (a source of random noise), 466## and generate randomness for some kernel formulae. 467 468pseudo-device rnd 469 470pseudo-device clockctl # user control of clock subsystem 471