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