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