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