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