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