files.i386 revision 1.182
1#	$NetBSD: files.i386,v 1.182 2001/02/24 01:39:11 lukem 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	netinet/in4_cksum.c		inet
69file	arch/i386/i386/ipkdb_glue.c	ipkdb
70file	arch/i386/i386/kgdb_machdep.c	kgdb
71file	arch/i386/i386/machdep.c
72file	arch/i386/i386/math_emulate.c	math_emulate
73file	arch/i386/i386/mem.c
74file	arch/i386/i386/microtime.s
75file	netns/ns_cksum.c		ns
76file	arch/i386/i386/pmap.c
77file	arch/i386/i386/process_machdep.c
78file	arch/i386/i386/procfs_machdep.c	procfs
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# Game adapter (joystick)
175device	joy
176file	arch/i386/isa/joy.c		joy needs-flag
177
178# PCI joysticks
179attach	joy at pci with pci_joy
180file	arch/i386/pci/joy_pci.c		pci_joy
181
182#
183# ISA and mixed ISA+EISA or ISA+PCI drivers
184#
185
186include	"dev/isa/files.isa"
187major	{mcd = 7}
188#major	{scd = 15}
189
190# XXX THE FOLLOWING BLOCK SHOULD GO INTO dev/pci/files.pci, BUT CANNOT
191# XXX BECAUSE NOT 'lpt' IS DEFINED IN files.isa, RATHER THAN files.
192# XXX (when the conf/files and files.isa bogons are fixed, this can
193# XXX be fixed as well.)
194
195attach	lpt at puc with lpt_puc
196file	dev/pci/lpt_puc.c	lpt_puc
197
198file	arch/i386/isa/isa_machdep.c	isa
199
200# PC clock
201file	arch/i386/isa/clock.c		isa
202file	dev/clock_subr.c		isa
203
204# Numeric Processing Extension; Math Co-processor
205device	npx
206file	arch/i386/isa/npx.c		npx needs-flag
207
208attach	npx at isa with npx_isa
209file	arch/i386/isa/npx_isa.c		npx_isa
210
211# attribute used to represent the "keyboard controller"
212# XXX should be a real device
213define	pckbcport { [irq = -1], [port = -1] }
214
215# PC console support a la "pccons"
216device	pc: tty, pckbcport
217attach	pc at isa
218device	pcconskbd
219attach	pcconskbd at pckbc
220file	arch/i386/isa/pccons.c		pc | pcconskbd needs-flag
221
222# PC Mice; Logitech-style, Microsoft-style, and PS/2-style
223device	olms
224attach	olms at isa
225file	arch/i386/isa/olms.c		olms needs-flag
226device	lms: wsmousedev
227attach	lms at isa
228file	arch/i386/isa/lms.c		lms
229device	omms
230attach	omms at isa
231file	arch/i386/isa/omms.c		omms needs-flag
232device	mms: wsmousedev
233attach	mms at isa
234file	arch/i386/isa/mms.c		mms
235device	opms
236attach	opms at pckbcport with opms_hack
237attach	opms at pckbc with opms_pckbc
238file	arch/i386/isa/pms.c		opms | opms_hack | opms_pckbc needs-flag
239
240include	"dev/wscons/files.wscons"
241
242include	"dev/pckbc/files.pckbc"
243
244device	sysbeep
245attach	sysbeep at pcppi
246
247# Floppy disk controller
248device	fdc {drive = -1}: isadma
249file	dev/isa/fd.c			fdc needs-flag
250
251attach	fdc at isa with fdc_isa
252file	dev/isa/fdc_isa.c		fdc_isa
253
254device	fd: disk
255attach	fd at fdc
256major	{fd = 2}
257
258attach	joy at isa with joy_isa
259file	arch/i386/isa/joy_isa.c		joy_isa
260
261# Adaptec AHA-284x VL SCSI controllers
262# device declaration in sys/conf/files
263attach	ahc at isa with ahc_isa: ahc_aic77xx, smc93cx6
264file	arch/i386/isa/ahc_isa.c		ahc_isa
265
266#
267# EISA-only drivers
268#
269
270include	"dev/eisa/files.eisa"
271file	arch/i386/eisa/eisa_machdep.c	eisa
272
273#
274# MCA-only drivers
275#
276
277device	mca {[slot = -1]} : bioscall
278include	"dev/mca/files.mca"
279file	arch/i386/mca/mca_machdep.c	mca
280
281# ISA Plug 'n Play devices
282file	arch/i386/isa/isapnp_machdep.c	isapnp
283
284attach	joy at isapnp with joy_isapnp
285file	arch/i386/isa/joy_isapnp.c	joy_isapnp
286
287#
288# VME support
289#
290include	"dev/vme/files.vme"
291
292#
293# Other mainbus-attached devices
294#
295
296# Advanced Power Management support (APM)
297device	apm: bioscall
298attach	apm at mainbus
299file	arch/i386/i386/apm.c		apm needs-count
300file	arch/i386/i386/apmcall.s	apm
301
302#
303# Compatibility modules
304#
305
306# VM86 mode
307file	arch/i386/i386/vm86.c			vm86
308
309# Binary compatibility with previous NetBSD releases (COMPAT_XX)
310file	arch/i386/i386/compat_13_machdep.c	compat_13 | compat_aout
311
312# SVR4 binary compatibility (COMPAT_SVR4)
313include	"compat/svr4/files.svr4"
314file	arch/i386/i386/svr4_machdep.c		compat_svr4
315file	arch/i386/i386/svr4_sigcode.s		compat_svr4
316file	arch/i386/i386/svr4_syscall.c		compat_svr4
317
318# iBCS-2 binary compatibility (COMPAT_IBCS2)
319include	"compat/ibcs2/files.ibcs2"
320file	arch/i386/i386/ibcs2_machdep.c		compat_ibcs2
321file	arch/i386/i386/ibcs2_sigcode.s		compat_ibcs2
322file	arch/i386/i386/ibcs2_syscall.c		compat_ibcs2
323
324# Linux binary compatibility (COMPAT_LINUX)
325include	"compat/linux/files.linux"
326include	"compat/linux/arch/i386/files.linux_i386"
327file	arch/i386/i386/linux_sigcode.s		compat_linux
328file	arch/i386/i386/linux_syscall.c		compat_linux
329
330# FreeBSD binary compatibility (COMPAT_FREEBSD)
331include	"compat/freebsd/files.freebsd"
332file	arch/i386/i386/freebsd_machdep.c	compat_freebsd
333file	arch/i386/i386/freebsd_sigcode.s	compat_freebsd
334file	arch/i386/i386/freebsd_syscall.c	compat_freebsd
335
336# a.out binary compatibility (COMPAT_AOUT)
337include	"compat/aout/files.aout"
338
339# Win32 binary compatibility (COMPAT_PECOFF)
340include	"compat/pecoff/files.pecoff"
341
342# OSS audio driver compatibility
343include	"compat/ossaudio/files.ossaudio"
344
345# network devices MII bus
346include	"dev/mii/files.mii"
347
348#
349# CARDBUS
350#
351include	"dev/cardbus/files.cardbus"
352file	arch/i386/i386/rbus_machdep.c	cardbus
353
354# XXXX pcic here because it needs to be late.  The catch: pcic needs
355# to be late, so devices which attach to it are attached late.  But it
356# needs to be before its isa and pci attachments.  This answer is
357# non-optimal, but I don't have a better answer right now.
358
359# PCIC pcmcia controller
360# XXX this needs to be done very late, so it's done here.  This feels
361# like a kludge, but it might be for the best.
362
363defopt	PCIC_ISA_ALLOC_IOBASE
364defopt	PCIC_ISA_ALLOC_IOSIZE
365defopt	PCIC_ISA_INTR_ALLOC_MASK
366
367device	pcic: pcmciabus
368file	dev/ic/i82365.c			pcic
369
370# PCIC pcmcia controller on ISA bus.
371attach	pcic at isa with pcic_isa
372file	dev/isa/i82365_isa.c		pcic_isa
373
374# PCIC pcmcia controller on PCI bus.
375attach	pcic at pci with pcic_pci
376file	dev/pci/i82365_pci.c		pcic_pci
377
378# PCIC pcmcia controller on PnP board
379attach	pcic at isapnp with pcic_isapnp
380file	dev/isapnp/i82365_isapnp.c	pcic_isapnp
381
382# Code common to ISA and ISAPnP attachments
383file	dev/isa/i82365_isasubr.c	pcic_isa | pcic_isapnp | pcic_pci
384
385# XXXX tcic here because it needs to be late.  The catch: tcic needs
386# to be late, so devices which attach to it are attached late.  But it
387# needs to be before its isa and pci attachments.  This answer is
388# non-optimal, but I don't have a better answer right now.
389
390# TCIC pcmcia controller
391# XXX this needs to be done very late, so it's done here.  This feels
392# like a kludge, but it might be for the best.
393
394defopt	TCIC_ISA_ALLOC_IOBASE
395defopt	TCIC_ISA_ALLOC_IOSIZE
396defopt	TCIC_ISA_INTR_ALLOC_MASK
397
398device	tcic: pcmciabus
399file	dev/ic/tcic2.c			tcic
400
401# TCIC pcmcia controller
402attach	tcic at isa with tcic_isa
403file	dev/isa/tcic2_isa.c		tcic_isa
404
405# this wants to be probed as late as possible.
406#
407# Machine-independent PCMCIA drivers
408#
409include	"dev/pcmcia/files.pcmcia"
410
411
412include	"dev/usb/files.usb"
413
414include	"dev/ieee1394/files.ieee1394"
415
416include	"arch/i386/pnpbios/files.pnpbios"
417