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