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