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