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