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