files.i386 revision 1.139
1#	$NetBSD: files.i386,v 1.139 1999/10/15 06:10:38 haya 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_NO_POWER_PRINT
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# X server support in console drivers
35defopt	opt_xserver.h XSERVER XSERVER_DDB
36
37file	arch/i386/i386/autoconf.c
38file	arch/i386/i386/conf.c
39file	arch/i386/i386/db_dbgreg.s	ddb
40file	arch/i386/i386/db_disasm.c	ddb
41file	arch/i386/i386/db_interface.c	ddb
42file	arch/i386/i386/db_memrw.c	ddb | kgdb
43file	arch/i386/i386/db_trace.c	ddb
44file	arch/i386/i386/disksubr.c	disk
45file	arch/i386/i386/gdt.c
46file	arch/i386/i386/in_cksum.s	inet
47file	arch/i386/i386/kgdb_machdep.c	kgdb
48file	arch/i386/i386/machdep.c
49file	arch/i386/i386/math_emulate.c	math_emulate
50file	arch/i386/i386/mem.c
51file	arch/i386/i386/microtime.s
52file	arch/i386/i386/ns_cksum.c	ns
53file	arch/i386/i386/pmap.c
54file	arch/i386/i386/process_machdep.c
55file	arch/i386/i386/sys_machdep.c
56file	arch/i386/i386/trap.c
57file	arch/i386/i386/vm_machdep.c
58file	dev/cons.c
59
60#
61# Machine-independent SCSI drivers
62#
63
64include "dev/scsipi/files.scsipi"
65major	{sd = 4}
66major	{cd = 6}
67
68#
69# Machine-independent ATA drivers
70#
71
72include "dev/ata/files.ata"
73major	{wd = 0}
74
75# Memory Disk for install floppy
76file arch/i386/i386/md_root.c	memory_disk_hooks
77major	{md = 17}
78
79#
80# System bus types
81#
82
83define mainbus { }
84device	mainbus: isabus, eisabus, pcibus, mainbus
85attach	mainbus at root
86file	arch/i386/i386/mainbus.c	mainbus
87
88# attribute used to bring in BIOS trampoline code for real-mode probing
89# of certain devices/BIOS features
90define bioscall
91file	arch/i386/i386/bioscall.s	bioscall needs-flag
92
93#device	mca at root {...}
94
95#
96# PCI-only drivers
97# XXX MUST BE INCLUDED BEFORE files.isa, as long as files.isa attaches
98# XXX devices to 'pci'.
99#
100
101include "dev/pci/files.pci"
102file	arch/i386/pci/pci_machdep.c	pci
103defopt PCI_CONF_MODE
104file	arch/i386/pci/pciide_machdep.c	pciide
105file	arch/i386/pci/pcic_pci_machdep.c	pcic_pci
106
107# PCI-Host bridge chipsets
108device	pchb: pcibus
109attach	pchb at pci
110file	arch/i386/pci/pchb.c		pchb
111
112# PCI-EISA bridges
113device	pceb: eisabus, isabus
114attach	pceb at pci
115file	arch/i386/pci/pceb.c		pceb
116
117# PCI-ISA bridges
118device	pcib: isabus
119attach	pcib at pci
120file	arch/i386/pci/pcib.c		pcib
121
122#
123# ISA and mixed ISA+EISA or ISA+PCI drivers
124#
125
126include "dev/isa/files.isa"
127major	{mcd = 7}
128#major	{scd = 15}
129
130# XXX THE FOLLOWING BLOCK SHOULD GO INTO dev/pci/files.pci, BUT CANNOT
131# XXX BECAUSE NOT 'lpt' IS DEFINED IN files.isa, RATHER THAN files.
132# XXX (when the conf/files and files.isa bogons are fixed, this can
133# XXX be fixed as well.)
134
135attach	lpt at puc with lpt_puc
136file	dev/pci/lpt_puc.c	lpt_puc
137
138file	arch/i386/isa/isa_machdep.c	isa
139
140# PC clock
141file	arch/i386/isa/clock.c		isa
142file	dev/clock_subr.c		isa
143
144# Numeric Processing Extension; Math Co-processor
145device	npx
146attach	npx at isa
147file	arch/i386/isa/npx.c		npx needs-flag
148
149# attribute used to represent the "keyboard controller"
150# XXX should be a real device
151define pckbcport { [irq = -1], [port = -1] }
152
153# PC console support a la "pccons"
154device	pc: tty, pckbcport
155attach	pc at isa
156device	pcconskbd
157attach	pcconskbd at pckbc
158file	arch/i386/isa/pccons.c		pc | pcconskbd needs-flag
159
160# PC console support a la "pcvt"
161device	vt: tty, pckbcport
162attach	vt at isa
163file	arch/i386/isa/pcvt/pcvt_drv.c	vt needs-flag
164file	arch/i386/isa/pcvt/pcvt_ext.c	vt needs-flag
165file	arch/i386/isa/pcvt/pcvt_kbd.c	vt needs-flag
166file	arch/i386/isa/pcvt/pcvt_out.c	vt needs-flag
167file	arch/i386/isa/pcvt/pcvt_sup.c	vt needs-flag
168file	arch/i386/isa/pcvt/pcvt_vtf.c	vt needs-flag
169
170# PC Mice; Logitech-style, Microsoft-style, and PS/2-style
171device	olms
172attach	olms at isa
173file	arch/i386/isa/olms.c		olms needs-flag
174device	lms: wsmousedev
175attach	lms at isa
176file	arch/i386/isa/lms.c		lms
177device	omms
178attach	omms at isa
179file	arch/i386/isa/omms.c		omms needs-flag
180device	mms: wsmousedev
181attach	mms at isa
182file	arch/i386/isa/mms.c		mms
183device	opms
184attach	opms at pckbcport with opms_hack
185attach	opms at pckbc with opms_pckbc
186file	arch/i386/isa/pms.c		opms | opms_hack | opms_pckbc needs-flag
187
188include "dev/wscons/files.wscons"
189
190include "dev/pckbc/files.pckbc"
191
192device sysbeep
193attach sysbeep at pcppi
194
195# Floppy disk controller
196device	fdc {drive = -1}
197attach	fdc at isa
198device	fd: disk, isadma
199attach	fd at fdc
200file	arch/i386/isa/fd.c		fdc needs-flag
201major	{fd = 2}
202
203# Game adapter (joystick)
204device	joy
205file	arch/i386/isa/joy.c		joy needs-flag
206
207attach	joy at isa with joy_isa
208file	arch/i386/isa/joy_isa.c		joy_isa
209
210# Adaptec AHA-284x VL SCSI controllers
211# device declaration in sys/conf/files
212attach	ahc at isa with ahc_isa
213file	arch/i386/isa/ahc_isa.c		ahc_isa
214
215#
216# EISA-only drivers
217#
218
219include "dev/eisa/files.eisa"
220file	arch/i386/eisa/eisa_machdep.c	eisa
221
222# ISA Plug 'n Play devices
223file	arch/i386/isa/isapnp_machdep.c	isapnp
224
225attach	joy at isapnp with joy_isapnp
226file	arch/i386/isa/joy_isapnp.c	joy_isapnp
227
228#
229# VME support
230#
231include "dev/vme/files.vme"
232
233#
234# Other mainbus-attached devices
235#
236
237# Advanced Power Management support (APM)
238device apm: bioscall
239attach apm at mainbus
240file	arch/i386/i386/apm.c		apm needs-count
241file	arch/i386/i386/apmcall.s	apm
242
243#
244# Compatibility modules
245#
246
247# VM86 mode
248file	arch/i386/i386/vm86.c			vm86
249
250# Binary compatibility with previous NetBSD releases (COMPAT_XX)
251file	arch/i386/i386/compat_13_machdep.c	compat_13 | compat_aout
252
253# SVR4 binary compatibility (COMPAT_SVR4)
254include "compat/svr4/files.svr4"
255file	arch/i386/i386/svr4_machdep.c		compat_svr4
256
257# iBCS-2 binary compatibility (COMPAT_IBCS2)
258include "compat/ibcs2/files.ibcs2"
259file	arch/i386/i386/ibcs2_machdep.c		compat_ibcs2
260
261# Linux binary compatibility (COMPAT_LINUX)
262include "compat/linux/files.linux"
263include "compat/linux/arch/i386/files.linux_i386"
264
265# FreeBSD binary compatibility (COMPAT_FREEBSD)
266include "compat/freebsd/files.freebsd"
267file	arch/i386/i386/freebsd_machdep.c	compat_freebsd
268
269# a.out binary compatibility (COMPAT_AOUT)
270include "compat/aout/files.aout"
271
272# OSS audio driver compatibility
273include "compat/ossaudio/files.ossaudio"
274
275# network devices MII bus
276include "dev/mii/files.mii"
277
278#
279# CARDBUS
280#
281include "dev/cardbus/files.cardbus"
282file	arch/i386/i386/rbus_machdep.c	cardbus
283
284# XXXX pcic here because it needs to be late.  The catch: pcic needs
285# to be late, so devices which attach to it are attached late.  But it
286# needs to be before its isa and pci attachments.  This answer is
287# non-optimal, but I don't have a better answer right now.
288
289# PCIC pcmcia contoller
290# XXX this needs to be done very late, so it's done here.  This feels
291# like a kludge, but it might be for the best.
292
293defopt	PCIC_ISA_ALLOC_IOBASE
294defopt	PCIC_ISA_ALLOC_IOSIZE
295defopt	PCIC_ISA_INTR_ALLOC_MASK
296
297device	pcic: pcmciabus
298file	dev/ic/i82365.c			pcic
299
300# PCIC pcmcia controller on ISA bus.
301attach	pcic at isa with pcic_isa
302file	dev/isa/i82365_isa.c		pcic_isa
303
304# PCIC pcmcia controller on PCI bus.
305attach	pcic at pci with pcic_pci
306file	dev/pci/i82365_pci.c		pcic_pci
307
308# PCIC pcmcia controller on PnP board
309attach pcic at isapnp with pcic_isapnp
310file	dev/isapnp/i82365_isapnp.c	pcic_isapnp
311
312# Code common to ISA and ISAPnP attachments
313file	dev/isa/i82365_isasubr.c	pcic_isa | pcic_isapnp | pcic_pci
314
315# XXXX tcic here because it needs to be late.  The catch: tcic needs
316# to be late, so devices which attach to it are attached late.  But it
317# needs to be before its isa and pci attachments.  This answer is
318# non-optimal, but I don't have a better answer right now.
319
320# TCIC pcmcia contoller
321# XXX this needs to be done very late, so it's done here.  This feels
322# like a kludge, but it might be for the best.
323
324defopt	TCIC_ISA_ALLOC_IOBASE
325defopt	TCIC_ISA_ALLOC_IOSIZE
326defopt	TCIC_ISA_INTR_ALLOC_MASK
327
328device	tcic: pcmciabus
329file	dev/ic/tcic2.c			tcic
330
331# TCIC pcmcia contoller
332attach	tcic at isa with tcic_isa
333file	dev/isa/tcic2_isa.c		tcic_isa
334
335# this wants to be probed as late as possible.
336#
337# Machine-independent PCMCIA drivers
338#
339include "dev/pcmcia/files.pcmcia"
340
341
342include "dev/usb/files.usb"
343