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