files.i386 revision 1.108
1# $NetBSD: files.i386,v 1.108 1998/02/16 22:12:46 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 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 XSERVER 28 29file arch/i386/i386/autoconf.c 30file arch/i386/i386/conf.c 31file arch/i386/i386/db_disasm.c ddb 32file arch/i386/i386/db_interface.c ddb 33file arch/i386/i386/db_memrw.c ddb | kgdb 34file arch/i386/i386/db_trace.c ddb 35file arch/i386/i386/disksubr.c disk 36file arch/i386/i386/gdt.c 37file arch/i386/i386/in_cksum.s inet 38file arch/i386/i386/kgdb_machdep.c kgdb 39file arch/i386/i386/machdep.c 40file arch/i386/i386/math_emulate.c math_emulate 41file arch/i386/i386/mem.c 42file arch/i386/i386/microtime.s 43file arch/i386/i386/ns_cksum.c ns 44file arch/i386/i386/pmap.c !pmap_new 45file arch/i386/i386/pmap.new.c pmap_new 46file arch/i386/i386/process_machdep.c 47file arch/i386/i386/random.s 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 98 99# PCI-Host bridge chipsets 100device pchb: pcibus 101attach pchb at pci 102file arch/i386/pci/pchb.c pchb 103 104# PCI-EISA bridges 105device pceb: eisabus, isabus 106attach pceb at pci 107file arch/i386/pci/pceb.c pceb 108 109# PCI-ISA bridges 110device pcib: isabus 111attach pcib at pci 112file arch/i386/pci/pcib.c pcib 113 114# 115# ISA and mixed ISA+EISA or ISA+PCI drivers 116# 117 118include "dev/isa/files.isa" 119major {mcd = 7} 120#major {scd = 15} 121major {wt = 3} 122 123file arch/i386/isa/isa_machdep.c isa 124 125# PC clock 126file arch/i386/isa/clock.c isa 127 128# Numeric Processing Extension; Math Co-processor 129device npx 130attach npx at isa 131file arch/i386/isa/npx.c npx needs-flag 132 133# attribute used to represent the "keyboard controller" 134# XXX should be a real device 135define pckbd { [irq = -1], [port = -1] } 136 137# PC console support a la "pccons" 138device pc: tty, pckbd 139attach pc at isa 140file arch/i386/isa/pccons.c pc needs-flag 141 142# PC console support a la "pcvt" 143device vt: tty, pckbd 144attach vt at isa 145file arch/i386/isa/pcvt/pcvt_drv.c vt needs-flag 146file arch/i386/isa/pcvt/pcvt_ext.c vt needs-flag 147file arch/i386/isa/pcvt/pcvt_kbd.c vt needs-flag 148file arch/i386/isa/pcvt/pcvt_out.c vt needs-flag 149file arch/i386/isa/pcvt/pcvt_sup.c vt needs-flag 150file arch/i386/isa/pcvt/pcvt_vtf.c vt needs-flag 151 152# PC Mice; Logitech-style, Microsoft-style, and PS/2-style 153device lms 154attach lms at isa 155file arch/i386/isa/lms.c lms needs-flag 156device mms 157attach mms at isa 158file arch/i386/isa/mms.c mms needs-flag 159device pms 160attach pms at pckbd 161file arch/i386/isa/pms.c pms needs-flag 162 163# Floppy disk controller 164device fdc {drive = -1} 165attach fdc at isa 166device fd: disk, isadma 167attach fd at fdc 168file arch/i386/isa/fd.c fdc needs-flag 169major {fd = 2} 170 171# PC speaker 172device spkr 173attach spkr at pckbd 174file arch/i386/isa/spkr.c spkr needs-flag 175 176# Game adapter (joystick) 177device joy 178file arch/i386/isa/joy.c joy needs-flag 179 180attach joy at isa with joy_isa 181file arch/i386/isa/joy_isa.c joy_isa 182 183# Adaptec AHA-284x VL SCSI controllers 184# device declaration in sys/conf/files 185attach ahc at isa with ahc_isa 186file arch/i386/isa/ahc_isa.c ahc_isa 187 188# 189# EISA-only drivers 190# 191 192include "dev/eisa/files.eisa" 193file arch/i386/eisa/eisa_machdep.c eisa 194 195# ISA Plug 'n Play devices 196# IT IS IMPORTANT THAT THIS IS INCLUDED AFTER ALL ISA DEVICES! 197# DO NOT MOVE IT! (Thanks, The Mgmt.) 198include "dev/isapnp/files.isapnp" 199file arch/i386/isa/isapnp_machdep.c isapnp 200 201attach joy at isapnp with joy_isapnp 202file arch/i386/isa/joy_isapnp.c joy_isapnp 203 204# 205# Other mainbus-attached devices 206# 207 208# Advanced Power Management support (APM) 209device apm: bioscall 210attach apm at mainbus 211file arch/i386/i386/apm.c apm needs-count 212file arch/i386/i386/apmcall.s apm 213 214# 215# Compatibility modules 216# 217 218# VM86 mode 219file arch/i386/i386/vm86.c vm86 220 221# SVR4 binary compatibility (COMPAT_SVR4) 222include "compat/svr4/files.svr4" 223file arch/i386/i386/svr4_machdep.c compat_svr4 224 225# iBCS-2 binary compatibility (COMPAT_IBCS2) 226include "compat/ibcs2/files.ibcs2" 227file arch/i386/i386/ibcs2_machdep.c compat_ibcs2 228 229# Linux binary compatibility (COMPAT_LINUX) 230include "compat/linux/files.linux" 231file arch/i386/i386/linux_machdep.c compat_linux 232 233# FreeBSD binary compatibility (COMPAT_FREEBSD) 234include "compat/freebsd/files.freebsd" 235file arch/i386/i386/freebsd_machdep.c compat_freebsd 236 237# OSS audio driver compatibility 238include "compat/ossaudio/files.ossaudio" 239 240# network devices MII bus 241include "dev/mii/files.mii" 242 243# XXXX pcic here because it needs to be late. The catch: pcic needs 244# to be late, so devices which attach to it are attached late. But it 245# needs to be before its isa and pci attachments. This answer is 246# non-optimal, but I don't have a better answer right now. 247 248# PCIC pcmcia contoller 249# XXX this needs to be done very late, so it's done here. This feels 250# like a kludge, but it might be for the best. 251 252defopt PCIC_ISA_ALLOC_IOBASE 253defopt PCIC_ISA_ALLOC_IOSIZE 254defopt PCIC_ISA_INTR_ALLOC_MASK 255 256device pcic {[controller = -1], [socket = -1]} 257file dev/ic/i82365.c pcic 258 259# PCIC pcmcia contoller 260attach pcic at isa with pcic_isa 261file dev/isa/i82365_isa.c pcic_isa 262 263# PCIC pcmcia contoller 264attach pcic at pci with pcic_pci 265file dev/pci/i82365_pci.c pcic_pci 266 267 268# this wants to be probed as late as possible. 269# 270# Machine-independent PCMCIA drivers 271# 272include "dev/pcmcia/files.pcmcia" 273 274 275