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