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