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