xref: /netbsd-src/sys/arch/sparc/conf/files.sparc (revision 93f9db1b75d415b78f73ed629beeb86235153473)
1#	$NetBSD: files.sparc,v 1.68 1998/09/26 19:06:47 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"
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#
85# Console (zs) related stuff
86#
87
88device zstty: tty
89attach zstty at zs
90file dev/ic/z8530tty.c			zstty needs-flag
91file arch/sparc/dev/zs_kgdb.c		kgdb
92
93define zsevent
94file dev/sun/event.c			zsevent
95
96device kbd: zsevent
97attach kbd at zs
98file dev/sun/kbd.c			kbd needs-flag
99file dev/sun/kbd_tables.c 		kbd
100file arch/sparc/dev/kd.c 		kbd
101
102device ms: zsevent
103attach ms at zs
104file dev/sun/ms.c			ms needs-flag
105
106#
107# Machine-independent SCSI drivers
108#
109include "../../../dev/scsipi/files.scsipi"
110
111major	{ cd = 18 }
112major	{ fd = 16 }
113major	{ md = 5 }
114major	{ sd = 7 }
115major	{ vnd = 8 }
116major	{ xd = 10 }
117major	{ xy = 3 }
118
119attach dma at obio with dma_obio
120file	arch/sparc/dev/dma_obio.c	dma_obio
121
122attach esp at obio with esp_obio
123file	arch/sparc/dev/esp_obio.c	esp_obio
124
125attach audioamd at mainbus with audioamd_mainbus
126attach audioamd at sbus with audioamd_sbus
127file	arch/sparc/dev/am7930_sparc.c		audioamd
128file	arch/sparc/sparc/amd7930intr.s		audioamd
129
130# Brooktree DAC attribute
131define bt_dac
132
133# Include /dev/fb driver only if a framebuffer card is included
134define fb
135
136device bwtwo: fb
137attach bwtwo at sbus with bwtwo_sbus
138attach bwtwo at obio with bwtwo_obio
139file	arch/sparc/dev/bwtwo.c		bwtwo needs-flag
140
141device cgtwo: fb
142attach cgtwo at vme
143file	arch/sparc/dev/cgtwo.c		cgtwo needs-flag
144
145device cgthree: bt_dac, fb
146attach cgthree at sbus with cgthree_sbus
147attach cgthree at obio with cgthree_obio
148file	arch/sparc/dev/cgthree.c	cgthree needs-flag
149
150device cgfour: bt_dac, fb
151attach cgfour at obio
152file	arch/sparc/dev/cgfour.c		cgfour needs-flag
153
154device cgsix: bt_dac, fb
155attach cgsix at sbus with cgsix_sbus
156attach cgsix at obio with cgsix_obio
157file	arch/sparc/dev/cgsix.c		cgsix needs-flag
158file	arch/sparc/dev/cgsix_sbus.c	cgsix_sbus & (sbus | obio)
159file	arch/sparc/dev/cgsix_obio.c	cgsix_obio & obio
160
161device cgeight: bt_dac, fb
162attach cgeight at obio
163file	arch/sparc/dev/cgeight.c	cgeight needs-flag
164
165device tcx: bt_dac, fb
166attach tcx at sbus
167file	arch/sparc/dev/tcx.c		tcx needs-flag
168
169device cgfourteen: fb
170attach cgfourteen at obio
171file	arch/sparc/dev/cgfourteen.c	cgfourteen needs-flag
172
173file	arch/sparc/dev/bt_subr.c	bt_dac
174file	arch/sparc/dev/fb.c		fb needs-flag
175
176# device definition in sys/conf/files
177attach le at obio with le_obio: le24
178file	arch/sparc/dev/if_le_obio.c	le_obio
179
180attach ie at obio with ie_obio
181file	arch/sparc/dev/if_ie_obio.c	ie_obio
182
183device si: scsi, ncr5380sbc
184attach si at vme
185device sw: scsi, ncr5380sbc
186attach sw at obio
187file	arch/sparc/dev/si.c		si | sw
188
189#
190# Generic Sun stuff
191#
192
193file	dev/cons.c
194
195file	arch/sparc/fpu/fpu.c
196file	arch/sparc/fpu/fpu_add.c
197file	arch/sparc/fpu/fpu_compare.c
198file	arch/sparc/fpu/fpu_div.c
199file	arch/sparc/fpu/fpu_explode.c
200file	arch/sparc/fpu/fpu_implode.c
201file	arch/sparc/fpu/fpu_mul.c
202file	arch/sparc/fpu/fpu_sqrt.c
203file	arch/sparc/fpu/fpu_subr.c
204
205# N.B.: optimizer breaks pmap.c and/or cache.c somehow -- have not
206# identified the exact problem yet.  NOOPT_C suffices for now.
207file	arch/sparc/sparc/autoconf.c
208file	arch/sparc/sparc/cache.c
209file	arch/sparc/sparc/conf.c
210file	arch/sparc/sparc/emul.c
211file	arch/sparc/sparc/in_cksum.c
212file	arch/sparc/sparc/intr.c
213file	arch/sparc/sparc/kgdb_machdep.c	kgdb
214# sparc/sparc/locore.s is handled specially in the makefile,
215# because it must come first in the "ld" command line.
216file	arch/sparc/sparc/locore2.c
217file	arch/sparc/sparc/machdep.c
218file	arch/sparc/sparc/process_machdep.c
219file	arch/sparc/sparc/mem.c
220file	arch/sparc/sparc/obp.c
221file	arch/sparc/sparc/openprom.c
222file	arch/sparc/sparc/pmap.c
223# the following overrides the generic "sys_process.c"
224# commented out by deraadt
225#file	arch/sparc/sparc/sys_process.c
226file	arch/sparc/sparc/sys_machdep.c
227file	arch/sparc/sparc/trap.c
228file	arch/sparc/sparc/vm_machdep.c
229file	arch/sparc/sparc/disksubr.c
230
231file	arch/sparc/sparc/db_interface.c	ddb | kgdb
232file	arch/sparc/sparc/db_trace.c	ddb
233file	arch/sparc/sparc/db_disasm.c	ddb
234
235#
236# Raster Console
237#
238include "../../../dev/rcons/files.rcons"
239
240#
241# Compatibility modules
242#
243
244# SVR4 Binary Compatibility (COMPAT_SVR4)
245include "../../../compat/svr4/files.svr4"
246file	arch/sparc/sparc/svr4_machdep.c	compat_svr4
247
248# SunOS Binary Compatibility (COMPAT_SUNOS)
249include "../../../compat/sunos/files.sunos"
250file	arch/sparc/sparc/sunos_machdep.c compat_sunos
251
252# Binary compatibility with previous NetBSD releases (COMPAT_XX)
253file	arch/sparc/sparc/compat_13_machdep.c	compat_13
254
255# Miscellaneous
256file	netns/ns_cksum.c		ns
257
258file	arch/sparc/dev/md_root.c	memory_disk_hooks
259