files.i386 revision 1.179
1# $NetBSD: files.i386,v 1.179 2000/12/18 20:38:27 jdolecek 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/syscall.c 76file arch/i386/i386/trap.c 77file arch/i386/i386/vm_machdep.c 78file dev/cons.c 79 80file arch/i386/i386/pmc.c perfctrs 81 82# 83# Machine-independent SCSI drivers 84# 85 86include "dev/scsipi/files.scsipi" 87major {sd = 4} 88major {cd = 6} 89 90# 91# Machine-independent ATA drivers 92# 93 94include "dev/ata/files.ata" 95major {wd = 0} 96 97# Memory Disk for install floppy 98file arch/i386/i386/md_root.c memory_disk_hooks 99major {md = 17} 100 101# RAIDframe 102major {raid = 18} 103 104# Logical disk 105major {ld = 19} 106 107# 108# Machine-independent I2O drivers 109# 110 111include "dev/i2o/files.i2o" 112 113# attribute used to bring in BIOS trampoline code for real-mode probing 114# of certain devices/BIOS features 115define bioscall 116file arch/i386/i386/bioscall.s bioscall needs-flag 117 118# BIOS32 routines 119define bios32 120file arch/i386/i386/bios32.c bios32 needs-flag 121 122# 123# System bus types 124# 125 126define mainbus { } 127# XXX BIOS32 only if something that uses it is configured! 128device mainbus: isabus, eisabus, mcabus, pcibus, mainbus, bios32 129attach mainbus at root 130file arch/i386/i386/mainbus.c mainbus 131 132# 133# PCI-only drivers 134# XXX MUST BE INCLUDED BEFORE files.isa, as long as files.isa attaches 135# XXX devices to 'pci'. 136# 137 138include "dev/pci/files.pci" 139file arch/i386/pci/pci_machdep.c pci 140file arch/i386/pci/pcibios.c pcibios 141file arch/i386/pci/pci_intr_fixup.c pcibios & pcibios_intr_fixup 142file arch/i386/pci/piix.c pcibios & pcibios_intr_fixup 143file arch/i386/pci/opti82c558.c pcibios & pcibios_intr_fixup 144file arch/i386/pci/opti82c700.c pcibios & pcibios_intr_fixup 145file arch/i386/pci/sis85c503.c pcibios & pcibios_intr_fixup 146file arch/i386/pci/via82c586.c pcibios & pcibios_intr_fixup 147file arch/i386/pci/pci_bus_fixup.c pcibios & pcibios_bus_fixup 148file arch/i386/pci/pci_addr_fixup.c pcibios & pcibios_addr_fixup 149defopt PCI_CONF_MODE 150file arch/i386/pci/pciide_machdep.c pciide 151file arch/i386/pci/pcic_pci_machdep.c pcic_pci 152 153# PCI-Host bridge chipsets 154device pchb: pcibus 155attach pchb at pci 156file arch/i386/pci/pchb.c pchb 157file arch/i386/pci/pchb_rnd.c pchb & rnd 158 159# PCI-EISA bridges 160device pceb: eisabus, isabus 161attach pceb at pci 162file arch/i386/pci/pceb.c pceb 163 164# PCI-ISA bridges 165device pcib: isabus 166attach pcib at pci 167file arch/i386/pci/pcib.c pcib 168 169# Game adapter (joystick) 170device joy 171file arch/i386/isa/joy.c joy needs-flag 172 173# PCI joysticks 174attach joy at pci with pci_joy 175file arch/i386/pci/joy_pci.c pci_joy 176 177# 178# ISA and mixed ISA+EISA or ISA+PCI drivers 179# 180 181include "dev/isa/files.isa" 182major {mcd = 7} 183#major {scd = 15} 184 185# XXX THE FOLLOWING BLOCK SHOULD GO INTO dev/pci/files.pci, BUT CANNOT 186# XXX BECAUSE NOT 'lpt' IS DEFINED IN files.isa, RATHER THAN files. 187# XXX (when the conf/files and files.isa bogons are fixed, this can 188# XXX be fixed as well.) 189 190attach lpt at puc with lpt_puc 191file dev/pci/lpt_puc.c lpt_puc 192 193file arch/i386/isa/isa_machdep.c isa 194 195# PC clock 196file arch/i386/isa/clock.c isa 197file dev/clock_subr.c isa 198 199# Numeric Processing Extension; Math Co-processor 200device npx 201file arch/i386/isa/npx.c npx needs-flag 202 203attach npx at isa with npx_isa 204file arch/i386/isa/npx_isa.c npx_isa 205 206# attribute used to represent the "keyboard controller" 207# XXX should be a real device 208define pckbcport { [irq = -1], [port = -1] } 209 210# PC console support a la "pccons" 211device pc: tty, pckbcport 212attach pc at isa 213device pcconskbd 214attach pcconskbd at pckbc 215file arch/i386/isa/pccons.c pc | pcconskbd needs-flag 216 217# PC Mice; Logitech-style, Microsoft-style, and PS/2-style 218device olms 219attach olms at isa 220file arch/i386/isa/olms.c olms needs-flag 221device lms: wsmousedev 222attach lms at isa 223file arch/i386/isa/lms.c lms 224device omms 225attach omms at isa 226file arch/i386/isa/omms.c omms needs-flag 227device mms: wsmousedev 228attach mms at isa 229file arch/i386/isa/mms.c mms 230device opms 231attach opms at pckbcport with opms_hack 232attach opms at pckbc with opms_pckbc 233file arch/i386/isa/pms.c opms | opms_hack | opms_pckbc needs-flag 234 235include "dev/wscons/files.wscons" 236 237include "dev/pckbc/files.pckbc" 238 239device sysbeep 240attach sysbeep at pcppi 241 242# Floppy disk controller 243device fdc {drive = -1}: isadma 244file dev/isa/fd.c fdc needs-flag 245 246attach fdc at isa with fdc_isa 247file dev/isa/fdc_isa.c fdc_isa 248 249device fd: disk 250attach fd at fdc 251major {fd = 2} 252 253attach joy at isa with joy_isa 254file arch/i386/isa/joy_isa.c joy_isa 255 256# Adaptec AHA-284x VL SCSI controllers 257# device declaration in sys/conf/files 258attach ahc at isa with ahc_isa: ahc_aic77xx, smc93cx6 259file arch/i386/isa/ahc_isa.c ahc_isa 260 261# 262# EISA-only drivers 263# 264 265include "dev/eisa/files.eisa" 266file arch/i386/eisa/eisa_machdep.c eisa 267 268# 269# MCA-only drivers 270# 271 272device mca {[slot = -1]} : bioscall 273include "dev/mca/files.mca" 274file arch/i386/mca/mca_machdep.c mca 275 276# ISA Plug 'n Play devices 277file arch/i386/isa/isapnp_machdep.c isapnp 278 279attach joy at isapnp with joy_isapnp 280file arch/i386/isa/joy_isapnp.c joy_isapnp 281 282# 283# VME support 284# 285include "dev/vme/files.vme" 286 287# 288# Other mainbus-attached devices 289# 290 291# Advanced Power Management support (APM) 292device apm: bioscall 293attach apm at mainbus 294file arch/i386/i386/apm.c apm needs-count 295file arch/i386/i386/apmcall.s apm 296 297# 298# Compatibility modules 299# 300 301# VM86 mode 302file arch/i386/i386/vm86.c vm86 303 304# Binary compatibility with previous NetBSD releases (COMPAT_XX) 305file arch/i386/i386/compat_13_machdep.c compat_13 | compat_aout 306 307# SVR4 binary compatibility (COMPAT_SVR4) 308include "compat/svr4/files.svr4" 309file arch/i386/i386/svr4_machdep.c compat_svr4 310file arch/i386/i386/svr4_sigcode.s compat_svr4 311file arch/i386/i386/svr4_syscall.c compat_svr4 312 313# iBCS-2 binary compatibility (COMPAT_IBCS2) 314include "compat/ibcs2/files.ibcs2" 315file arch/i386/i386/ibcs2_machdep.c compat_ibcs2 316file arch/i386/i386/ibcs2_sigcode.s compat_ibcs2 317file arch/i386/i386/ibcs2_syscall.c compat_ibcs2 318 319# Linux binary compatibility (COMPAT_LINUX) 320include "compat/linux/files.linux" 321include "compat/linux/arch/i386/files.linux_i386" 322file arch/i386/i386/linux_sigcode.s compat_linux 323file arch/i386/i386/linux_syscall.c compat_linux 324 325# FreeBSD binary compatibility (COMPAT_FREEBSD) 326include "compat/freebsd/files.freebsd" 327file arch/i386/i386/freebsd_machdep.c compat_freebsd 328file arch/i386/i386/freebsd_sigcode.s compat_freebsd 329file arch/i386/i386/freebsd_syscall.c compat_freebsd 330 331# a.out binary compatibility (COMPAT_AOUT) 332include "compat/aout/files.aout" 333 334# Win32 binary compatibility (COMPAT_PECOFF) 335include "compat/pecoff/files.pecoff" 336 337# OSS audio driver compatibility 338include "compat/ossaudio/files.ossaudio" 339 340# network devices MII bus 341include "dev/mii/files.mii" 342 343# 344# CARDBUS 345# 346include "dev/cardbus/files.cardbus" 347file arch/i386/i386/rbus_machdep.c cardbus 348 349# XXXX pcic here because it needs to be late. The catch: pcic needs 350# to be late, so devices which attach to it are attached late. But it 351# needs to be before its isa and pci attachments. This answer is 352# non-optimal, but I don't have a better answer right now. 353 354# PCIC pcmcia controller 355# XXX this needs to be done very late, so it's done here. This feels 356# like a kludge, but it might be for the best. 357 358defopt PCIC_ISA_ALLOC_IOBASE 359defopt PCIC_ISA_ALLOC_IOSIZE 360defopt PCIC_ISA_INTR_ALLOC_MASK 361 362device pcic: pcmciabus 363file dev/ic/i82365.c pcic 364 365# PCIC pcmcia controller on ISA bus. 366attach pcic at isa with pcic_isa 367file dev/isa/i82365_isa.c pcic_isa 368 369# PCIC pcmcia controller on PCI bus. 370attach pcic at pci with pcic_pci 371file dev/pci/i82365_pci.c pcic_pci 372 373# PCIC pcmcia controller on PnP board 374attach pcic at isapnp with pcic_isapnp 375file dev/isapnp/i82365_isapnp.c pcic_isapnp 376 377# Code common to ISA and ISAPnP attachments 378file dev/isa/i82365_isasubr.c pcic_isa | pcic_isapnp | pcic_pci 379 380# XXXX tcic here because it needs to be late. The catch: tcic needs 381# to be late, so devices which attach to it are attached late. But it 382# needs to be before its isa and pci attachments. This answer is 383# non-optimal, but I don't have a better answer right now. 384 385# TCIC pcmcia controller 386# XXX this needs to be done very late, so it's done here. This feels 387# like a kludge, but it might be for the best. 388 389defopt TCIC_ISA_ALLOC_IOBASE 390defopt TCIC_ISA_ALLOC_IOSIZE 391defopt TCIC_ISA_INTR_ALLOC_MASK 392 393device tcic: pcmciabus 394file dev/ic/tcic2.c tcic 395 396# TCIC pcmcia controller 397attach tcic at isa with tcic_isa 398file dev/isa/tcic2_isa.c tcic_isa 399 400# this wants to be probed as late as possible. 401# 402# Machine-independent PCMCIA drivers 403# 404include "dev/pcmcia/files.pcmcia" 405 406 407include "dev/usb/files.usb" 408 409include "dev/ieee1394/files.ieee1394" 410 411include "arch/i386/pnpbios/files.pnpbios" 412