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