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