GENERIC revision 1.170
1# $NetBSD: GENERIC,v 1.170 2018/12/12 06:29:36 maxv 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/cats/conf/std.cats" 22 23options INCLUDE_CONFIG_FILE # embed config file in kernel binary 24 25# estimated number of users 26 27maxusers 32 28 29# Standard system options 30 31options INSECURE # disable kernel securelevel 32 33options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT 34options NTP # NTP phase/frequency locked loop 35 36# experimental ELF support when used on a CATS board running ABLE 37#options ABLEELF 38#makeoptions ABLEELF="1" 39 40# Alternate buffer queue strategies for better responsiveness under high 41# disk I/O load. 42#options BUFQ_READPRIO 43#options BUFQ_PRIOCSCAN 44 45# CPU options 46 47# For StrongARM systems 48options CPU_SA110 # Support the SA110 core 49makeoptions CPUFLAGS="-march=armv4 -mtune=strongarm" 50#options VERBOSE_INIT_ARM 51#options FCOM_INIT_ARM # early console attach 52 53# File systems 54 55file-system FFS # UFS 56#file-system LFS # log-structured file system 57file-system MFS # memory file system 58file-system NFS # Network file system 59#file-system ADOSFS # AmigaDOS-compatible file system 60#file-system EXT2FS # second extended file system (linux) 61file-system CD9660 # ISO 9660 + Rock Ridge file system 62file-system MSDOSFS # MS-DOS file system 63file-system FDESC # /dev/fd 64file-system KERNFS # /kern 65file-system NULLFS # loopback file system 66#file-system OVERLAY # overlay filesystem 67file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs) 68file-system PROCFS # /proc 69file-system UMAPFS # NULLFS + uid and gid remapping 70file-system UNION # union file system 71#file-system CODA # Coda File System; also needs vcode (below) 72file-system PTYFS # /dev/pts/N support 73file-system TMPFS # Efficient memory file-system 74#file-system UDF # experimental - OSTA UDF CD/DVD file-system 75 76# File system options 77options QUOTA # legacy UFS quotas 78options QUOTA2 # new, in-filesystem UFS quotas 79#options FFS_EI # FFS Endian Independent support 80options NFSSERVER 81options WAPBL # File system journaling support 82#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental 83#options FFS_NO_SNAPSHOT # No FFS snapshot support 84options UFS_EXTATTR # Extended attribute support for UFS1 85 86# Networking options 87 88#options GATEWAY # packet forwarding 89options INET # IP + ICMP + TCP + UDP 90options INET6 # IPV6 91#options IPSEC # IP security 92#options IPSEC_DEBUG # debug for IP security 93#options MROUTING # IP multicast routing 94#options PIM # Protocol Independent Multicast 95#options NETATALK # AppleTalk networking 96options PPP_BSDCOMP # BSD-Compress compression support for PPP 97options PPP_DEFLATE # Deflate compression support for PPP 98options PPP_FILTER # Active filter support for PPP (requires bpf) 99#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 100 101#options ALTQ # Manipulate network interfaces' output queues 102#options ALTQ_BLUE # Stochastic Fair Blue 103#options ALTQ_CBQ # Class-Based Queueing 104#options ALTQ_CDNR # Diffserv Traffic Conditioner 105#options ALTQ_FIFOQ # First-In First-Out Queue 106#options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box) 107#options ALTQ_HFSC # Hierarchical Fair Service Curve 108#options ALTQ_LOCALQ # Local queueing discipline 109#options ALTQ_PRIQ # Priority Queueing 110#options ALTQ_RED # Random Early Detection 111#options ALTQ_RIO # RED with IN/OUT 112#options ALTQ_WFQ # Weighted Fair Queueing 113 114options NFS_BOOT_BOOTP 115options NFS_BOOT_DHCP 116#options NFS_BOOT_BOOTPARAM 117 118# Compatibility options 119 120include "conf/compat_netbsd13.config" 121options COMPAT_NETBSD32 # allow running arm (e.g. non-earm) binaries 122 123# Shared memory options 124 125options SYSVMSG # System V-like message queues 126options SYSVSEM # System V-like semaphores 127options SYSVSHM # System V-like memory sharing 128 129# Device options 130 131#options MEMORY_DISK_HOOKS # boottime setup of ramdisk 132#options MEMORY_DISK_ROOT_SIZE=3400 # Size in blocks 133#options MEMORY_DISK_IS_ROOT # use memory disk as root 134 135# Miscellaneous kernel options 136options KTRACE # system call tracing, a la ktrace(1) 137#options IRQSTATS # manage IRQ statistics 138options SCSIVERBOSE # Verbose SCSI errors 139options PCIVERBOSE # Verbose PCI descriptions 140options MIIVERBOSE # verbose PHY autoconfig messages 141#options PCI_CONFIG_DUMP # verbosely dump PCI config space 142options USBVERBOSE # verbose USB device autoconfig messages 143options USERCONF # userconf(4) support 144#options PIPE_SOCKETPAIR # smaller, but slower pipe(2) 145options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel 146 147# if set defines a keycode for the fcom console to break into ddb. 148# 0x40 == @, see man ascii(7) 149#options DDB_KEYCODE=0x40 150 151# wscons options 152#options WSEMUL_SUN # sun terminal emulation 153options WSEMUL_VT100 # VT100 / VT220 emulation 154# different kernel output - see dev/wscons/wsdisplayvar.h 155options WS_KERNEL_FG=WSCOL_GREEN 156options WSDISPLAY_COMPAT_PCVT # emulate some ioctls 157options WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls 158options WSDISPLAY_COMPAT_USL # wsconscfg VT handling 159options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes 160# see dev/wscons/wskbdmap_mfii.h for implemented layouts 161#options PCKBD_LAYOUT="(KB_DE | KB_NODEAD)" 162 163# Development and Debugging options 164 165#options PORTMASTER # Enable PortMaster only options 166#options DIAGNOSTIC # internal consistency checks 167#options PMAP_DEBUG # Enable pmap_debug_level code 168options DDB # in-kernel debugger 169options DDB_HISTORY_SIZE=100 # Enable history editing in DDB 170#makeoptions DEBUG="-g" # compile full symbol table 171#makeoptions COPY_SYMTAB=1 172 173config netbsd root on ? type ? 174 175# The main bus device 176mainbus0 at root 177 178# The boot CPU 179cpu0 at mainbus? 180 181# Core logic 182footbridge0 at mainbus? 183 184# footbridge uart 185fcom0 at footbridge? 186 187# system clock via footbridge 188#clock* at footbridge? 189 190# PCI bus support 191# PCI bus via footbridge 192pci0 at footbridge? # PCI bus 193 194pci* at ppb? bus ? 195 196# PCI bridges 197ppb* at pci? dev ? function ? # PCI-PCI bridges 198# XXX 'puc's aren't really bridges, but there's no better place for them here 199#puc* at pci? dev ? function ? # PCI "universal" comm. cards 200 201# Cryptographic Devices 202 203# PCI cryptographic devices 204#hifn* at pci? dev ? function ? # Hifn 7755/7811/795x 205#ubsec* at pci? dev ? function ? # Broadcom 5501/5601/580x/582x 206 207 208# PCI serial interfaces 209#com* at puc? port ? # 16x50s on "universal" comm boards 210#cy* at pci? dev ? function ? # Cyclades Cyclom-Y serial boards 211 212# PCI parallel printer interfaces 213#lpt* at puc? port ? # || ports on "universal" comm boards 214 215# PCI SCSI Controllers and Buses 216#adv* at pci? dev ? function ? # AdvanSys 1200[A,B], ULTRA SCSI 217#scsibus* at adv? 218#adw* at pci? dev ? function ? # AdvanSys 9xxUW SCSI 219#scsibus* at adw? 220#ahc* at pci? dev ? function ? # Adaptec [23]94x, aic78x0 SCSI controllers 221#scsibus* at ahc? 222#bha* at pci? dev ? function ? # BusLogic 9xx SCSI 223#scsibus* at bha? 224#iha* at pci? dev ? function ? # Initio INIC-940/950 SCSI 225#scsibus* at iha? 226#isp* at pci? dev ? function ? # Qlogic ISP 10x0 SCSI controllers 227#scsibus* at isp? 228#pcscp* at pci? dev ? function ? # AMD 53c974 PCscsi-PCI SCSI 229#scsibus* at pcscp? 230#siop* at pci? dev ? function ? # NCR 53c8xx SCSI 231#scsibus* at siop? 232#esiop* at pci? dev ? function ? # NCR 53c875 SCSI and newer 233#scsibus* at esiop? 234 235# SCSI devices 236#sd* at scsibus? target ? lun ? # SCSI disk drives 237#st* at scsibus? target ? lun ? # SCSI tape drives 238#cd* at scsibus? target ? lun ? # SCSI CD-ROM drives 239#ch* at scsibus? target ? lun ? # SCSI auto-changers 240#uk* at scsibus? target ? lun ? # SCSI unknown device 241#ss* at scsibus? target ? lun ? # SCSI scanner 242 243# PCI IDE Controllers and Devices 244# PCI IDE controllers - see pciide(4) for supported hardware. 245# The 0x0001 flag force the driver to use DMA, even if the driver doesn't know 246# how to set up DMA modes for this chip. This may work, or may cause 247# a machine hang with some controllers. 248#pciide* at pci? dev ? function ? flags 0x0000 # GENERIC pciide driver 249#acardide* at pci? dev ? function ? # Acard IDE controllers 250aceride* at pci? dev ? function ? # Acer Lab IDE controllers 251#artsata* at pci? dev ? function ? # Intel i31244 SATA controller 252#cmdide* at pci? dev ? function ? # CMD tech IDE controllers 253#cypide* at pci? dev ? function ? # Cypress IDE controllers 254#hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers 255#optiide* at pci? dev ? function ? # Opti IDE controllers 256#pdcide* at pci? dev ? function ? # Promise IDE controllers 257#pdcsata* at pci? dev ? function ? # Promise SATA150 controllers 258#satalink* at pci? dev ? function ? # SiI SATALink controllers 259#siside* at pci? dev ? function ? # SiS IDE controllers 260#slide* at pci? dev ? function ? # Symphony Labs IDE controllers 261#viaide* at pci? dev ? function ? # VIA/AMD/Nvidia IDE controllers 262 263# ATA (IDE) bus support 264atabus* at ata? 265 266# IDE drives 267# Flags are used only with controllers that support DMA operations 268# and mode settings (e.g. some pciide controllers) 269# The lowest order four bits (rightmost digit) of the flags define the PIO 270# mode to use, the next set of four bits the DMA mode and the third set the 271# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode 272# to use, and the last bit must be 1 for this setting to be used. 273# For DMA and UDMA, 0xf (1111) means 'disable'. 274# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'. 275# (0xc=1100, 0xa=1010, 0xf=1111) 276# 0x0000 means "use whatever the drive claims to support". 277wd* at atabus? drive ? flags 0x0000 # the drives themselves 278 279# ATAPI bus support 280atapibus* at atapi? 281 282# ATAPI devices 283cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives 284sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives 285uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown 286 287# PCI network interfaces 288ep* at pci? dev ? function ? # 3C590 ethernet cards 289ex* at pci? dev ? function ? # 3Com 90x[B] 290epic* at pci? dev ? function ? # SMC EPIC/100 Ethernet 291#esh* at pci? dev ? function ? # Essential HIPPI card 292#fpa* at pci? dev ? function ? # DEC DEFPA FDDI 293fxp* at pci? dev ? function ? # Intel EtherExpress PRO 10+/100B 294#le* at pci? dev ? function ? # PCnet-PCI Ethernet 295ne* at pci? dev ? function ? # NE2000 compat ethernet 296#ntwoc* at pci? dev ? function ? # Riscom/N2 PCI Sync Serial 297sip* at pci? dev ? function ? # SiS 900 Ethernet 298#tl* at pci? dev ? function ? # ThunderLAN-based Ethernet 299tlp* at pci? dev ? function ? # DECchip 21x4x and clones 300vr* at pci? dev ? function ? # VIA Rhine Fast Ethernet 301rtk* at pci? dev ? function ? # Realtek 8129/8139 302 303# MII/PHY support 304acphy* at mii? phy ? # DAltima AC101 and AMD Am79c874 PHYs 305amhphy* at mii? phy ? # AMD 79c901 Ethernet PHYs 306bmtphy* at mii? phy ? # Broadcom BCM5201 and BCM5202 PHYs 307brgphy* at mii? phy ? # Broadcom BCM5400-family PHYs 308dmphy* at mii? phy ? # Davicom DM9101 PHYs 309exphy* at mii? phy ? # 3Com internal PHYs 310glxtphy* at mii? phy ? # Level One LXT-1000 PHYs 311gphyter* at mii? phy ? # NS83861 Gig-E PHY 312icsphy* at mii? phy ? # Integrated Circuit Systems ICS189x 313inphy* at mii? phy ? # Intel 82555 PHYs 314iophy* at mii? phy ? # Intel 82553 PHYs 315lxtphy* at mii? phy ? # Level One LXT-970 PHYs 316makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs 317nsphy* at mii? phy ? # NS83840 PHYs 318nsphyter* at mii? phy ? # NS83843 PHYs 319pnaphy* at mii? phy ? # generic HomePNA PHYs 320qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs 321sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs 322tlphy* at mii? phy ? # ThunderLAN PHYs 323tqphy* at mii? phy ? # TDK Semiconductor PHYs 324ukphy* at mii? phy ? # generic unknown PHYs 325urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs 326 327# USB Controller and Devices 328 329# PCI USB controllers 330ohci* at pci? # Open Host Controller 331 332# USB bus support 333usb* at ohci? 334 335# USB Hubs 336uhub* at usb? 337uhub* at uhub? port ? 338 339# USB HID device 340uhidev* at uhub? port ? configuration ? interface ? 341 342# USB Mice 343ums* at uhidev? reportid ? 344wsmouse* at ums? 345 346# USB Keyboards 347ukbd* at uhidev? reportid ? 348wskbd* at ukbd? console ? 349 350# USB serial adapter 351ucycom* at uhidev? reportid ? 352 353# USB Generic HID devices 354uhid* at uhidev? reportid ? 355 356# USB Printer 357ulpt* at uhub? port ? configuration ? interface ? 358 359# USB Modem 360umodem* at uhub? port ? configuration ? 361ucom* at umodem? 362 363# USB Mass Storage 364umass* at uhub? port ? configuration ? interface ? 365scsibus* at umass? channel ? 366 367# USB audio 368uaudio* at uhub? port ? configuration ? 369audio* at uaudio? 370 371# USB MIDI 372umidi* at uhub? port ? configuration ? 373midi* at umidi? 374 375# USB Ethernet adapters 376aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters 377axe* at uhub? port ? # ASIX AX88172 based adapters 378cue* at uhub? port ? # CATC USB-EL1201A based adapters 379kue* at uhub? port ? # Kawasaki LSI KL5KUSB101B based adapters 380mue* at uhub? port ? # Microchip LAN75xx/LAN78xx based adapters 381url* at uhub? port ? # Realtek RTL8150L based adapters 382udav* at uhub? port ? # Davicom DM9601 based adapters 383 384# Prolific PL2301/PL2302 host-to-host adapter 385upl* at uhub? port ? 386 387# Serial adapters 388# FTDI FT8U100AX serial adapter 389uftdi* at uhub? port ? 390ucom* at uftdi? portno ? 391 392uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter 393ucom* at uplcom? portno ? 394 395umct* at uhub? port ? # MCT USB-RS232 serial adapter 396ucom* at umct? portno ? 397 398# Diamond Multimedia Rio 500 399urio* at uhub? port ? 400 401# USB Handspring Visor 402uvisor* at uhub? port ? 403ucom* at uvisor? 404 405# Kyocera AIR-EDGE PHONE 406ukyopon* at uhub? port ? 407ucom* at ukyopon? portno ? 408 409# USB scanners 410#uscanner* at uhub? port ? 411 412# USB scanners that use SCSI emulation, e.g., HP5300 413usscanner* at uhub? port ? 414scsibus* at usscanner? channel ? 415 416# Y@P firmware loader 417uyap* at uhub? port ? 418 419# USB Generic driver 420ugen* at uhub? port ? 421 422# Audio Devices 423 424# PCI audio devices 425#eap* at pci? dev ? function ? # Ensoniq AudioPCI 426#sv* at pci? dev ? function ? # S3 SonicVibes 427 428# Audio support 429#audio* at eap? 430#audio* at sv? 431 432vga* at pci? 433wsdisplay* at vga? console ? 434 435# ISA bus bridging 436 437pcib* at pci? dev ? function ? # PCI-ISA bridge 438isa* at pcib? # ISA bus 439 440# ISA Plug-and-Play bus support 441isapnp0 at isa? 442 443# wscons 444pckbc0 at isa? # pc keyboard controller 445pckbd* at pckbc? # PC keyboard 446pms* at pckbc? # PS/2 mouse for wsmouse 447wskbd* at pckbd? console ? 448wsmouse* at pms? 449 450attimer0 at isa? 451pcppi0 at isa? 452sysbeep0 at pcppi? 453 454# ISA Plug-and-Play serial interfaces 455com* at isapnp? # Modems and serial boards 456 457# ISA Plug-and-Play network interfaces 458ep* at isapnp? # 3Com 3c509 Ethernet 459fmv* at isapnp? # Fujitsu FMV-183 460ne* at isapnp? # NE2000-compatible 461 462# ISA serial interfaces 463com0 at isa? port 0x3f8 irq 4 # Standard PC serial ports 464com1 at isa? port 0x2f8 irq 3 465#com2 at isa? port 0x3e8 irq 9 466#com3 at isa? port 0x2e8 irq 10 467 468# ISA parallel printer interfaces 469lpt0 at isa? port 0x378 irq 7 # standard PC parallel ports 470lpt1 at isa? port 0x278 irq 5 471#lpt2 at isa? port 0x3bc 472 473# ISA floppy 474#fdc0 at isa? port 0x3f0 irq 6 drq 2 # standard PC floppy controllers 475#fdc1 at isa? port 0x370 irq ? drq ? 476#fd* at fdc? drive ? # the drives themselves 477 478# ISA network interface 479#ne0 at isa? port 0x280 irq 9 480#ne1 at isa? port 0x300 irq 10 481#ep* at isa? port ? irq ? 482 483# The spkr driver provides a simple tone interface to the built in speaker. 484spkr* at pcppi? # PC speaker 485spkr* at audio? # PC speaker (synthesized) 486 487ds1687rtc0 at isa? port 0x72 # Dallas 1687 RTC 488 489# ISA Plug-and-Play audio devices 490ess* at isapnp? # ESS Tech ES1887, ES1888, ES888 audio 491sb* at isapnp? # SoundBlaster-compatible audio 492wss* at isapnp? # Windows Sound System 493 494# OPL[23] FM syntheziers 495opl* at ess? 496opl* at sb? 497 498# Audio support 499audio* at ess? 500audio* at sb? 501audio* at wss? 502 503# MPU 401 UARTs 504#mpu* at sb? 505 506# MIDI support 507midi* at pcppi? # MIDI interface to the PC speaker 508midi* at sb? # SB MPU401 port 509midi* at opl? # OPL FM synth 510#midi* at mpu? # MPU 401 511 512# Joysticks 513 514# ISA Plug-and-Play joysticks 515joy* at isapnp? # Game ports (usually on audio cards) 516 517# ISA joysticks. Probe is a little strange; add only if you have one. 518#joy0 at isa? port 0x201 519 520# Pseudo-Devices 521 522#pseudo-device crypto # /dev/crypto device 523#pseudo-device swcrypto # software crypto implementation 524 525# disk/mass storage pseudo-devices 526pseudo-device ccd # concatenated/striped disk devices 527pseudo-device fss # file system snapshot device 528#pseudo-device cgd # cryptographic disk devices 529pseudo-device md # memory disk device (ramdisk) 530pseudo-device vnd # disk-like interface to files 531#options VND_COMPRESSION # compressed vnd(4) 532pseudo-device putter # for puffs and pud 533 534# network pseudo-devices 535pseudo-device bpfilter # Berkeley packet filter 536#pseudo-device carp # Common Address Redundancy Protocol 537#pseudo-device npf # NPF packet filter 538pseudo-device loop # network loopback 539pseudo-device ppp # Point-to-Point Protocol 540pseudo-device pppoe # PPP over Ethernet (RFC 2516) 541#pseudo-device sl # Serial Line IP 542#pseudo-device strip # Starmode Radio IP (Metricom) 543pseudo-device tun # network tunneling over tty 544pseudo-device tap # virtual Ethernet 545pseudo-device gre # generic L3 over IP tunnel 546pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933) 547#pseudo-device faith # IPv[46] tcp relay translation i/f 548pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 549pseudo-device vlan # IEEE 802.1q encapsulation 550pseudo-device bridge # simple inter-network bridging 551#options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too 552pseudo-device agr # IEEE 802.3ad link aggregation 553 554# 555# accept filters 556pseudo-device accf_data # "dataready" accept filter 557pseudo-device accf_http # "httpready" accept filter 558 559# miscellaneous pseudo-devices 560pseudo-device pty # pseudo-terminals 561pseudo-device sequencer # MIDI sequencer 562#options RND_COM # use "com" randomness as well (BROKEN) 563pseudo-device clockctl # user control of clock subsystem 564 565# a pseudo device needed for Coda # also needs CODA (above) 566#pseudo-device vcoda # coda minicache <-> venus comm. 567 568# mouse & keyboard multiplexor pseudo-devices 569pseudo-device wsmux 570pseudo-device wsfont 571pseudo-device ksyms # /dev/ksyms 572 573# Veriexec 574# 575# a pseudo device needed for veriexec 576#pseudo-device veriexec 577# 578# Uncomment the fingerprint methods below that are desired. Note that 579# removing fingerprint methods will have almost no impact on the kernel 580# code size. 581# 582#options VERIFIED_EXEC_FP_SHA256 583#options VERIFIED_EXEC_FP_SHA384 584#options VERIFIED_EXEC_FP_SHA512 585