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