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