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