files.i386 revision 1.168
1# $NetBSD: files.i386,v 1.168 2000/10/19 14:32:21 ad Exp $ 2# 3# new style config file for i386 architecture 4# 5 6# maxpartitions must be first item in files.${ARCH}.newconf 7maxpartitions 8 8 9maxusers 2 16 64 10 11# APM options 12defopt opt_apm.h APM_DISABLE APM_FORCE_64K_SEGMENTS APM_NO_IDLE 13 APM_NO_STANDBY APM_V10_ONLY APM_NO_V12 APMDEBUG APMDEBUG_VALUE 14 APM_POWER_PRINT APM_DISABLE_INTERRUPTS APM_ALLOW_BOGUS_SEGMENTS 15 16# Processor type options. 17defopt opt_cputype.h I386_CPU I486_CPU I586_CPU I686_CPU 18 19# delay before cpu_reset() for reboot. 20defopt CPURESET_DELAY 21 22# VM86 emulation 23defopt VM86 24 25# Floating point emulation 26defopt MATH_EMULATE 27 28# User-settable LDT (used by WINE) 29defopt USER_LDT 30 31# Speed hack; make NOPs dummies (might break on some machines) 32defopt DUMMY_NOPS 33 34# Performance counter support 35defopt PERFCTRS 36 37# X server support in console drivers 38defopt opt_xserver.h XSERVER XSERVER_DDB 39 40# understand boot device passed by pre-1.3 bootblocks 41defopt COMPAT_OLDBOOT 42 43# PCI BIOS options 44defopt opt_pcibios.h PCIBIOS PCIBIOSVERBOSE 45 PCIBIOS_ADDR_FIXUP PCIBIOS_BUS_FIXUP 46 PCIBIOS_INTR_FIXUP PCIBIOS_INTR_FIXUP_FORCE 47 PCIBIOS_INTR_GUESS PCIBIOS_IRQS_HINT PCIINTR_DEBUG 48 49# Large page size 50defopt LARGEPAGES 51 52file arch/i386/i386/autoconf.c 53file arch/i386/i386/bus_machdep.c 54file arch/i386/i386/conf.c 55file arch/i386/i386/consinit.c 56file arch/i386/i386/db_dbgreg.s ddb 57file arch/i386/i386/db_disasm.c ddb 58file arch/i386/i386/db_interface.c ddb 59file arch/i386/i386/db_memrw.c ddb | kgdb 60file arch/i386/i386/db_trace.c ddb 61file arch/i386/i386/disksubr.c disk 62file arch/i386/i386/gdt.c 63file arch/i386/i386/in_cksum.s inet 64file netinet/in4_cksum.c inet 65file arch/i386/i386/ipkdb_glue.c ipkdb 66file arch/i386/i386/kgdb_machdep.c kgdb 67file arch/i386/i386/machdep.c 68file arch/i386/i386/math_emulate.c math_emulate 69file arch/i386/i386/mem.c 70file arch/i386/i386/microtime.s 71file netns/ns_cksum.c ns 72file arch/i386/i386/pmap.c 73file arch/i386/i386/process_machdep.c 74file arch/i386/i386/sys_machdep.c 75file arch/i386/i386/trap.c 76file arch/i386/i386/vm_machdep.c 77file dev/cons.c 78 79file arch/i386/i386/pmc.c perfctrs 80 81# 82# Machine-independent SCSI drivers 83# 84 85include "dev/scsipi/files.scsipi" 86major {sd = 4} 87major {cd = 6} 88 89# 90# Machine-independent ATA drivers 91# 92 93include "dev/ata/files.ata" 94major {wd = 0} 95 96# Memory Disk for install floppy 97file arch/i386/i386/md_root.c memory_disk_hooks 98major {md = 17} 99 100# RAIDframe 101major {raid = 18} 102 103# Logical storage units 104major {lsu = 19} 105 106# attribute used to bring in BIOS trampoline code for real-mode probing 107# of certain devices/BIOS features 108define bioscall 109file arch/i386/i386/bioscall.s bioscall needs-flag 110 111# BIOS32 routines 112define bios32 113file arch/i386/i386/bios32.c bios32 needs-flag 114 115# 116# System bus types 117# 118 119define mainbus { } 120# XXX BIOS32 only if something that uses it is configured! 121device mainbus: isabus, eisabus, mcabus, pcibus, mainbus, bios32 122attach mainbus at root 123file arch/i386/i386/mainbus.c mainbus 124 125# 126# PCI-only drivers 127# XXX MUST BE INCLUDED BEFORE files.isa, as long as files.isa attaches 128# XXX devices to 'pci'. 129# 130 131include "dev/pci/files.pci" 132file arch/i386/pci/pci_machdep.c pci 133file arch/i386/pci/pcibios.c pcibios 134file arch/i386/pci/pci_intr_fixup.c pcibios & pcibios_intr_fixup 135file arch/i386/pci/piix.c pcibios & pcibios_intr_fixup 136file arch/i386/pci/opti82c558.c pcibios & pcibios_intr_fixup 137file arch/i386/pci/opti82c700.c pcibios & pcibios_intr_fixup 138file arch/i386/pci/sis85c503.c pcibios & pcibios_intr_fixup 139file arch/i386/pci/via82c586.c pcibios & pcibios_intr_fixup 140file arch/i386/pci/pci_bus_fixup.c pcibios & pcibios_bus_fixup 141file arch/i386/pci/pci_addr_fixup.c pcibios & pcibios_addr_fixup 142defopt PCI_CONF_MODE 143file arch/i386/pci/pciide_machdep.c pciide 144file arch/i386/pci/pcic_pci_machdep.c pcic_pci 145 146# PCI-Host bridge chipsets 147device pchb: pcibus 148attach pchb at pci 149file arch/i386/pci/pchb.c pchb 150 151# PCI-EISA bridges 152device pceb: eisabus, isabus 153attach pceb at pci 154file arch/i386/pci/pceb.c pceb 155 156# PCI-ISA bridges 157device pcib: isabus 158attach pcib at pci 159file arch/i386/pci/pcib.c pcib 160 161# Game adapter (joystick) 162device joy 163file arch/i386/isa/joy.c joy needs-flag 164 165# PCI joysticks 166attach joy at pci with pci_joy 167file arch/i386/pci/joy_pci.c pci_joy 168 169# 170# ISA and mixed ISA+EISA or ISA+PCI drivers 171# 172 173include "dev/isa/files.isa" 174major {mcd = 7} 175#major {scd = 15} 176 177# XXX THE FOLLOWING BLOCK SHOULD GO INTO dev/pci/files.pci, BUT CANNOT 178# XXX BECAUSE NOT 'lpt' IS DEFINED IN files.isa, RATHER THAN files. 179# XXX (when the conf/files and files.isa bogons are fixed, this can 180# XXX be fixed as well.) 181 182attach lpt at puc with lpt_puc 183file dev/pci/lpt_puc.c lpt_puc 184 185file arch/i386/isa/isa_machdep.c isa 186 187# PC clock 188file arch/i386/isa/clock.c isa 189file dev/clock_subr.c isa 190 191# Numeric Processing Extension; Math Co-processor 192device npx 193file arch/i386/isa/npx.c npx needs-flag 194 195attach npx at isa with npx_isa 196file arch/i386/isa/npx_isa.c npx_isa 197 198# attribute used to represent the "keyboard controller" 199# XXX should be a real device 200define pckbcport { [irq = -1], [port = -1] } 201 202# PC console support a la "pccons" 203device pc: tty, pckbcport 204attach pc at isa 205device pcconskbd 206attach pcconskbd at pckbc 207file arch/i386/isa/pccons.c pc | pcconskbd needs-flag 208 209# PC Mice; Logitech-style, Microsoft-style, and PS/2-style 210device olms 211attach olms at isa 212file arch/i386/isa/olms.c olms needs-flag 213device lms: wsmousedev 214attach lms at isa 215file arch/i386/isa/lms.c lms 216device omms 217attach omms at isa 218file arch/i386/isa/omms.c omms needs-flag 219device mms: wsmousedev 220attach mms at isa 221file arch/i386/isa/mms.c mms 222device opms 223attach opms at pckbcport with opms_hack 224attach opms at pckbc with opms_pckbc 225file arch/i386/isa/pms.c opms | opms_hack | opms_pckbc needs-flag 226 227include "dev/wscons/files.wscons" 228 229include "dev/pckbc/files.pckbc" 230 231device sysbeep 232attach sysbeep at pcppi 233 234# Floppy disk controller 235device fdc {drive = -1}: isadma 236file dev/isa/fd.c fdc needs-flag 237 238attach fdc at isa with fdc_isa 239file dev/isa/fdc_isa.c fdc_isa 240 241device fd: disk 242attach fd at fdc 243major {fd = 2} 244 245attach joy at isa with joy_isa 246file arch/i386/isa/joy_isa.c joy_isa 247 248# Adaptec AHA-284x VL SCSI controllers 249# device declaration in sys/conf/files 250attach ahc at isa with ahc_isa: ahc_aic77xx, smc93cx6 251file arch/i386/isa/ahc_isa.c ahc_isa 252 253# 254# EISA-only drivers 255# 256 257include "dev/eisa/files.eisa" 258file arch/i386/eisa/eisa_machdep.c eisa 259 260# 261# MCA-only drivers 262# 263 264device mca {[slot = -1]} : bioscall 265include "dev/mca/files.mca" 266file arch/i386/mca/mca_machdep.c mca 267 268# ISA Plug 'n Play devices 269file arch/i386/isa/isapnp_machdep.c isapnp 270 271attach joy at isapnp with joy_isapnp 272file arch/i386/isa/joy_isapnp.c joy_isapnp 273 274# 275# VME support 276# 277include "dev/vme/files.vme" 278 279# 280# Other mainbus-attached devices 281# 282 283# Advanced Power Management support (APM) 284device apm: bioscall 285attach apm at mainbus 286file arch/i386/i386/apm.c apm needs-count 287file arch/i386/i386/apmcall.s apm 288 289# 290# Compatibility modules 291# 292 293# VM86 mode 294file arch/i386/i386/vm86.c vm86 295 296# Binary compatibility with previous NetBSD releases (COMPAT_XX) 297file arch/i386/i386/compat_13_machdep.c compat_13 | compat_aout 298 299# SVR4 binary compatibility (COMPAT_SVR4) 300include "compat/svr4/files.svr4" 301file arch/i386/i386/svr4_machdep.c compat_svr4 302 303# iBCS-2 binary compatibility (COMPAT_IBCS2) 304include "compat/ibcs2/files.ibcs2" 305file arch/i386/i386/ibcs2_machdep.c compat_ibcs2 306 307# Linux binary compatibility (COMPAT_LINUX) 308include "compat/linux/files.linux" 309include "compat/linux/arch/i386/files.linux_i386" 310 311# FreeBSD binary compatibility (COMPAT_FREEBSD) 312include "compat/freebsd/files.freebsd" 313file arch/i386/i386/freebsd_machdep.c compat_freebsd 314 315# a.out binary compatibility (COMPAT_AOUT) 316include "compat/aout/files.aout" 317 318# Win32 binary compatibility (COMPAT_PECOFF) 319include "compat/pecoff/files.pecoff" 320 321# OSS audio driver compatibility 322include "compat/ossaudio/files.ossaudio" 323 324# network devices MII bus 325include "dev/mii/files.mii" 326 327# 328# CARDBUS 329# 330include "dev/cardbus/files.cardbus" 331file arch/i386/i386/rbus_machdep.c cardbus 332 333# XXXX pcic here because it needs to be late. The catch: pcic needs 334# to be late, so devices which attach to it are attached late. But it 335# needs to be before its isa and pci attachments. This answer is 336# non-optimal, but I don't have a better answer right now. 337 338# PCIC pcmcia controller 339# XXX this needs to be done very late, so it's done here. This feels 340# like a kludge, but it might be for the best. 341 342defopt PCIC_ISA_ALLOC_IOBASE 343defopt PCIC_ISA_ALLOC_IOSIZE 344defopt PCIC_ISA_INTR_ALLOC_MASK 345 346device pcic: pcmciabus 347file dev/ic/i82365.c pcic 348 349# PCIC pcmcia controller on ISA bus. 350attach pcic at isa with pcic_isa 351file dev/isa/i82365_isa.c pcic_isa 352 353# PCIC pcmcia controller on PCI bus. 354attach pcic at pci with pcic_pci 355file dev/pci/i82365_pci.c pcic_pci 356 357# PCIC pcmcia controller on PnP board 358attach pcic at isapnp with pcic_isapnp 359file dev/isapnp/i82365_isapnp.c pcic_isapnp 360 361# Code common to ISA and ISAPnP attachments 362file dev/isa/i82365_isasubr.c pcic_isa | pcic_isapnp | pcic_pci 363 364# XXXX tcic here because it needs to be late. The catch: tcic needs 365# to be late, so devices which attach to it are attached late. But it 366# needs to be before its isa and pci attachments. This answer is 367# non-optimal, but I don't have a better answer right now. 368 369# TCIC pcmcia controller 370# XXX this needs to be done very late, so it's done here. This feels 371# like a kludge, but it might be for the best. 372 373defopt TCIC_ISA_ALLOC_IOBASE 374defopt TCIC_ISA_ALLOC_IOSIZE 375defopt TCIC_ISA_INTR_ALLOC_MASK 376 377device tcic: pcmciabus 378file dev/ic/tcic2.c tcic 379 380# TCIC pcmcia controller 381attach tcic at isa with tcic_isa 382file dev/isa/tcic2_isa.c tcic_isa 383 384# this wants to be probed as late as possible. 385# 386# Machine-independent PCMCIA drivers 387# 388include "dev/pcmcia/files.pcmcia" 389 390 391include "dev/usb/files.usb" 392 393include "arch/i386/pnpbios/files.pnpbios" 394