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