xref: /netbsd-src/sys/arch/sparc/conf/files.sparc (revision 9c1da17e908379b8a470f1117a6395bd6a0ca559)
1#	$NetBSD: files.sparc,v 1.134 2005/07/10 17:02:19 christos Exp $
2
3# @(#)files.sparc	8.1 (Berkeley) 7/19/93
4# sparc-specific configuration info
5
6defflag	opt_sparc_arch.h	SUN4
7defflag	opt_sparc_arch.h	SUN4_MMU3L
8defflag	opt_sparc_arch.h	SUN4C
9defflag	opt_sparc_arch.h	SUN4M
10defflag	opt_sparc_arch.h	SUN4D
11defflag	opt_sparc_arch.h	SUN4U
12defflag	opt_sparc_arch.h	MSIIEP
13
14# maxpartitions must be first item in files.${ARCH}
15maxpartitions 8
16
17maxusers 2 8 1024
18
19device mainbus {}
20attach mainbus at root
21
22device msiiep {}
23attach msiiep at mainbus
24
25include "dev/i2o/files.i2o"
26include "dev/pci/files.pci"
27device mspcic {}: pcibus
28attach mspcic at msiiep
29file	arch/sparc/sparc/msiiep.c		msiiep | mspcic
30file	arch/sparc/sparc/pci_machdep.c		msiiep | mspcic
31
32device ebus {[addr = -1]}
33attach ebus at pci
34file	arch/sparc/dev/ebus.c			ebus
35
36device rtc
37attach rtc at ebus with rtc_ebus
38file	arch/sparc/dev/rtc.c			rtc_ebus
39
40device iommu {}
41attach iommu at mainbus
42file	arch/sparc/sparc/iommu.c		iommu
43
44device obio { [addr = -1], [level = -1] }
45attach obio at mainbus
46
47device cpuunit { }
48attach cpuunit at mainbus
49file	arch/sparc/sparc/cpuunit.c		cpuunit
50
51device bootbus { [slot = -1], [offset = -1] }
52attach bootbus at cpuunit
53file	arch/sparc/dev/bootbus.c		bootbus
54
55include "dev/vme/files.vme"
56device sparcvme: vmebus
57attach sparcvme at mainbus with vme_mainbus
58attach sparcvme at iommu with vme_iommu
59
60file	arch/sparc/dev/obio.c		obio
61file	arch/sparc/dev/vme_machdep.c	sparcvme
62
63device auxreg
64attach auxreg at mainbus with auxreg_mainbus
65attach auxreg at obio with auxreg_obio
66file	arch/sparc/sparc/auxreg.c
67
68defflag	BLINK
69
70device auxiotwo
71attach auxiotwo at obio with auxiotwo_obio
72file	arch/sparc/sparc/auxiotwo.c
73
74device clock: mk48txx
75attach clock at mainbus with clock_mainbus
76attach clock at obio with clock_obio
77attach clock at bootbus with clock_bootbus
78file	arch/sparc/sparc/mkclock.c		clock
79
80device oclock: intersil7170
81attach oclock at obio
82file	arch/sparc/sparc/oclock.c		oclock
83
84device timer
85attach timer at mainbus with timer_mainbus
86attach timer at obio with timer_obio
87attach timer at msiiep with timer_msiiep
88file	arch/sparc/sparc/timer.c		timer & !msiiep
89file	arch/sparc/sparc/timer_sun4.c		timer & (sun4 | sun4c)
90file	arch/sparc/sparc/timer_sun4m.c		timer & sun4m & !msiiep
91file	arch/sparc/sparc/timer_msiiep.c		timer & msiiep
92
93device eeprom
94attach eeprom at obio
95file	arch/sparc/sparc/eeprom.c		eeprom
96
97file	arch/sparc/sparc/clock.c
98
99device power
100attach power at obio
101file	arch/sparc/dev/power.c			power	needs-flag
102
103device cpu
104attach cpu at mainbus with cpu_mainbus
105attach cpu at cpuunit with cpu_cpuunit
106file	arch/sparc/sparc/cpu.c
107
108device memreg
109attach memreg at mainbus with memreg_mainbus
110attach memreg at obio with memreg_obio
111file	arch/sparc/sparc/memreg.c
112
113device eccmemctl
114attach eccmemctl at mainbus
115file	arch/sparc/sparc/memecc.c		eccmemctl
116
117device tctrl: sysmon_envsys, sysmon_power, sysmon_taskq
118attach tctrl at obio
119file	arch/sparc/dev/tctrl.c			tctrl needs-flag
120
121include "dev/sun/files.sun"
122
123device zs { [channel = -1] }
124attach zs at mainbus with zs_mainbus
125attach zs at obio with zs_obio
126attach zs at bootbus with zs_bootbus
127file	arch/sparc/dev/zs.c			zs
128file	dev/ic/z8530sc.c			zs
129
130device zstty {}: tty
131attach zstty at zs
132file dev/ic/z8530tty.c				zstty
133file arch/sparc/dev/zs_kgdb.c			kgdb
134
135device fdc {}
136attach fdc at mainbus with fdc_mainbus
137attach fdc at obio with fdc_obio
138device fd: disk
139attach fd at fdc
140file	arch/sparc/dev/fd.c			fdc | fd needs-flag
141file	arch/sparc/sparc/bsd_fdintr.s		fdc
142
143include "dev/sbus/files.sbus"
144attach sbus at mainbus with sbus_mainbus
145attach sbus at iommu with sbus_iommu
146file	arch/sparc/dev/sbus.c			sbus needs-flag
147
148attach	audiocs at ebus with audiocs_ebus
149file	dev/ebus/cs4231_ebus.c			audiocs_ebus
150
151device tslot: pcmciabus
152attach tslot at sbus
153file	arch/sparc/dev/ts102.c			tslot
154
155# PCMCIA bus
156include "dev/pcmcia/files.pcmcia"
157include "dev/ata/files.ata"
158
159
160#
161# Console related stuff
162#
163
164file	arch/sparc/dev/kd.c				# console
165
166attach pckbc at obio with pckbc_obio: pckbport_machdep_cnattach
167attach pckbc at ebus with pckbc_ebus: pckbport_machdep_cnattach
168file	arch/sparc/dev/pckbc_js.c	pckbc_obio | pckbc_ebus
169
170
171# sun keyboard at a serial port
172attach kbd at zs with kbd_zs
173file dev/sun/kbd_zs.c			kbd_zs		# kbd lower layer
174
175# sun keyboard at a tty line discipline
176# only used by sparc64, but we can test-compile it here
177attach kbd at zstty with kbd_tty
178file	dev/sun/sunkbd.c		kbd_tty		# kbd lower layer
179
180
181# shared middle layer for serial keyboard
182file	dev/sun/kbdsun.c		kbd_zs | kbd_tty # kbd middle layer
183
184# PC/AT keyboard at 8042 (pckbc) for Mr.Coffee
185attach kbd at pckbport with kbd_pckbport
186file	arch/sparc/dev/kbd_pckbport.c	kbd_pckbport	# kbd mid/lower layers
187
188
189# sun (mouse systems) mouse at a serial port
190attach ms at zs with ms_zs
191file	dev/sun/ms_zs.c			ms_zs		# mouse lower layer
192
193# sun (mouse systems) mouse at a tty line discipline
194# only used by sparc64, but we can test-compile it here
195attach ms at zstty with ms_tty
196file	dev/sun/sunms.c			ms_tty		# mouse lower layer
197
198# XXX: middle layer for sun (mouse systems) serial mice consists of
199# just one function in dev/sun/ms.c (upper layer).  Split it out?
200
201# PS/2 mouse at 8042 (pckbc) for Mr.Coffee
202attach ms at pckbport with ms_pckbport
203file	arch/sparc/dev/ms_pckbport.c	ms_pckbport	# lower/middle layers
204
205
206#
207# Machine-independent SCSI drivers
208#
209include "dev/scsipi/files.scsipi"
210
211attach dma at obio with dma_obio
212file	arch/sparc/dev/dma_obio.c	dma_obio
213
214attach esp at obio with esp_obio
215file	arch/sparc/dev/esp_obio.c	esp_obio
216
217device	audioamd: audiobus, am7930
218attach	audioamd at mainbus with audioamd_mainbus
219attach	audioamd at obio with audioamd_obio
220attach	audioamd at sbus with audioamd_sbus
221file	arch/sparc/dev/audioamd.c		audioamd
222file	arch/sparc/sparc/amd7930intr.s		audioamd
223
224attach bwtwo at obio with bwtwo_obio
225file	arch/sparc/dev/bwtwo_obio.c	bwtwo_obio & obio
226
227device cgtwo: fb, rasops8
228attach cgtwo at vme
229file	arch/sparc/dev/cgtwo.c		cgtwo needs-flag
230
231attach cgthree at obio with cgthree_obio
232file	arch/sparc/dev/cgthree_obio.c	cgthree_obio & obio
233
234device cgfour: bt_dac, fb, rasops8, pfour
235attach cgfour at obio
236file	arch/sparc/dev/cgfour.c		cgfour needs-flag
237
238attach cgsix at obio with cgsix_obio
239file	arch/sparc/dev/cgsix_obio.c	cgsix_obio & obio
240
241device cgeight: bt_dac, fb, rasops24, pfour
242attach cgeight at obio
243file	arch/sparc/dev/cgeight.c	cgeight needs-flag
244
245device cgfourteen: fb, rasops32
246attach cgfourteen at obio
247file	arch/sparc/dev/cgfourteen.c	cgfourteen needs-flag
248
249# device definition in sys/conf/files
250attach le at obio with le_obio: le24
251file	arch/sparc/dev/if_le_obio.c	le_obio
252
253attach ie at obio with ie_obio
254file	arch/sparc/dev/if_ie_obio.c	ie_obio
255
256attach com at obio with com_obio
257file	arch/sparc/dev/com_obio.c	com_obio
258
259attach com at ebus with com_ebus
260file	arch/sparc/dev/com_ebus.c	com_ebus
261
262device sw: scsi, ncr5380sbc
263attach sw at obio
264file	arch/sparc/dev/sw.c		sw
265
266#
267# Generic Sun stuff
268#
269
270file	dev/cons.c
271file	dev/sun/disksubr.c
272
273file	arch/sparc/fpu/fpu.c
274file	arch/sparc/fpu/fpu_add.c
275file	arch/sparc/fpu/fpu_compare.c
276file	arch/sparc/fpu/fpu_div.c
277file	arch/sparc/fpu/fpu_explode.c
278file	arch/sparc/fpu/fpu_implode.c
279file	arch/sparc/fpu/fpu_mul.c
280file	arch/sparc/fpu/fpu_sqrt.c
281file	arch/sparc/fpu/fpu_subr.c
282
283file	arch/sparc/sparc/autoconf.c
284file	arch/sparc/sparc/cache.c
285file	arch/sparc/sparc/emul.c
286file	arch/sparc/sparc/in_cksum.c
287file	arch/sparc/sparc/intr.c
288file	arch/sparc/sparc/kgdb_machdep.c	kgdb
289# sparc/sparc/locore.s is handled specially in the makefile,
290# because it must come first in the "ld" command line.
291file	arch/sparc/sparc/machdep.c
292file	arch/sparc/sparc/process_machdep.c
293file	arch/sparc/sparc/mem.c
294file	arch/sparc/sparc/promlib.c
295file	arch/sparc/sparc/openfirm.c
296file	arch/sparc/sparc/openprom.c
297file	arch/sparc/sparc/procfs_machdep.c	procfs
298file	arch/sparc/sparc/pmap.c
299# the following overrides the generic "sys_process.c"
300# commented out by deraadt
301file	arch/sparc/sparc/syscall.c
302#file	arch/sparc/sparc/sys_process.c
303file	arch/sparc/sparc/sys_machdep.c
304file	arch/sparc/sparc/trap.c
305file	arch/sparc/sparc/vm_machdep.c
306
307file	arch/sparc/sparc/db_interface.c	ddb | kgdb
308file	arch/sparc/sparc/db_trace.c	ddb
309file	arch/sparc/sparc/db_disasm.c	ddb
310
311
312#
313# Raster Console / WS Console
314#
315include "dev/wscons/files.wscons"	# includes rcons as well
316include "dev/wsfont/files.wsfont"	# both rcons and wscons need it
317
318include "dev/pckbport/files.pckbport"
319
320
321#
322# Compatibility modules
323#
324
325# SVR4 Binary Compatibility (COMPAT_SVR4)
326include "compat/svr4/files.svr4"
327file	arch/sparc/sparc/svr4_sigcode.s	compat_svr4
328file	arch/sparc/sparc/svr4_machdep.c	compat_svr4
329
330# SunOS Binary Compatibility (COMPAT_SUNOS)
331include "compat/sunos/files.sunos"
332file	arch/sparc/sparc/sunos_sigcode.s compat_sunos
333file	arch/sparc/sparc/sunos_machdep.c compat_sunos
334
335# Binary compatibility with previous NetBSD releases (COMPAT_XX)
336# Note: SunOS compatibility also uses some of `compat_13_machdep.c'
337file	arch/sparc/sparc/compat_13_machdep.c	compat_13 | compat_sunos
338
339# Miscellaneous
340file	netns/ns_cksum.c		ns
341
342file	dev/md_root.c			memory_disk_hooks
343
344include "arch/sparc/conf/majors.sparc"
345