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