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