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