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