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