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