files.i386 revision 1.100
1# $NetBSD: files.i386,v 1.100 1998/01/15 19:47:36 thorpej 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 14file arch/i386/i386/autoconf.c 15file arch/i386/i386/conf.c 16file arch/i386/i386/db_disasm.c ddb 17file arch/i386/i386/db_interface.c ddb 18file arch/i386/i386/db_memrw.c ddb | kgdb 19file arch/i386/i386/db_trace.c ddb 20file arch/i386/i386/disksubr.c disk 21file arch/i386/i386/gdt.c 22file arch/i386/i386/in_cksum.s inet 23file arch/i386/i386/kgdb_machdep.c kgdb 24file arch/i386/i386/machdep.c 25file arch/i386/i386/math_emulate.c math_emulate 26file arch/i386/i386/mem.c 27file arch/i386/i386/microtime.s 28file arch/i386/i386/ns_cksum.c ns 29file arch/i386/i386/pmap.c 30file arch/i386/i386/process_machdep.c 31file arch/i386/i386/random.s 32file arch/i386/i386/sys_machdep.c 33file arch/i386/i386/trap.c 34file arch/i386/i386/vm_machdep.c 35file dev/cons.c 36major {vnd = 14} 37 38# 39# Machine-independent SCSI drivers 40# 41 42include "dev/scsipi/files.scsipi" 43major {sd = 4} 44major {st = 5} 45major {cd = 6} 46 47# 48# Machine-independent ATA drivers 49# 50 51include "dev/ata/files.ata" 52major {wd = 0} 53 54# Memory Disk for install floppy 55file arch/i386/i386/md_root.c memory_disk_hooks 56major {md = 17} 57 58# 59# System bus types 60# 61 62define mainbus { } 63device mainbus class dull: isabus, eisabus, pcibus, mainbus 64attach mainbus at root 65file arch/i386/i386/mainbus.c mainbus 66 67# attribute used to bring in BIOS trampoline code for real-mode probing 68# of certain devices/BIOS features 69define bioscall 70file arch/i386/i386/bioscall.s bioscall needs-flag 71 72#device mca at root {...} 73 74# 75# PCI-only drivers 76# XXX MUST BE INCLUDED BEFORE files.isa, as long as files.isa attaches 77# XXX devices to 'pci'. 78# 79 80include "dev/pci/files.pci" 81file arch/i386/pci/pci_machdep.c pci 82 83# PCI-Host bridge chipsets 84device pchb class dull: pcibus 85attach pchb at pci 86file arch/i386/pci/pchb.c pchb 87 88# PCI-ISA bridges 89device pcib class dull: isabus 90attach pcib at pci 91file arch/i386/pci/pcib.c pcib 92 93# 94# ISA and mixed ISA+EISA or ISA+PCI drivers 95# 96 97include "dev/isa/files.isa" 98major {mcd = 7} 99#major {scd = 15} 100major {wt = 3} 101 102file arch/i386/isa/isa_machdep.c isa 103 104# PC clock 105file arch/i386/isa/clock.c isa 106 107# Numeric Processing Extension; Math Co-processor 108device npx class dull 109attach npx at isa 110file arch/i386/isa/npx.c npx needs-flag 111 112# attribute used to represent the "keyboard controller" 113# XXX should be a real device 114define pckbd { [irq = -1], [port = -1] } 115 116# PC console support a la "pccons" 117device pc class tty: tty, pckbd 118attach pc at isa 119file arch/i386/isa/pccons.c pc needs-flag 120 121# PC console support a la "pcvt" 122device vt class tty: tty, pckbd 123attach vt at isa 124file arch/i386/isa/pcvt/pcvt_drv.c vt needs-flag 125file arch/i386/isa/pcvt/pcvt_ext.c vt needs-flag 126file arch/i386/isa/pcvt/pcvt_kbd.c vt needs-flag 127file arch/i386/isa/pcvt/pcvt_out.c vt needs-flag 128file arch/i386/isa/pcvt/pcvt_sup.c vt needs-flag 129file arch/i386/isa/pcvt/pcvt_vtf.c vt needs-flag 130 131# PC Mice; Logitech-style, Microsoft-style, and PS/2-style 132device lms class dull 133attach lms at isa 134file arch/i386/isa/lms.c lms needs-flag 135device mms class dull 136attach mms at isa 137file arch/i386/isa/mms.c mms needs-flag 138device pms class dull 139attach pms at pckbd 140file arch/i386/isa/pms.c pms needs-flag 141 142# Floppy disk controller 143device fdc class dull {drive = -1} 144attach fdc at isa 145device fd class disk: disk, isadma 146attach fd at fdc 147file arch/i386/isa/fd.c fdc needs-flag 148major {fd = 2} 149 150# PC speaker 151device spkr class dull: tty 152attach spkr at pckbd 153file arch/i386/isa/spkr.c spkr needs-flag 154 155# Game adapter (joystick) 156device joy class dull 157file arch/i386/isa/joy.c joy needs-flag 158 159attach joy at isa with joy_isa 160file arch/i386/isa/joy_isa.c joy_isa 161 162# Adaptec AHA-284x VL SCSI controllers 163# device declaration in sys/conf/files 164attach ahc at isa with ahc_isa 165file arch/i386/isa/ahc_isa.c ahc_isa 166 167# 168# EISA-only drivers 169# 170 171include "dev/eisa/files.eisa" 172file arch/i386/eisa/eisa_machdep.c eisa 173 174# ISA Plug 'n Play devices 175# IT IS IMPORTANT THAT THIS IS INCLUDED AFTER ALL ISA DEVICES! 176# DO NOT MOVE IT! (Thanks, The Mgmt.) 177include "dev/isapnp/files.isapnp" 178file arch/i386/isa/isapnp_machdep.c isapnp 179 180attach joy at isapnp with joy_isapnp 181file arch/i386/isa/joy_isapnp.c joy_isapnp 182 183# 184# Other mainbus-attached devices 185# 186 187# Advanced Power Management support (APM) 188device apm class dull: bioscall 189attach apm at mainbus 190file arch/i386/i386/apm.c apm needs-count 191file arch/i386/i386/apmcall.s apm 192 193# 194# Compatibility modules 195# 196 197# VM86 mode 198file arch/i386/i386/vm86.c vm86 199 200# SVR4 binary compatibility (COMPAT_SVR4) 201include "compat/svr4/files.svr4" 202file arch/i386/i386/svr4_machdep.c compat_svr4 203 204# iBCS-2 binary compatibility (COMPAT_IBCS2) 205include "compat/ibcs2/files.ibcs2" 206file arch/i386/i386/ibcs2_machdep.c compat_ibcs2 207 208# Linux binary compatibility (COMPAT_LINUX) 209include "compat/linux/files.linux" 210file arch/i386/i386/linux_machdep.c compat_linux 211 212# FreeBSD binary compatibility (COMPAT_FREEBSD) 213include "compat/freebsd/files.freebsd" 214file arch/i386/i386/freebsd_machdep.c compat_freebsd 215 216# OSS audio driver compatibility 217include "compat/ossaudio/files.ossaudio" 218 219# network devices MII bus 220include "dev/mii/files.mii" 221 222# XXXX pcic here because it needs to be late. The catch: pcic needs 223# to be late, so devices which attach to it are attached late. But it 224# needs to be before its isa and pci attachments. This answer is 225# non-optimal, but I don't have a better answer right now. 226 227# PCIC pcmcia contoller 228# XXX this needs to be done very late, so it's done here. This feels 229# like a kludge, but it might be for the best. 230 231defopt PCIC_ISA_ALLOC_IOBASE 232defopt PCIC_ISA_ALLOC_IOSIZE 233defopt PCIC_ISA_INTR_ALLOC_MASK 234 235device pcic class dull {[controller = -1], [socket = -1]} 236file dev/ic/i82365.c pcic 237 238# PCIC pcmcia contoller 239attach pcic at isa with pcic_isa 240file dev/isa/i82365_isa.c pcic_isa 241 242# PCIC pcmcia contoller 243attach pcic at pci with pcic_pci 244file dev/pci/i82365_pci.c pcic_pci 245 246 247# this wants to be probed as late as possible. 248# 249# Machine-independent PCMCIA drivers 250# 251include "dev/pcmcia/files.pcmcia" 252 253 254