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