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