files.sparc64 revision 1.114
1#	$OpenBSD: files.sparc64,v 1.114 2009/01/04 17:24:06 kettenis Exp $
2#	$NetBSD: files.sparc64,v 1.50 2001/08/10 20:53:50 eeh Exp $
3
4# maxpartitions must be first item in files.${ARCH}
5maxpartitions 16
6
7maxusers 2 8 1024
8
9define	mainbus {}
10device	mainbus: pcibus, mainbus
11attach	mainbus at root
12
13device	ssm: mainbus
14attach	ssm at mainbus
15file	arch/sparc64/dev/ssm.c			ssm
16
17define	upa {}
18device	upa
19attach	upa at mainbus
20file	arch/sparc64/dev/upa.c			upa
21
22define	central {}
23device	central
24attach	central at mainbus
25file	arch/sparc64/dev/central.c		central
26
27define	fhc {}
28device	fhc
29file	arch/sparc64/dev/fhc.c			fhc
30
31attach	fhc at central with fhc_central
32file	arch/sparc64/dev/fhc_central.c		fhc_central
33
34attach	fhc at mainbus with fhc_mainbus
35file	arch/sparc64/dev/fhc_mainbus.c		fhc_mainbus
36
37device	clkbrd
38attach	clkbrd at fhc
39file	arch/sparc64/dev/clkbrd.c		clkbrd
40
41device	environ
42attach	environ at fhc
43file	arch/sparc64/dev/environ.c		environ
44
45device	vbus {}
46attach	vbus at mainbus
47file	arch/sparc64/dev/vbus.c			vbus
48
49device	cbus {}
50attach	cbus at vbus
51file	arch/sparc64/dev/cbus.c			cbus
52
53# Sun HME Ethernet controllers
54device	hme: ether, ifnet, mii, ifmedia
55file	dev/ic/hme.c			hme
56
57device	uperf
58file	arch/sparc64/dev/uperf.c		uperf needs-flag
59
60# Framebuffer support
61
62file	arch/sparc64/dev/fb.c
63include	"dev/wscons/files.wscons"
64include	"dev/rasops/files.rasops"
65include	"dev/wsfont/files.wsfont"
66
67device	pcons: wsemuldisplaydev
68attach	pcons at mainbus
69file	arch/sparc64/dev/pcons.c		pcons needs-flag
70
71device	prtc
72attach	prtc at mainbus
73file	arch/sparc64/dev/prtc.c			prtc
74
75include	"dev/sbus/files.sbus"
76include	"dev/i2o/files.i2o"
77include	"dev/mii/files.mii"
78include	"dev/atapiscsi/files.atapiscsi"
79include	"dev/ata/files.ata"
80include	"dev/pckbc/files.pckbc"
81include	"dev/pcmcia/files.pcmcia"
82
83# Sun specific files
84include	"../../../dev/sun/files.sun"
85
86attach	sbus at mainbus with sbus_mb
87attach	sbus at xbox with sbus_xbox
88file	arch/sparc64/dev/sbus.c			sbus
89
90device	creator: wsemuldisplaydev, rasops32
91attach	creator at mainbus, upa
92file	arch/sparc64/dev/creator.c		creator
93
94include	"dev/pci/files.pci"
95major	{wd = 12}
96
97include	"dev/puc/files.puc"
98
99device	psycho: pcibus
100attach	psycho at mainbus
101file	arch/sparc64/dev/psycho.c		psycho
102
103device	schizo: pcibus
104attach	schizo at mainbus
105file	arch/sparc64/dev/schizo.c		schizo
106
107device	pyro: pcibus
108attach	pyro at mainbus
109file	arch/sparc64/dev/pyro.c			pyro
110
111device	vpci: pcibus
112attach	vpci at mainbus
113file	arch/sparc64/dev/vpci.c			vpci
114
115file	arch/sparc64/dev/pci_machdep.c		psycho | schizo | pyro | vpci
116
117attach	hme at pci with hme_pci
118file	dev/pci/if_hme_pci.c			hme_pci
119
120define	ifb_ident
121file	arch/sparc64/dev/ifb_ident.c		ifb_ident
122
123device	vgafb: ifb_ident, wsemuldisplaydev, rasops_bswap, rasops8, rasops16, rasops32
124attach	vgafb at pci
125file	arch/sparc64/dev/vgafb.c		vgafb
126
127device	ifb: ifb_ident, wsemuldisplaydev, rasops_bswap, rasops8
128attach	ifb at pci
129file	arch/sparc64/dev/ifb.c			ifb
130
131device	sbbc
132attach	sbbc at pci
133file	arch/sparc64/dev/sbbc.c			sbbc needs-flag
134
135# IOMMU is for both sbus and pci
136file	arch/sparc64/dev/iommu.c		sbus | psycho | schizo | pyro | vpci
137file	arch/sparc64/dev/viommu.c		vpci
138
139# Starfire PC is needed for sbus and pci
140file	arch/sparc64/dev/starfire.c		sbus | psycho
141
142device	ebus {[addr = -1]}: pcibus
143attach	ebus at pci
144attach	ebus at mainbus with ebus_mainbus
145file	arch/sparc64/dev/ebus.c			ebus
146file	arch/sparc64/dev/ebus_mainbus.c		ebus_mainbus
147
148attach	uperf at ebus with uperf_ebus
149file	arch/sparc64/dev/uperf_ebus.c		uperf_ebus
150
151device	clock: mk48txx
152attach	clock at mainbus, sbus with clock_sbus
153attach	clock at ebus with clock_ebus
154attach	clock at fhc with clock_fhc
155
156device	timer
157attach	timer at mainbus, sbus
158
159device	eeprom
160attach	eeprom at sbus, ebus
161file	arch/sparc64/sparc64/clock.c
162
163device	cmp {}
164attach	cmp at mainbus
165file	arch/sparc64/dev/cmp.c			cmp
166
167device	core {}
168attach	core at cmp
169file	arch/sparc64/dev/core.c			core
170
171device	cpu
172attach	cpu at mainbus, cmp, core
173file	arch/sparc64/sparc64/cpu.c
174
175device	auxio
176attach	auxio at ebus with auxio_ebus
177attach	auxio at sbus with auxio_sbus
178file	arch/sparc64/dev/auxio.c		auxio
179
180device	bbc
181attach	bbc at ebus
182file	arch/sparc64/dev/bbc.c			bbc
183
184device	beeper
185attach	beeper at ebus
186file	arch/sparc64/dev/beeper.c		beeper
187
188device	beep
189attach	beep at ebus
190file	arch/sparc64/dev/beep.c			beep
191
192device	led
193attach	led at ebus
194file	arch/sparc64/dev/led.c			led
195
196device	pmc
197attach	pmc at ebus
198file	arch/sparc64/dev/pmc.c			pmc
199
200device	ppm
201attach	ppm at ebus
202file	arch/sparc64/dev/ppm.c			ppm
203
204device	power
205attach	power at ebus
206file	arch/sparc64/dev/power.c		power
207
208device	rtc
209attach	rtc at ebus
210file	arch/sparc64/dev/rtc.c			rtc
211
212device	sab {}
213attach	sab at ebus
214device	sabtty
215attach	sabtty at sab
216file	arch/sparc64/dev/sab.c			sab | sabtty needs-flag
217
218device	audioce: audio, auconv
219attach	audioce at ebus
220file	arch/sparc64/dev/ce4231.c		audioce
221
222file	arch/sparc64/dev/stp_sbus.c		stp_sbus
223
224#
225# Console related stuff
226#
227
228attach	com at ebus with com_ebus
229file	arch/sparc64/dev/com_ebus.c		com_ebus
230
231attach	pckbc at ebus with pckbc_ebus
232file	arch/sparc64/dev/pckbc_ebus.c		pckbc_ebus
233
234device	comkbd: tty, wskbddev, sunkbd
235attach	comkbd at ebus
236file	arch/sparc64/dev/comkbd_ebus.c		comkbd
237
238attach	lpt at ebus with lpt_ebus
239file	arch/sparc64/dev/lpt_ebus.c		lpt_ebus
240
241device	zs {[channel = -1]}
242attach	zs at sbus with zs_sbus
243attach	zs at fhc with zs_fhc
244file	arch/sparc64/dev/zs.c			zs needs-flag
245file	arch/sparc64/dev/z8530sc.c		zs
246
247define	zstty {}
248device	zstty: tty
249attach	zstty at zs
250file	arch/sparc64/dev/z8530tty.c		zstty needs-flag
251
252device	zskbd: tty, wskbddev, sunkbd
253attach	zskbd at zs
254file	arch/sparc64/dev/z8530kbd.c		zskbd needs-flag
255
256# Floppy drive
257device	fdc {}
258attach	fdc at sbus with fdc_sbus
259attach	fdc at ebus with fdc_ebus
260device	fd: disk
261attach	fd at fdc
262file	arch/sparc64/dev/fd.c			fdc | fd	needs-flag
263
264# PCF8584 I2C Controller
265attach	pcfiic at ebus with pcfiic_ebus
266file	arch/sparc64/dev/pcfiic_ebus.c		pcfiic_ebus
267
268file	arch/sparc64/dev/consinit.c
269
270file	arch/sparc64/fpu/fpu.c
271file	arch/sparc64/fpu/fpu_add.c
272file	arch/sparc64/fpu/fpu_compare.c
273file	arch/sparc64/fpu/fpu_div.c
274file	arch/sparc64/fpu/fpu_explode.c
275file	arch/sparc64/fpu/fpu_implode.c
276file	arch/sparc64/fpu/fpu_mul.c
277file	arch/sparc64/fpu/fpu_sqrt.c
278file	arch/sparc64/fpu/fpu_subr.c
279
280file	arch/sparc64/sparc64/autoconf.c
281file	arch/sparc64/sparc64/busop.c
282file	arch/sparc64/sparc64/cache.c
283file	arch/sparc64/sparc64/conf.c
284file	arch/sparc64/sparc64/disksubr.c
285file	arch/sparc64/sparc64/emul.c
286file	arch/sparc64/sparc64/hvcall.S		sun4v
287file	arch/sparc64/sparc64/in_cksum.S		inet
288file	arch/sparc64/sparc64/in4_cksum.c	inet
289file	arch/sparc64/sparc64/intr.c
290file	arch/sparc64/sparc64/ipifuncs.c		multiprocessor
291file	arch/sparc64/sparc64/kgdb_machdep.c	kgdb
292# sparc64/sparc64/locore.s is handled specially in the makefile,
293# because it must come first in the "ld" command line.
294file	arch/sparc64/sparc64/lock_machdep.c	multiprocessor
295file	arch/sparc64/sparc64/machdep.c
296file	arch/sparc64/sparc64/mem.c
297file	arch/sparc64/sparc64/mutex.S
298file	arch/sparc64/sparc64/openprom.c
299file	arch/sparc64/sparc64/openfirm.c
300file	arch/sparc64/sparc64/ofw_machdep.c
301file	arch/sparc64/sparc64/pmap.c
302file	arch/sparc64/sparc64/process_machdep.c
303file	arch/sparc64/sparc64/sys_machdep.c
304file	arch/sparc64/sparc64/trap.c
305file	arch/sparc64/sparc64/vm_machdep.c
306
307file	arch/sparc64/sparc64/db_interface.c	ddb | kgdb
308file	arch/sparc64/sparc64/db_trace.c		ddb
309file	arch/sparc64/sparc64/db_disasm.c	ddb
310
311file	arch/sparc64/dev/md_root.c	memory_disk_hooks
312
313#
314# Machine-independent SCSI drivers
315#
316include	"../../../scsi/files.scsi"
317major	{sd = 7}
318major	{vnd = 8}
319major	{cd = 18}
320major	{rd = 5}
321
322#
323# Machine-independent I2C drivers
324#
325include "dev/i2c/files.i2c"
326file	arch/sparc64/dev/ofwi2c.c		i2cbus
327
328#
329# Machine-independent USB drivers
330#
331include	"dev/usb/files.usb"
332
333#
334# Bluetooth
335#
336include "dev/bluetooth/files.bluetooth"
337
338#
339# Cardbus
340#
341include "dev/cardbus/files.cardbus"
342file	arch/sparc64/sparc64/rbus_machdep.c	cardbus
343
344#
345# Machine-dependent I2C drivers
346#
347
348# PCF8591 ADC I2C Sensor (needs ofw, so sparc64 only for now)
349device	pcfadc
350attach	pcfadc at i2c
351file	arch/sparc64/dev/pcf8591_ofw.c		pcfadc
352
353# PCF8591 ADC I2C Sensor (envctrl, so sparc64 only)
354device	ecadc
355attach	ecadc at i2c
356file	arch/sparc64/dev/pcf8591_envctrl.c	ecadc
357
358# TDA8444 (sparc64 only for now)
359device	tda
360attach	tda at i2c
361file	arch/sparc64/dev/tda.c			tda needs-flag
362
363#
364# Machine-independent GPIO drivers
365#
366include "dev/gpio/files.gpio"
367
368#
369# Machine-independent 1-Wire drivers
370#
371include "dev/onewire/files.onewire"
372
373# Virtual console
374device	vcons
375attach	vcons at vbus
376file	arch/sparc64/dev/vcons.c		vcons needs-flag
377
378# Virtual random number generator
379device	vrng
380attach	vrng at vbus
381file	arch/sparc64/dev/vrng.c			vrng
382
383# Virtual rtc
384device	vrtc
385attach	vrtc at vbus
386file	arch/sparc64/dev/vrtc.c			vrtc
387
388# Virtual network
389device	vnet
390attach	vnet at cbus
391file	arch/sparc64/dev/vnet.c			vnet
392
393device	mgiic: i2cbus
394attach	mgiic at mainbus
395file	arch/sparc64/dev/mgiic.c		mgiic
396