files.i386 revision 1.105
1#	$NetBSD: files.i386,v 1.105 1998/01/22 01:16:23 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
26# X server support in console drivers
27defopt	XSERVER
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
45file	arch/i386/i386/process_machdep.c
46file	arch/i386/i386/random.s
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 class dull: 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
97
98# PCI-Host bridge chipsets
99device	pchb class dull: pcibus
100attach	pchb at pci
101file	arch/i386/pci/pchb.c		pchb
102
103# PCI-ISA bridges
104device	pcib class dull: isabus
105attach	pcib at pci
106file	arch/i386/pci/pcib.c		pcib
107
108#
109# ISA and mixed ISA+EISA or ISA+PCI drivers
110#
111
112include "dev/isa/files.isa"
113major	{mcd = 7}
114#major	{scd = 15}
115major	{wt = 3}
116
117file	arch/i386/isa/isa_machdep.c	isa
118
119# PC clock
120file	arch/i386/isa/clock.c		isa
121
122# Numeric Processing Extension; Math Co-processor
123device	npx class dull
124attach	npx at isa
125file	arch/i386/isa/npx.c		npx needs-flag
126
127# attribute used to represent the "keyboard controller"
128# XXX should be a real device
129define pckbd { [irq = -1], [port = -1] }
130
131# PC console support a la "pccons"
132device	pc class tty: tty, pckbd
133attach	pc at isa
134file	arch/i386/isa/pccons.c		pc needs-flag
135
136# PC console support a la "pcvt"
137device	vt class tty: tty, pckbd
138attach	vt at isa
139file	arch/i386/isa/pcvt/pcvt_drv.c	vt needs-flag
140file	arch/i386/isa/pcvt/pcvt_ext.c	vt needs-flag
141file	arch/i386/isa/pcvt/pcvt_kbd.c	vt needs-flag
142file	arch/i386/isa/pcvt/pcvt_out.c	vt needs-flag
143file	arch/i386/isa/pcvt/pcvt_sup.c	vt needs-flag
144file	arch/i386/isa/pcvt/pcvt_vtf.c	vt needs-flag
145
146# PC Mice; Logitech-style, Microsoft-style, and PS/2-style
147device	lms class dull
148attach	lms at isa
149file	arch/i386/isa/lms.c		lms needs-flag
150device	mms class dull
151attach	mms at isa
152file	arch/i386/isa/mms.c		mms needs-flag
153device	pms class dull
154attach	pms at pckbd
155file	arch/i386/isa/pms.c		pms needs-flag
156
157# Floppy disk controller
158device	fdc class dull {drive = -1}
159attach	fdc at isa
160device	fd class disk: disk, isadma
161attach	fd at fdc
162file	arch/i386/isa/fd.c		fdc needs-flag
163major	{fd = 2}
164
165# PC speaker
166device	spkr class dull: tty
167attach	spkr at pckbd
168file	arch/i386/isa/spkr.c		spkr needs-flag
169
170# Game adapter (joystick)
171device	joy class dull
172file	arch/i386/isa/joy.c		joy needs-flag
173
174attach	joy at isa with joy_isa
175file	arch/i386/isa/joy_isa.c		joy_isa
176
177# Adaptec AHA-284x VL SCSI controllers
178# device declaration in sys/conf/files
179attach	ahc at isa with ahc_isa
180file	arch/i386/isa/ahc_isa.c		ahc_isa
181
182#
183# EISA-only drivers
184#
185
186include "dev/eisa/files.eisa"
187file	arch/i386/eisa/eisa_machdep.c	eisa
188
189# ISA Plug 'n Play devices
190# IT IS IMPORTANT THAT THIS IS INCLUDED AFTER ALL ISA DEVICES!
191# DO NOT MOVE IT!  (Thanks, The Mgmt.)
192include "dev/isapnp/files.isapnp"
193file	arch/i386/isa/isapnp_machdep.c	isapnp
194
195attach	joy at isapnp with joy_isapnp
196file	arch/i386/isa/joy_isapnp.c	joy_isapnp
197
198#
199# Other mainbus-attached devices
200#
201
202# Advanced Power Management support (APM)
203device apm class dull: bioscall
204attach apm at mainbus
205file	arch/i386/i386/apm.c		apm needs-count
206file	arch/i386/i386/apmcall.s	apm
207
208#
209# Compatibility modules
210#
211
212# VM86 mode
213file	arch/i386/i386/vm86.c			vm86
214
215# SVR4 binary compatibility (COMPAT_SVR4)
216include "compat/svr4/files.svr4"
217file	arch/i386/i386/svr4_machdep.c		compat_svr4
218
219# iBCS-2 binary compatibility (COMPAT_IBCS2)
220include "compat/ibcs2/files.ibcs2"
221file	arch/i386/i386/ibcs2_machdep.c		compat_ibcs2
222
223# Linux binary compatibility (COMPAT_LINUX)
224include "compat/linux/files.linux"
225file	arch/i386/i386/linux_machdep.c		compat_linux
226
227# FreeBSD binary compatibility (COMPAT_FREEBSD)
228include "compat/freebsd/files.freebsd"
229file	arch/i386/i386/freebsd_machdep.c	compat_freebsd
230
231# OSS audio driver compatibility
232include "compat/ossaudio/files.ossaudio"
233
234# network devices MII bus
235include "dev/mii/files.mii"
236
237# XXXX pcic here because it needs to be late.  The catch: pcic needs
238# to be late, so devices which attach to it are attached late.  But it
239# needs to be before its isa and pci attachments.  This answer is
240# non-optimal, but I don't have a better answer right now.
241
242# PCIC pcmcia contoller
243# XXX this needs to be done very late, so it's done here.  This feels
244# like a kludge, but it might be for the best.
245
246defopt	PCIC_ISA_ALLOC_IOBASE
247defopt	PCIC_ISA_ALLOC_IOSIZE
248defopt	PCIC_ISA_INTR_ALLOC_MASK
249
250device	pcic class dull {[controller = -1], [socket = -1]}
251file	dev/ic/i82365.c			pcic
252
253# PCIC pcmcia contoller
254attach	pcic at isa with pcic_isa
255file	dev/isa/i82365_isa.c		pcic_isa
256
257# PCIC pcmcia contoller
258attach	pcic at pci with pcic_pci
259file	dev/pci/i82365_pci.c		pcic_pci
260
261
262# this wants to be probed as late as possible.
263#
264# Machine-independent PCMCIA drivers
265#
266include "dev/pcmcia/files.pcmcia"
267
268
269