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