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