GENERIC revision 1.93
1# $NetBSD: GENERIC,v 1.93 2005/06/09 14:43:31 tsutsui 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.93 $" 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_43 # and 4.3BSD 85#options COMPAT_LINUX # Linux binary compatibility 86#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended. 87options COMPAT_BSDPTY # /dev/[pt]ty?? ptys. 88 89# File systems 90file-system FFS # UFS 91file-system EXT2FS # second extended file system (linux) 92#file-system LFS # log-structured file system 93file-system MFS # memory file system 94file-system NFS # Network File System client 95#file-system NTFS # Windows/NT file system (experimental) 96file-system CD9660 # ISO 9660 + Rock Ridge file system 97file-system MSDOSFS # MS-DOS file system 98#file-system FDESC # /dev/fd 99file-system KERNFS # /kern 100file-system NULLFS # loopback file system 101#file-system OVERLAY # overlay file system 102#file-system PORTAL # portal filesystem (still experimental) 103file-system PROCFS # /proc 104#file-system UMAPFS # NULLFS + uid and gid remapping 105file-system UNION # union file system 106#file-system CODA # Coda File System; also needs vcoda (below) 107 108# File system options 109options QUOTA # UFS quotas 110#options FFS_EI # FFS Endian Independant support 111options SOFTDEP # FFS soft updates support. 112#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental 113options NFSSERVER # Network File System server 114#options FFS_NO_SNAPSHOT # ffs snapshots 115#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and 116 # immutable) behave as system flags. 117 118# Networking options 119#options GATEWAY # packet forwarding 120options INET # IP + ICMP + TCP + UDP 121options INET6 # IPv6 122#options IPSEC # IP security 123#options IPSEC_ESP # IP security (encryption part; define w/IPSEC) 124#options IPSEC_DEBUG # debug for IP security 125#options MROUTING # IP multicast routing 126#options PIM # Protocol Independent Multicast 127#options NETATALK # AppleTalk networking protocols 128options PPP_BSDCOMP # BSD-Compress compression support for PPP 129options PPP_DEFLATE # Deflate compression support for PPP 130options PPP_FILTER # Active filter support for PPP (requires bpf) 131options PFIL_HOOKS # pfil(9) packet filter hooks 132options IPFILTER_LOG # ipmon(8) log 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 159#options NFS_BOOT_BOOTP 160options NFS_BOOT_BOOTPARAM 161options NFS_BOOT_DHCP 162 163# 164# wscons options 165# 166# builtin terminal emulations 167options WSEMUL_VT100 # VT100 / VT220 emulation 168# different kernel output - see dev/wscons/wsdisplayvar.h 169options WS_KERNEL_FG=WSCOL_GREEN 170#options WS_KERNEL_BG=WSCOL_BLACK 171# see dev/pckbc/wskbdmap_mfii.c for implemented layouts 172#options PCKBD_LAYOUT="(KB_DE | KB_NODEAD)" 173# allocate a number of virtual screens at autoconfiguration time 174#options WSDISPLAY_DEFAULTSCREENS=4 175# use a large software cursor that doesn't blink 176options PCDISPLAY_SOFTCURSOR 177 178# Kernel root file system and dump configuration. 179config netbsd root on ? type ? 180#config netbsd root on tlp0 type nfs 181#config netbsd root on pcn0 type nfs 182 183 184# 185# Device configuration 186# 187 188mainbus0 at root 189cpu0 at mainbus0 190 191 192# Basic Bus Support 193 194# PCI bus support 195pci0 at mainbus0 bus ? 196pci* at pchb? bus ? 197pci* at ppb? bus ? 198 199options PCI_NETBSD_CONFIGURE 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 205 206# ISA bus support 207isa* at pcib? # ISA on PCI-ISA bridge 208 209# PCMCIA bus support 210pcmcia* at pcic? controller ? socket ? 211 212# ISA PCMCIA controllers 213pcic0 at isa? port 0x3e0 iomem 0xd0000 iosiz 0x10000 214 215#options PCIC_ISA_INTR_ALLOC_MASK=0x4a00 # free irq 9,11,14 216#options PCIC_ISA_ALLOC_IOBASE=0x0400 217#options PCIC_ISA_ALLOC_IOSIZE=0x0100 218 219# ISA Plug-and-Play bus support 220#isapnp0 at isa? 221 222# on-board I/O for IBM Personal Power Series 830 IDE controller 223obio0 at mainbus0 224 225 226# Console Devices 227 228# wscons 229pckbc0 at isa? # pc keyboard controller 230pckbd* at pckbc? # PC keyboard 231pms* at pckbc? # PS/2 mouse for wsmouse 232vga* at pci? 233wsdisplay* at vga? console ? 234wskbd* at pckbd? console ? 235wsmouse* at pms? mux 0 236 237attimer0 at isa? # AT Timer 238pcppi0 at isa? # PC prog. periph. interface 239isabeep0 at pcppi? # "keyboard" beep 240 241mcclock0 at isa? port 0x70 # mc146818 and compatible 242mkclock0 at isa? port 0x74 # mk48t18 and compatible 243 244 245# Cryptographic Devices 246 247# PCI cryptographic devices 248#hifn* at pci? dev ? function ? # Hifn 7755/7811/795x 249#ubsec* at pci? dev ? function ? # Broadcom 5501/5601/580x/582x 250 251 252# Serial Devices 253 254# ISA serial interfaces 255com0 at isa? port 0x3f8 irq 4 # standard PC serial ports 256com1 at isa? port 0x2f8 irq 3 257 258# PCMCIA serial interfaces 259com* at pcmcia? function ? # Modems and serial cards 260 261#pcmcom* at pcmcia? function ? # PCMCIA multi-port serial cards 262#com* at pcmcom? slave ? # ...and the slave devices 263 264 265# Parallel Printer Interfaces 266 267# ISA parallel printer interfaces 268lpt0 at isa? port 0x3bc irq 7 # standard PC parallel ports 269 270 271# SCSI Controllers and Devices 272 273# PCI SCSI controllers 274#adw* at pci? dev ? function ? # AdvanSys 9x0UW[D], 3940U[2,3]W SCSI 275ahc* at pci? dev ? function ? # Adaptec [23]94x, aic78x0 SCSI 276#iha* at pci? dev ? function ? # Initio INIC-940/950 SCSI 277#pcscp* at pci? dev ? function ? # AMD 53c974 PCscsi-PCI SCSI 278siop* at pci? dev ? function ? # Symbios 53c8xx SCSI 279esiop* at pci? dev ? function ? # Symbios 53c875 SCSI and newer 280 281# PCMCIA SCSI controllers 282aic* at pcmcia? function ? # Adaptec APA-1460 SCSI 283 284# SCSI bus support 285#scsibus* at adw? 286scsibus* at ahc? 287scsibus* at aic? 288#scsibus* at iha? 289#scsibus* at pcscp? 290scsibus* at siop? 291scsibus* at esiop? 292 293# SCSI devices 294sd* at scsibus? target ? lun ? # SCSI disk drives 295st* at scsibus? target ? lun ? # SCSI tape drives 296cd* at scsibus? target ? lun ? # SCSI CD-ROM drives 297#ch* at scsibus? target ? lun ? # SCSI autochangers 298#ss* at scsibus? target ? lun ? # SCSI scanners 299uk* at scsibus? target ? lun ? # SCSI unknown 300 301 302# IDE and related devices 303 304# IBM Personal Power Series 830 IDE controller 305wdc0 at obio? port 0x1f0 irq 13 306wdc1 at obio? port 0x170 irq 13 307 308# ISA Plug-and-Play IDE controllers 309#wdc* at isapnp? 310 311# PCMCIA IDE controllers 312wdc* at pcmcia? function ? 313 314# ATA (IDE) bus support 315atabus* at ata? 316 317# IDE drives 318# Flags are used only with controllers that support DMA operations 319# and mode settings (e.g. some pciide controllers) 320# The lowest order four bits (rightmost digit) of the flags define the PIO 321# mode to use, the next set of four bits the DMA mode and the third set the 322# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode 323# to use, and the last bit must be 1 for this setting to be used. 324# For DMA and UDMA, 0xf (1111) means 'disable'. 325# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'. 326# (0xc=1100, 0xa=1010, 0xf=1111) 327# 0x0000 means "use whatever the drive claims to support". 328wd* at atabus? drive ? flags 0x0000 329 330# ATAPI bus support 331atapibus* at atapi? 332 333# ATAPI devices 334# flags have the same meaning as for IDE drives. 335cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives 336sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives 337uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown 338 339# Miscellaneous mass storage devices 340 341# ISA Floppy 342#fdc0 at isa? port 0x3f0 irq 6 drq 2 # standard ISA floppy controller 343#fd0 at fdc0 drive ? 344 345# Network Interfaces 346 347# PCI network interfaces 348ep* at pci? dev ? function ? # 3Com 3c59x 349ex* at pci? dev ? function ? # 3Com 3c90x[BC] 350fxp* at pci? dev ? function ? # Intel EtherExpress PRO 10+/100B 351ne* at pci? dev ? function ? # NE2000-compatible Ethernet 352pcn* at pci? dev ? function ? # AMD PCnet-PCI Ethernet 353rtk* at pci? dev ? function ? # Realtek 8129/8139 354sip* at pci? dev ? function ? # SiS 900/DP83815 Ethernet 355tlp* at pci? dev ? function ? # DECchip 21x4x and clones 356vr* at pci? dev ? function ? # VIA Rhine Fast Ethernet 357 358# ISA network interfaces 359#ep* at isa? port ? irq ? # 3Com 3c509 Ethernet 360#ne0 at isa? port 0x280 irq 9 # NE2000-compatible Ethernet 361#ne1 at isa? port 0x300 irq 10 362#we0 at isa? port 0x280 iomem 0xd0000 irq 9 # WD/SMC Ethernet 363we1 at isa? port 0x300 iomem 0xe4000 irq 11 364 365# ISA Plug-and-Play network intefaces 366#ep* at isapnp? # 3Com 3c509 Ethernet 367#ne* at isapnp? # NE2000-compatible Ethernet 368 369# PCMCIA network interfaces 370ep* at pcmcia? function ? # 3Com 3c589 and 3c562 Ethernet 371ne* at pcmcia? function ? # NE2000-compatible Ethernet 372 373# MII/PHY support 374dmphy* at mii? phy ? # Davicom DM9101 PHYs 375exphy* at mii? phy ? # 3Com internal PHYs 376icsphy* at mii? phy ? # Integrated Circuit Systems ICS189x 377inphy* at mii? phy ? # Intel 82555 PHYs 378iophy* at mii? phy ? # Intel 82553 PHYs 379lxtphy* at mii? phy ? # Level One LXT-970 PHYs 380nsphy* at mii? phy ? # NS83840 PHYs 381nsphyter* at mii? phy ? # NS83843 PHYs 382qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs 383sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs 384tlphy* at mii? phy ? # ThunderLAN PHYs 385tqphy* at mii? phy ? # TDK Semiconductor PHYs 386ukphy* at mii? phy ? # generic unknown PHYs 387 388 389# USB Controller and Devices 390 391# PCI USB controllers 392#uhci* at pci? dev ? function ? # Universal Host Controller (Intel) 393#ohci* at pci? dev ? function ? # Open Host Controller 394 395# USB bus support 396#usb* at uhci? 397#usb* at ohci? 398 399# USB Hubs 400#uhub* at usb? 401#uhub* at uhub? port ? configuration ? interface ? 402 403# USB HID device 404#uhidev* at uhub? port ? configuration ? interface ? 405 406# USB Mice 407#ums* at uhidev? reportid ? 408#wsmouse* at ums? mux 0 409 410# USB Keyboards 411#ukbd* at uhidev? reportid ? 412#wskbd* at ukbd? console ? mux 1 413 414# USB Generic HID devices 415#uhid* at uhidev? reportid ? 416 417# USB Printer 418#ulpt* at uhub? port ? configuration ? interface ? 419 420# USB Modem 421#umodem* at uhub? port ? configuration ? 422#ucom* at umodem? 423 424# USB Mass Storage 425#umass* at uhub? port ? configuration ? interface ? 426#scsibus* at umass? channel ? 427#atapibus* at umass? 428 429# USB audio 430#uaudio* at uhub? port ? configuration ? 431 432# USB Ethernet adapters 433#aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters 434#axe* at uhub? port ? # ASIX AX88172 based adapters 435#cue* at uhub? port ? # CATC USB-EL1201A based adapters 436#kue* at uhub? port ? # Kawasaki LSI KL5KUSB101B based adapters 437#url* at uhub? port ? # Realtek RTL8150L based adapters 438#udav* at uhub? port ? # Davicom DM9601 based adapters 439 440# Prolofic PL2301/PL2302 host-to-host adapter 441#upl* at uhub? port ? 442 443# Serial adapters 444#uftdi* at uhub? port ? # FTDI FT8U100AX serial adapter 445#ucom* at uftdi? portno ? 446 447#umct* at uhub? port ? # MCT USB-RS232 serial adapter 448#ucom* at umct? portno ? 449 450#uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter 451#ucom* at uplcom? portno ? 452 453#uvscom* at uhub? port ? # SUNTAC Slipper U VS-10U serial adapter 454#ucom* at uvscom? portno ? 455 456# Diamond Multimedia Rio 500 457#urio* at uhub? port ? 458 459# USB Handspring Visor 460#uvisor* at uhub? port ? 461#ucom* at uvisor? 462 463# Kyocera AIR-EDGE PHONE 464#ukyopon* at uhub? port ? 465#ucom* at ukyopon? portno ? 466 467# Y@P firmware loader 468#uyap* at uhub? port ? 469 470# USB Generic driver 471#ugen* at uhub? port ? 472 473# USB scanners 474#uscanner* at uhub? port ? 475 476 477# Audio device 478 479# ISA Plug-and-Play audio devices 480#wss* at isapnp? # CS4232 481 482# Audio support 483#audio* at uaudio? 484#audio* at wss? 485 486# MIDI support 487#midi* at pcppi? # MIDI interface to the PC speaker 488 489# The spkr driver provides a simple tone interface to the built in speaker. 490#spkr0 at pcppi? # PC speaker 491 492 493# Joysticks 494 495# ISA Plug-and-Play joysticks 496#joy* at isapnp? # Game ports (usually on audio cards) 497 498# ISA joysticks. Probe is a little strange; add only if you have one. 499#joy0 at isa? port 0x201 500 501 502# Pseudo-Devices 503 504# Not yet ready -- prep lacks generic soft interrupts 505#pseudo-device crypto # opencrypto framework 506 507# disk/mass storage pseudo-devices 508pseudo-device ccd 4 # concatenated/striped disk devices 509#pseudo-device cgd 4 # cryptographic disk devices 510#pseudo-device raid 8 # RAIDframe disk driver 511#options RAID_AUTOCONFIG # auto-configuration of RAID components 512# Options to enable various other RAIDframe RAID types. 513# options RF_INCLUDE_EVENODD=1 514# options RF_INCLUDE_RAID5_RS=1 515# options RF_INCLUDE_PARITYLOGGING=1 516# options RF_INCLUDE_CHAINDECLUSTER=1 517# options RF_INCLUDE_INTERDECLUSTER=1 518# options RF_INCLUDE_PARITY_DECLUSTERING=1 519# options RF_INCLUDE_PARITY_DECLUSTERING_DS=1 520pseudo-device fss 4 # file system snapshot device 521pseudo-device md 1 # memory disk device (ramdisk) 522pseudo-device vnd 4 # disk-like interface to files 523 524# network pseudo-devices 525pseudo-device loop # network loopback 526pseudo-device bpfilter 8 # Berkeley packet filter 527pseudo-device ipfilter # IP filter (firewall) and NAT 528pseudo-device ppp 2 # Point-to-Point Protocol 529pseudo-device pppoe # PPP over Ethernet (RFC 2516) 530pseudo-device sl 2 # Serial Line IP 531pseudo-device strip 2 # Starmode Radio IP (Metricom) 532pseudo-device tun 2 # network tunneling over tty 533pseudo-device tap # virtual Ethernet 534pseudo-device gre 2 # generic L3 over IP tunnel 535pseudo-device gif 4 # IPv[46] over IPv[46] tunnel (RFC1933) 536#pseudo-device faith 2 # IPv[46] tcp relay translation i/f 537#pseudo-device stf 2 # 6to4 IPv6 over IPv4 encapsulation 538pseudo-device vlan # IEEE 802.1q encapsulation 539pseudo-device bridge # simple inter-network bridging 540#options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too 541 542# miscellaneous pseudo-devices 543pseudo-device pty # pseudo-terminals 544pseudo-device tb 1 # tablet line discipline 545#pseudo-device sequencer 1 # MIDI sequencer 546pseudo-device rnd # /dev/random and in-kernel generator 547#options RND_COM # use "com" randomness as well 548pseudo-device clockctl # user control of clock subsystem 549pseudo-device ksyms # /dev/ksyms 550#pseudo-device pf # PF packet filter 551#pseudo-device pflog # PF log if 552 553# a pseudo device needed for Coda # also needs CODA (above) 554#pseudo-device vcoda 4 # coda minicache <-> venus comm. 555 556# wscons pseudo-devices 557pseudo-device wsmux # mouse & keyboard multiplexor 558pseudo-device wsfont 559