GENERIC revision 1.137
1# $NetBSD: GENERIC,v 1.137 2007/10/17 19:56:48 garbled 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/prep/conf/std.prep" 22 23options INCLUDE_CONFIG_FILE # embed config file in kernel binary 24 25#ident "GENERIC-$Revision: 1.137 $" 26 27maxusers 32 28 29# Platform support 30 31options PIC_OPENPIC # OpenPIC support (7043-140) 32options PIC_PREPIVR 33options PIC_I8259 34 35# Standard system options 36 37options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT 38options NTP # NTP phase/frequency locked loop 39 40options KTRACE # system call tracing via ktrace(1) 41#options SYSTRACE # system call vetting via systrace(1) 42 43options SYSVMSG # System V-like message queues 44options SYSVSEM # System V-like semaphores 45#options SEMMNI=10 # number of semaphore identifiers 46#options SEMMNS=60 # number of semaphores in system 47#options SEMUME=10 # max number of undo entries per process 48#options SEMMNU=30 # number of undo structures in system 49options SYSVSHM # System V-like memory sharing 50#options SHMMAXPGS=1024 # 1024 pages is the default 51options P1003_1B_SEMAPHORE # p1003.1b semaphore support 52 53options LKM # loadable kernel modules 54 55options USERCONF # userconf(4) support 56#options PIPE_SOCKETPAIR # smaller, but slower pipe(2) 57options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel 58 59# Enable experimental buffer queue strategy for better responsiveness under 60# high disk I/O load. Use it with caution - it's not proven to be stable yet. 61#options BUFQ_READPRIO 62#options BUFQ_PRIOCSCAN 63 64# Diagnostic/debugging support options 65#options DIAGNOSTIC # cheap kernel consistency checks 66#options DEBUG # expensive debugging checks/support 67#options KMEMSTATS # kernel memory statistics (vmstat -m) 68options DDB # in-kernel debugger 69#options DDB_HISTORY_SIZE=100 # Enable history editing in DDB 70#makeoptions DEBUG="-g" 71 72# Compatibility options 73options COMPAT_13 # NetBSD 1.3, 74options COMPAT_14 # NetBSD 1.4, 75options COMPAT_15 # NetBSD 1.5, 76options COMPAT_16 # NetBSD 1.6, 77options COMPAT_20 # NetBSD 2.0, 78options COMPAT_30 # NetBSD 3.0 compatibility. 79options COMPAT_43 # and 4.3BSD 80#options COMPAT_LINUX # Linux binary compatibility 81#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended. 82options COMPAT_BSDPTY # /dev/[pt]ty?? ptys. 83 84# File systems 85file-system FFS # UFS 86file-system EXT2FS # second extended file system (linux) 87#file-system LFS # log-structured file system 88file-system MFS # memory file system 89file-system NFS # Network File System client 90#file-system NTFS # Windows/NT file system (experimental) 91file-system CD9660 # ISO 9660 + Rock Ridge file system 92file-system MSDOSFS # MS-DOS file system 93#file-system FDESC # /dev/fd 94file-system KERNFS # /kern 95file-system NULLFS # loopback file system 96#file-system OVERLAY # overlay file system 97#file-system PORTAL # portal filesystem (still experimental) 98file-system PROCFS # /proc 99#file-system UMAPFS # NULLFS + uid and gid remapping 100file-system UNION # union file system 101#file-system CODA # Coda File System; also needs vcoda (below) 102file-system PTYFS # /dev/pts/N support 103#file-system TMPFS # Efficient memory file-system 104#file-system UDF # experimental - OSTA UDF CD/DVD file-system 105 106# File system options 107options QUOTA # UFS quotas 108#options FFS_EI # FFS Endian Independant support 109options SOFTDEP # FFS soft updates support. 110#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental 111options NFSSERVER # Network File System server 112#options FFS_NO_SNAPSHOT # No FFS snapshot support 113#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and 114 # immutable) behave as system flags. 115 116# Networking options 117#options GATEWAY # packet forwarding 118options INET # IP + ICMP + TCP + UDP 119options INET6 # IPv6 120#options IPSEC # IP security 121#options IPSEC_ESP # IP security (encryption part; define w/IPSEC) 122#options IPSEC_NAT_T # IPsec NAT traversal (NAT-T) 123#options IPSEC_DEBUG # debug for IP security 124#options MROUTING # IP multicast routing 125#options PIM # Protocol Independent Multicast 126#options NETATALK # AppleTalk networking protocols 127options PPP_BSDCOMP # BSD-Compress compression support for PPP 128options PPP_DEFLATE # Deflate compression support for PPP 129options PPP_FILTER # Active filter support for PPP (requires bpf) 130options PFIL_HOOKS # pfil(9) packet filter hooks 131options IPFILTER_LOG # ipmon(8) log support 132options IPFILTER_LOOKUP # ippool(8) support 133#options IPFILTER_DEFAULT_BLOCK # block all packets by default 134#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 135 136#options ALTQ # Manipulate network interfaces' output queues 137#options ALTQ_BLUE # Stochastic Fair Blue 138#options ALTQ_CBQ # Class-Based Queueing 139#options ALTQ_CDNR # Diffserv Traffic Conditioner 140#options ALTQ_FIFOQ # First-In First-Out Queue 141#options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box) 142#options ALTQ_HFSC # Hierarchical Fair Service Curve 143#options ALTQ_LOCALQ # Local queueing discipline 144#options ALTQ_PRIQ # Priority Queueing 145#options ALTQ_RED # Random Early Detection 146#options ALTQ_RIO # RED with IN/OUT 147#options ALTQ_WFQ # Weighted Fair Queueing 148 149# These options enable verbose messages for several subsystems. 150# Warning, these may compile large string tables into the kernel! 151#options MIIVERBOSE # verbose PHY autoconfig messages 152options PCIVERBOSE # verbose PCI device autoconfig messages 153#options PCI_CONFIG_DUMP # verbosely dump PCI config space 154#options PCMCIAVERBOSE # verbose PCMCIA configuration messages 155options SCSIVERBOSE # human readable SCSI error messages 156#options USBVERBOSE # verbose USB device autoconfig messages 157#options RESIDUAL_DATA_DUMP # verbosely dump residual data 158#options NVRAM_DUMP # verbosely dump contents of nvram. 159 # Warning: output may not be ascii! 160 161#options NFS_BOOT_BOOTP 162options NFS_BOOT_BOOTPARAM 163options NFS_BOOT_DHCP 164 165# 166# wscons options 167# 168# builtin terminal emulations 169options WSEMUL_VT100 # VT100 / VT220 emulation 170# different kernel output - see dev/wscons/wsdisplayvar.h 171options WS_KERNEL_FG=WSCOL_GREEN 172#options WS_KERNEL_BG=WSCOL_BLACK 173# see dev/pckbport/wskbdmap_mfii.c for implemented layouts 174#options PCKBD_LAYOUT="(KB_DE | KB_NODEAD)" 175# allocate a number of virtual screens at autoconfiguration time 176#options WSDISPLAY_DEFAULTSCREENS=4 177# use a large software cursor that doesn't blink 178options PCDISPLAY_SOFTCURSOR 179 180# Kernel root file system and dump configuration. 181config netbsd root on ? type ? 182#config netbsd root on tlp0 type nfs 183#config netbsd root on pcn0 type nfs 184 185 186# 187# Device configuration 188# 189 190mainbus0 at root 191cpu0 at mainbus0 192 193 194# Basic Bus Support 195 196# PCI bus support 197pci0 at mainbus0 bus ? 198pci* at pchb? bus ? 199pci* at ppb? bus ? 200 201# PCI bridges 202pchb* at pci? dev ? function ? # PCI-Host bridges 203ppb* at pci? dev ? function ? # PCI-PCI bridges 204pcib* at pci? dev ? function ? # PCI-ISA bridges 205pceb* at pci? dev ? function ? # PCI-EISA bridges 206 207# EISA bus support 208eisa* at pceb? 209 210# ISA bus support 211isa* at pcib? # ISA on PCI-ISA bridge 212isa* at pceb? 213 214# PCMCIA bus support 215pcmcia* at pcic? controller ? socket ? 216 217# ISA PCMCIA controllers 218pcic0 at isa? port 0x3e0 iomem 0xd0000 iosiz 0x10000 219 220#options PCIC_ISA_INTR_ALLOC_MASK=0x4a00 # free irq 9,11,14 221#options PCIC_ISA_ALLOC_IOBASE=0x0400 222#options PCIC_ISA_ALLOC_IOSIZE=0x0100 223 224# ISA Plug-and-Play bus support 225#isapnp0 at isa? 226 227# on-board I/O for IBM Personal Power Series 830 IDE controller 228pnpbus0 at mainbus0 229 230# Console Devices 231 232# wscons 233pckbc0 at isa? # pc keyboard controller 234pckbd* at pckbc? # PC keyboard 235pms* at pckbc? # PS/2 mouse for wsmouse 236vga* at pci? 237wsdisplay* at vga? console ? 238wskbd* at pckbd? console ? 239wsmouse* at pms? mux 0 240 241attimer0 at isa? # AT Timer 242pcppi0 at isa? # PC prog. periph. interface 243isabeep0 at pcppi? # "keyboard" beep 244 245#mcclock0 at isa? port 0x70 # mc146818 and compatible 246mcclock* at pnpbus? # mc146818 and compatible 247mkclock* at pnpbus? # mk48t18 and compatible 248 249nvram* at pnpbus? 250 251# Cryptographic Devices 252 253# PCI cryptographic devices 254#hifn* at pci? dev ? function ? # Hifn 7755/7811/795x 255#ubsec* at pci? dev ? function ? # Broadcom 5501/5601/580x/582x 256 257 258# Serial Devices 259 260# ISA serial interfaces 261com0 at isa? port 0x3f8 irq 4 # standard PC serial ports 262com1 at isa? port 0x2f8 irq 3 263 264# PCMCIA serial interfaces 265com* at pcmcia? function ? # Modems and serial cards 266 267#pcmcom* at pcmcia? function ? # PCMCIA multi-port serial cards 268#com* at pcmcom? slave ? # ...and the slave devices 269 270 271# Parallel Printer Interfaces 272 273# ISA parallel printer interfaces 274lpt0 at isa? port 0x3bc irq 7 # standard PC parallel ports 275 276 277# SCSI Controllers and Devices 278 279# PCI SCSI controllers 280#adw* at pci? dev ? function ? # AdvanSys 9x0UW[D], 3940U[2,3]W SCSI 281ahc* at pci? dev ? function ? # Adaptec [23]94x, aic78x0 SCSI 282#iha* at pci? dev ? function ? # Initio INIC-940/950 SCSI 283#pcscp* at pci? dev ? function ? # AMD 53c974 PCscsi-PCI SCSI 284siop* at pci? dev ? function ? # Symbios 53c8xx SCSI 285esiop* at pci? dev ? function ? # Symbios 53c875 SCSI and newer 286 287# PCMCIA SCSI controllers 288aic* at pcmcia? function ? # Adaptec APA-1460 SCSI 289spc* at pcmcia? function ? # Fujitsu MB87030/MB89352 SCSI 290 291# SCSI bus support 292#scsibus* at adw? 293scsibus* at ahc? 294scsibus* at aic? 295#scsibus* at iha? 296#scsibus* at pcscp? 297scsibus* at siop? 298scsibus* at spc? 299scsibus* at esiop? 300 301# SCSI devices 302sd* at scsibus? target ? lun ? # SCSI disk drives 303st* at scsibus? target ? lun ? # SCSI tape drives 304cd* at scsibus? target ? lun ? # SCSI CD-ROM drives 305#ch* at scsibus? target ? lun ? # SCSI autochangers 306#ss* at scsibus? target ? lun ? # SCSI scanners 307uk* at scsibus? target ? lun ? # SCSI unknown 308 309# IDE and related devices 310 311# IDE controller found on most Power Personal machines 312wdc* at pnpbus? 313 314# PCI IDE controllers 315pciide* at pci? dev ? function ? flags 0x0000 316hptide* at pci? dev ? function ? 317slide* at pci? dev ? function ? 318 319#fdc0 at pnpbus? # standard ISA floppy controller 320#fd0 at fdc0 drive ? 321 322# ISA Plug-and-Play IDE controllers 323#wdc* at isapnp? 324 325# PCMCIA IDE controllers 326wdc* at pcmcia? function ? 327 328# ATA (IDE) bus support 329atabus* at ata? 330 331# IDE drives 332# Flags are used only with controllers that support DMA operations 333# and mode settings (e.g. some pciide controllers) 334# The lowest order four bits (rightmost digit) of the flags define the PIO 335# mode to use, the next set of four bits the DMA mode and the third set the 336# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode 337# to use, and the last bit must be 1 for this setting to be used. 338# For DMA and UDMA, 0xf (1111) means 'disable'. 339# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'. 340# (0xc=1100, 0xa=1010, 0xf=1111) 341# 0x0000 means "use whatever the drive claims to support". 342wd* at atabus? drive ? flags 0x0000 343 344# ATAPI bus support 345atapibus* at atapi? 346 347# ATAPI devices 348# flags have the same meaning as for IDE drives. 349cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives 350sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives 351uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown 352 353# Miscellaneous mass storage devices 354 355# ISA Floppy 356#fdc0 at isa? port 0x3f0 irq 6 drq 2 # standard ISA floppy controller 357#fd0 at fdc0 drive ? 358 359# Network Interfaces 360 361# PCI network interfaces 362ep* at pci? dev ? function ? # 3Com 3c59x 363ex* at pci? dev ? function ? # 3Com 3c90x[BC] 364fxp* at pci? dev ? function ? # Intel EtherExpress PRO 10+/100B 365ne* at pci? dev ? function ? # NE2000-compatible Ethernet 366pcn* at pci? dev ? function ? # AMD PCnet-PCI Ethernet 367rtk* at pci? dev ? function ? # Realtek 8129/8139 368sip* at pci? dev ? function ? # SiS 900/DP83815 Ethernet 369tlp* at pci? dev ? function ? # DECchip 21x4x and clones 370vr* at pci? dev ? function ? # VIA Rhine Fast Ethernet 371 372# pnpbus network interfaces 373we* at pnpbus? # WD/SMC Ethernet 374 375# ISA network interfaces 376#ep* at isa? port ? irq ? # 3Com 3c509 Ethernet 377#ne0 at isa? port 0x280 irq 9 # NE2000-compatible Ethernet 378#ne1 at isa? port 0x300 irq 10 379#we0 at isa? port 0x280 iomem 0xd0000 irq 9 # WD/SMC Ethernet 380we1 at isa? port 0x300 iomem 0xe8000 irq 11 381 382# ISA Plug-and-Play network intefaces 383#ep* at isapnp? # 3Com 3c509 Ethernet 384#ne* at isapnp? # NE2000-compatible Ethernet 385 386# PCMCIA network interfaces 387ep* at pcmcia? function ? # 3Com 3c589 and 3c562 Ethernet 388ne* at pcmcia? function ? # NE2000-compatible Ethernet 389 390# MII/PHY support 391dmphy* at mii? phy ? # Davicom DM9101 PHYs 392exphy* at mii? phy ? # 3Com internal PHYs 393icsphy* at mii? phy ? # Integrated Circuit Systems ICS189x 394inphy* at mii? phy ? # Intel 82555 PHYs 395iophy* at mii? phy ? # Intel 82553 PHYs 396lxtphy* at mii? phy ? # Level One LXT-970 PHYs 397nsphy* at mii? phy ? # NS83840 PHYs 398nsphyter* at mii? phy ? # NS83843 PHYs 399qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs 400sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs 401tlphy* at mii? phy ? # ThunderLAN PHYs 402tqphy* at mii? phy ? # TDK Semiconductor PHYs 403ukphy* at mii? phy ? # generic unknown PHYs 404 405 406# USB Controller and Devices 407 408# PCI USB controllers 409#uhci* at pci? dev ? function ? # Universal Host Controller (Intel) 410#ohci* at pci? dev ? function ? # Open Host Controller 411 412# PCMCIA USB controllers 413#slhci* at pcmcia? function ? # ScanLogic SL811HS 414 415# USB bus support 416#usb* at uhci? 417#usb* at ohci? 418#usb* at slhci? 419 420# USB Hubs 421#uhub* at usb? 422#uhub* at uhub? port ? 423 424# USB HID device 425#uhidev* at uhub? port ? configuration ? interface ? 426 427# USB Mice 428#ums* at uhidev? reportid ? 429#wsmouse* at ums? mux 0 430 431# USB Keyboards 432#ukbd* at uhidev? reportid ? 433#wskbd* at ukbd? console ? mux 1 434 435# USB serial adapter 436#ucycom* at uhidev? reportid ? 437 438# USB Generic HID devices 439#uhid* at uhidev? reportid ? 440 441# USB Printer 442#ulpt* at uhub? port ? configuration ? interface ? 443 444# USB Modem 445#umodem* at uhub? port ? configuration ? 446#ucom* at umodem? 447 448# USB Mass Storage 449#umass* at uhub? port ? configuration ? interface ? 450#scsibus* at umass? channel ? 451#atapibus* at umass? 452 453# USB audio 454#uaudio* at uhub? port ? configuration ? 455 456# USB Ethernet adapters 457#aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters 458#axe* at uhub? port ? # ASIX AX88172 based adapters 459#cue* at uhub? port ? # CATC USB-EL1201A based adapters 460#kue* at uhub? port ? # Kawasaki LSI KL5KUSB101B based adapters 461#url* at uhub? port ? # Realtek RTL8150L based adapters 462#udav* at uhub? port ? # Davicom DM9601 based adapters 463 464# Prolific PL2301/PL2302 host-to-host adapter 465#upl* at uhub? port ? 466 467# Serial adapters 468#uftdi* at uhub? port ? # FTDI FT8U100AX serial adapter 469#ucom* at uftdi? portno ? 470 471#umct* at uhub? port ? # MCT USB-RS232 serial adapter 472#ucom* at umct? portno ? 473 474#uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter 475#ucom* at uplcom? portno ? 476 477#uvscom* at uhub? port ? # SUNTAC Slipper U VS-10U serial adapter 478#ucom* at uvscom? portno ? 479 480# Diamond Multimedia Rio 500 481#urio* at uhub? port ? 482 483# USB Handspring Visor 484#uvisor* at uhub? port ? 485#ucom* at uvisor? 486 487# Kyocera AIR-EDGE PHONE 488#ukyopon* at uhub? port ? 489#ucom* at ukyopon? portno ? 490 491# Y@P firmware loader 492#uyap* at uhub? port ? 493 494# USB Generic driver 495#ugen* at uhub? port ? 496 497# USB scanners 498#uscanner* at uhub? port ? 499 500 501# Audio device 502 503# ISA Plug-and-Play audio devices 504#wss* at isapnp? # CS4232 505 506# Audio support 507#audio* at uaudio? 508#audio* at wss? 509 510# MIDI support 511#midi* at pcppi? # MIDI interface to the PC speaker 512 513# The spkr driver provides a simple tone interface to the built in speaker. 514#spkr0 at pcppi? # PC speaker 515 516 517# Joysticks 518 519# ISA Plug-and-Play joysticks 520#joy* at isapnp? # Game ports (usually on audio cards) 521 522# ISA joysticks. Probe is a little strange; add only if you have one. 523#joy0 at isa? port 0x201 524 525# Pull in optional local configuration 526include "arch/prep/conf/GENERIC.local" 527 528# Pseudo-Devices 529 530pseudo-device crypto # /dev/crypto device 531pseudo-device swcrypto # software crypto implementation 532 533# disk/mass storage pseudo-devices 534pseudo-device ccd 4 # concatenated/striped disk devices 535#pseudo-device cgd 4 # cryptographic disk devices 536pseudo-device raid 8 # RAIDframe disk driver 537options RAID_AUTOCONFIG # auto-configuration of RAID components 538# Options to enable various other RAIDframe RAID types. 539# options RF_INCLUDE_EVENODD=1 540# options RF_INCLUDE_RAID5_RS=1 541# options RF_INCLUDE_PARITYLOGGING=1 542# options RF_INCLUDE_CHAINDECLUSTER=1 543# options RF_INCLUDE_INTERDECLUSTER=1 544# options RF_INCLUDE_PARITY_DECLUSTERING=1 545# options RF_INCLUDE_PARITY_DECLUSTERING_DS=1 546pseudo-device fss 4 # file system snapshot device 547pseudo-device md 1 # memory disk device (ramdisk) 548pseudo-device vnd # disk-like interface to files 549#options VND_COMPRESSION # compressed vnd(4) 550 551# network pseudo-devices 552pseudo-device loop # network loopback 553pseudo-device bpfilter # Berkeley packet filter 554#pseudo-device carp # Common Address Redundancy Protocol 555pseudo-device ipfilter # IP filter (firewall) and NAT 556pseudo-device ppp # Point-to-Point Protocol 557pseudo-device pppoe # PPP over Ethernet (RFC 2516) 558#pseudo-device sl # Serial Line IP 559pseudo-device strip # Starmode Radio IP (Metricom) 560pseudo-device tun # network tunneling over tty 561pseudo-device tap # virtual Ethernet 562pseudo-device gre # generic L3 over IP tunnel 563pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933) 564#pseudo-device faith # IPv[46] tcp relay translation i/f 565pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 566pseudo-device vlan # IEEE 802.1q encapsulation 567pseudo-device bridge # simple inter-network bridging 568#options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too 569pseudo-device agr # IEEE 802.3ad link aggregation 570 571# miscellaneous pseudo-devices 572pseudo-device pty # pseudo-terminals 573#pseudo-device sequencer 1 # MIDI sequencer 574pseudo-device rnd # /dev/random and in-kernel generator 575#options RND_COM # use "com" randomness as well 576pseudo-device clockctl # user control of clock subsystem 577pseudo-device ksyms # /dev/ksyms 578#pseudo-device pf # PF packet filter 579#pseudo-device pflog # PF log if 580 581# a pseudo device needed for Coda # also needs CODA (above) 582#pseudo-device vcoda 4 # coda minicache <-> venus comm. 583 584# wscons pseudo-devices 585pseudo-device wsmux # mouse & keyboard multiplexor 586pseudo-device wsfont 587 588options FILEASSOC # fileassoc(9) - required for Veriexec 589 590# Veriexec 591# 592# a pseudo device needed for veriexec 593pseudo-device veriexec 1 594# 595# Uncomment the fingerprint methods below that are desired. Note that 596# removing fingerprint methods will have almost no impact on the kernel 597# code size. 598# 599options VERIFIED_EXEC_FP_RMD160 600options VERIFIED_EXEC_FP_SHA256 601options VERIFIED_EXEC_FP_SHA384 602options VERIFIED_EXEC_FP_SHA512 603options VERIFIED_EXEC_FP_SHA1 604options VERIFIED_EXEC_FP_MD5 605