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