xref: /netbsd-src/sys/arch/sparc/conf/files.sparc (revision 481fca6e59249d8ffcf24fef7cfbe7b131bfb080)
1#	$NetBSD: files.sparc,v 1.94 2000/07/03 23:30:34 pk Exp $
2
3# @(#)files.sparc	8.1 (Berkeley) 7/19/93
4# sparc-specific configuration info
5
6# maxpartitions must be first item in files.${ARCH}
7maxpartitions 8
8
9maxusers 2 8 1024
10
11device mainbus {}
12attach mainbus at root
13
14device iommu {}
15attach iommu at mainbus
16file	arch/sparc/sparc/iommu.c		iommu
17
18device obio { [addr = -1], [level = -1] }
19attach obio at mainbus
20
21include "dev/vme/files.vme"
22device sparcvme: vmebus
23attach sparcvme at mainbus with vme_mainbus
24attach sparcvme at iommu with vme_iommu
25
26file	arch/sparc/dev/obio.c		obio
27file	arch/sparc/dev/vme_machdep.c	sparcvme
28
29device auxreg
30attach auxreg at mainbus with auxreg_mainbus
31attach auxreg at obio with auxreg_obio
32file	arch/sparc/sparc/auxreg.c
33
34device auxiotwo
35attach auxiotwo at obio with auxiotwo_obio
36file	arch/sparc/sparc/auxiotwo.c
37
38device clock
39attach clock at mainbus with clock_mainbus
40attach clock at obio with clock_obio
41
42device oclock
43attach oclock at obio
44
45device timer
46attach timer at mainbus with timer_mainbus
47attach timer at obio with timer_obio
48
49device eeprom
50attach eeprom at obio
51file	arch/sparc/sparc/clock.c
52
53device power
54attach power at obio
55file	arch/sparc/dev/power.c			power	needs-flag
56
57device cpu
58attach cpu at mainbus
59file	arch/sparc/sparc/cpu.c
60
61device memreg
62attach memreg at mainbus with memreg_mainbus
63attach memreg at obio with memreg_obio
64file	arch/sparc/sparc/memreg.c
65
66device eccmemctl
67attach eccmemctl at mainbus
68file	arch/sparc/sparc/memecc.c		eccmemctl
69
70device tctrl
71attach tctrl at obio
72file	arch/sparc/dev/tctrl.c			tctrl needs-flag
73
74device zs {channel = -1}
75attach zs at mainbus with zs_mainbus
76attach zs at obio with zs_obio
77file	arch/sparc/dev/zs.c			zs needs-count
78file	dev/ic/z8530sc.c			zs
79
80device fdc {}
81attach fdc at mainbus with fdc_mainbus
82attach fdc at obio with fdc_obio
83device fd: disk
84attach fd at fdc
85file	arch/sparc/dev/fd.c			fdc | fd needs-flag
86file	arch/sparc/sparc/bsd_fdintr.s		fdc
87
88include "dev/sbus/files.sbus"
89attach sbus at mainbus with sbus_mainbus
90attach sbus at iommu with sbus_iommu
91file	arch/sparc/dev/sbus.c			sbus needs-flag
92
93device tpcic: pcmciabus
94attach tpcic at sbus
95file	arch/sparc/dev/ts102.c			tpcic
96
97# network devices MII bus
98include "dev/mii/files.mii"
99
100# PCMCIA bus
101include "dev/pcmcia/files.pcmcia"
102include "dev/ata/files.ata"
103
104#
105# Console (zs) related stuff
106#
107
108device zstty: tty
109attach zstty at zs
110file dev/ic/z8530tty.c			zstty needs-flag
111file arch/sparc/dev/zs_kgdb.c		kgdb
112
113define zsevent
114file dev/sun/event.c			zsevent
115
116device kbd: zsevent
117attach kbd at zs with kbd_zs
118file dev/sun/kbd_zs.c			kbd_zs
119file dev/sun/kbd.c			kbd needs-flag
120file dev/sun/kbd_tables.c 		kbd
121file arch/sparc/dev/kd.c
122
123device ms: zsevent
124attach ms at zs with ms_zs
125file dev/sun/ms_zs.c			ms_zs
126file dev/sun/ms.c			ms needs-flag
127
128#
129# Machine-independent SCSI drivers
130#
131include "dev/scsipi/files.scsipi"
132
133major	{ cd = 18 }
134major	{ fd = 16 }
135major	{ md = 5 }
136major	{ sd = 7 }
137major	{ xd = 10 }
138major	{ xy = 3 }
139
140# RAIDframe
141major 	{ raid = 25 }
142
143attach dma at obio with dma_obio
144file	arch/sparc/dev/dma_obio.c	dma_obio
145
146attach esp at obio with esp_obio
147file	arch/sparc/dev/esp_obio.c	esp_obio
148
149device	audioamd: audio, am7930
150attach	audioamd at mainbus with audioamd_mainbus
151attach	audioamd at sbus with audioamd_sbus
152file	arch/sparc/dev/audioamd.c		audioamd
153file	arch/sparc/sparc/amd7930intr.s		audioamd
154
155# Brooktree DAC attribute
156define bt_dac
157
158# Raster operations for RASTERCONSOLE (this is here so dependancies work).
159include "dev/rasops/files.rasops"
160
161# Include /dev/fb driver only if a framebuffer card is included
162define fb
163
164device bwtwo: fb, rasops1
165attach bwtwo at sbus with bwtwo_sbus
166attach bwtwo at obio with bwtwo_obio
167file	arch/sparc/dev/bwtwo.c		bwtwo needs-flag
168file	arch/sparc/dev/bwtwo_sbus.c	bwtwo_sbus & sbus
169file	arch/sparc/dev/bwtwo_obio.c	bwtwo_obio & obio
170
171device cgtwo: fb, rasops8
172attach cgtwo at vme
173file	arch/sparc/dev/cgtwo.c		cgtwo needs-flag
174
175device cgthree: bt_dac, fb, rasops8
176attach cgthree at sbus with cgthree_sbus
177attach cgthree at obio with cgthree_obio
178file	arch/sparc/dev/cgthree.c	cgthree needs-flag
179
180device cgfour: bt_dac, fb, rasops8
181attach cgfour at obio
182file	arch/sparc/dev/cgfour.c		cgfour needs-flag
183
184device cgsix: bt_dac, fb, rasops8
185attach cgsix at sbus with cgsix_sbus
186attach cgsix at obio with cgsix_obio
187file	arch/sparc/dev/cgsix.c		cgsix needs-flag
188file	arch/sparc/dev/cgsix_sbus.c	cgsix_sbus & sbus
189file	arch/sparc/dev/cgsix_obio.c	cgsix_obio & obio
190
191device cgeight: bt_dac, fb, rasops24
192attach cgeight at obio
193file	arch/sparc/dev/cgeight.c	cgeight needs-flag
194
195device tcx: bt_dac, fb, rasops8, rasops24
196attach tcx at sbus
197file	arch/sparc/dev/tcx.c		tcx needs-flag
198
199device cgfourteen: fb, rasops32
200attach cgfourteen at obio
201file	arch/sparc/dev/cgfourteen.c	cgfourteen needs-flag
202
203device pnozz: fb, bt_dac, rasops8, rasops16, rasops32
204attach pnozz at sbus
205file	arch/sparc/dev/p9100.c		pnozz needs-flag
206
207file	arch/sparc/dev/bt_subr.c	bt_dac
208file	arch/sparc/dev/fb.c		fb needs-flag
209
210# device definition in sys/conf/files
211attach le at obio with le_obio: le24
212file	arch/sparc/dev/if_le_obio.c	le_obio
213
214attach ie at obio with ie_obio
215file	arch/sparc/dev/if_ie_obio.c	ie_obio
216
217attach com at obio with com_obio
218file	arch/sparc/dev/com_obio.c	com_obio
219
220device sw: scsi, ncr5380sbc
221attach sw at obio
222file	arch/sparc/dev/sw.c		sw
223
224#
225# Generic Sun stuff
226#
227
228file	dev/cons.c
229
230file	arch/sparc/fpu/fpu.c
231file	arch/sparc/fpu/fpu_add.c
232file	arch/sparc/fpu/fpu_compare.c
233file	arch/sparc/fpu/fpu_div.c
234file	arch/sparc/fpu/fpu_explode.c
235file	arch/sparc/fpu/fpu_implode.c
236file	arch/sparc/fpu/fpu_mul.c
237file	arch/sparc/fpu/fpu_sqrt.c
238file	arch/sparc/fpu/fpu_subr.c
239
240file	arch/sparc/sparc/autoconf.c
241file	arch/sparc/sparc/cache.c
242file	arch/sparc/sparc/conf.c
243file	arch/sparc/sparc/emul.c
244file	arch/sparc/sparc/in_cksum.c
245file	netinet/in4_cksum.c		inet
246file	arch/sparc/sparc/intr.c
247file	arch/sparc/sparc/kgdb_machdep.c	kgdb
248# sparc/sparc/locore.s is handled specially in the makefile,
249# because it must come first in the "ld" command line.
250file	arch/sparc/sparc/locore2.c
251file	arch/sparc/sparc/machdep.c
252file	arch/sparc/sparc/process_machdep.c
253file	arch/sparc/sparc/mem.c
254file	arch/sparc/sparc/promlib.c
255file	arch/sparc/sparc/openfirm.c
256file	arch/sparc/sparc/openprom.c
257file	arch/sparc/sparc/pmap.c
258# the following overrides the generic "sys_process.c"
259# commented out by deraadt
260#file	arch/sparc/sparc/sys_process.c
261file	arch/sparc/sparc/sys_machdep.c
262file	arch/sparc/sparc/trap.c
263file	arch/sparc/sparc/vm_machdep.c
264file	arch/sparc/sparc/disksubr.c
265
266file	arch/sparc/sparc/db_interface.c	ddb | kgdb
267file	arch/sparc/sparc/db_trace.c	ddb
268file	arch/sparc/sparc/db_disasm.c	ddb
269
270#
271# Raster Console
272#
273include "dev/rcons/files.rcons"
274include "dev/wsfont/files.wsfont"
275
276#
277# Compatibility modules
278#
279
280# SVR4 Binary Compatibility (COMPAT_SVR4)
281include "compat/svr4/files.svr4"
282file	arch/sparc/sparc/svr4_machdep.c	compat_svr4
283
284# SunOS Binary Compatibility (COMPAT_SUNOS)
285include "compat/sunos/files.sunos"
286file	arch/sparc/sparc/sunos_machdep.c compat_sunos
287
288# NetBSD a.out Binary Compatibility (COMPAT_AOUT)
289include "compat/aout/files.aout"
290
291# Binary compatibility with previous NetBSD releases (COMPAT_XX)
292# Note: SunOS compatibility also uses some of `compat_13_machdep.c'
293file	arch/sparc/sparc/compat_13_machdep.c	compat_13 | compat_sunos
294
295# Miscellaneous
296file	netns/ns_cksum.c		ns
297
298file	arch/sparc/dev/md_root.c	memory_disk_hooks
299