files.sparc64 revision 1.78
1#	$OpenBSD: files.sparc64,v 1.78 2007/03/30 22:24:56 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
12file	arch/sparc64/dev/upa.c			upa
13
14define	upa {}
15device	upa
16attach	upa at mainbus
17
18define	central {}
19device	central
20attach	central at mainbus
21file	arch/sparc64/dev/central.c		central
22
23define	fhc {}
24device	fhc
25file	arch/sparc64/dev/fhc.c			fhc
26
27attach	fhc at central with fhc_central
28file	arch/sparc64/dev/fhc_central.c		fhc_central
29
30attach	fhc at mainbus with fhc_mainbus
31file	arch/sparc64/dev/fhc_mainbus.c		fhc_mainbus
32
33device	clkbrd
34attach	clkbrd at fhc
35file	arch/sparc64/dev/clkbrd.c		clkbrd
36
37# Sun HME Ethernet controllers
38device	hme: ether, ifnet, mii, ifmedia
39file	dev/ic/hme.c			hme
40
41device	uperf
42file	arch/sparc64/dev/uperf.c		uperf needs-flag
43
44# Framebuffer support
45
46file	arch/sparc64/dev/fb.c
47include	"dev/wscons/files.wscons"
48include	"dev/rasops/files.rasops"
49include	"dev/wsfont/files.wsfont"
50
51device	pcons: wsemuldisplaydev
52attach	pcons at mainbus
53file	arch/sparc64/dev/pcons.c		pcons needs-flag
54
55include	"dev/sbus/files.sbus"
56include	"dev/i2o/files.i2o"
57include	"dev/mii/files.mii"
58include	"dev/atapiscsi/files.atapiscsi"
59include	"dev/ata/files.ata"
60include	"dev/pckbc/files.pckbc"
61include	"dev/pcmcia/files.pcmcia"
62
63# COMPAT_NETBSD
64include	"compat/netbsd/files.netbsd"
65file	arch/sparc64/sparc64/netbsd_machdep.c	compat_netbsd
66
67# Sun specific files
68include	"../../../dev/sun/files.sun"
69
70attach	sbus at mainbus with sbus_mb
71attach	sbus at xbox with sbus_xbox
72file	arch/sparc64/dev/sbus.c			sbus
73
74device	creator: wsemuldisplaydev, rasops32
75attach	creator at mainbus, upa
76file	arch/sparc64/dev/creator.c		creator
77
78include	"dev/pci/files.pci"
79major	{wd = 12}
80
81include	"dev/puc/files.puc"
82
83device	psycho: pcibus
84attach	psycho at mainbus
85file	arch/sparc64/dev/psycho.c		psycho
86
87device	schizo: pcibus
88attach	schizo at mainbus
89file	arch/sparc64/dev/schizo.c		schizo
90
91device	pyro: pcibus
92attach	pyro at mainbus
93file	arch/sparc64/dev/pyro.c			pyro
94
95file	arch/sparc64/dev/pci_machdep.c		psycho | schizo | pyro
96
97attach	hme at pci with hme_pci
98file	dev/pci/if_hme_pci.c			hme_pci
99
100device	vgafb: wsemuldisplaydev, rasops_bswap, rasops8, rasops16, rasops32
101attach	vgafb at pci
102file	arch/sparc64/dev/vgafb.c		vgafb
103
104# IOMMU is for both
105file	arch/sparc64/dev/iommu.c		sbus | psycho
106
107device	ebus {[addr = -1]}: pcibus
108attach	ebus at pci
109file	arch/sparc64/dev/ebus.c			ebus
110
111attach	uperf at ebus with uperf_ebus
112file	arch/sparc64/dev/uperf_ebus.c		uperf_ebus
113
114device	clock: mk48txx
115attach	clock at mainbus, sbus with clock_sbus
116attach	clock at ebus with clock_ebus
117attach	clock at fhc with clock_fhc
118
119device	rtc
120attach	rtc at ebus with rtc_ebus
121
122device	timer
123attach	timer at mainbus, sbus
124
125device	eeprom
126attach	eeprom at sbus, ebus
127file	arch/sparc64/sparc64/clock.c
128
129device	cpu
130attach	cpu at mainbus
131file	arch/sparc64/sparc64/cpu.c
132
133device	auxio
134attach	auxio at ebus with auxio_ebus
135attach	auxio at sbus with auxio_sbus
136file	arch/sparc64/dev/auxio.c		auxio
137
138device	beeper
139attach	beeper at ebus
140file	arch/sparc64/dev/beeper.c		beeper
141
142device	beep
143attach	beep at ebus
144file	arch/sparc64/dev/beep.c			beep
145
146device	ppm
147attach	ppm at ebus
148file	arch/sparc64/dev/ppm.c			ppm
149
150device	power
151attach	power at ebus
152file	arch/sparc64/dev/power.c		power
153
154device	sab {}
155attach	sab at ebus
156device	sabtty
157attach	sabtty at sab
158file	arch/sparc64/dev/sab.c			sab | sabtty needs-flag
159
160device	audioce: audio, auconv
161attach	audioce at ebus
162file	arch/sparc64/dev/ce4231.c		audioce
163
164file	arch/sparc64/dev/stp_sbus.c		stp_sbus
165
166#
167# Console related stuff
168#
169
170attach	com at ebus with com_ebus
171file	arch/sparc64/dev/com_ebus.c		com_ebus
172
173attach	pckbc at ebus with pckbc_ebus
174file	arch/sparc64/dev/pckbc_ebus.c		pckbc_ebus
175
176device	comkbd: tty, wskbddev, sunkbd
177attach	comkbd at ebus
178file	arch/sparc64/dev/comkbd_ebus.c		comkbd
179
180attach	lpt at ebus with lpt_ebus
181file	arch/sparc64/dev/lpt_ebus.c		lpt_ebus
182
183device	zs {[channel = -1]}
184attach	zs at sbus with zs_sbus
185attach	zs at fhc with zs_fhc
186file	arch/sparc64/dev/zs.c			zs needs-flag
187file	arch/sparc64/dev/z8530sc.c		zs
188
189define	zstty {}
190device	zstty: tty
191attach	zstty at zs
192file	arch/sparc64/dev/z8530tty.c		zstty needs-flag
193
194device	zskbd: tty, wskbddev, sunkbd
195attach	zskbd at zs
196file	arch/sparc64/dev/z8530kbd.c		zskbd needs-flag
197
198# Floppy drive
199device	fdc {}
200attach	fdc at sbus with fdc_sbus
201attach	fdc at ebus with fdc_ebus
202device	fd: disk
203attach	fd at fdc
204file	arch/sparc64/dev/fd.c			fdc | fd	needs-flag
205
206# PCF8584 I2C Controller
207attach	pcfiic at ebus with pcfiic_ebus
208file	arch/sparc64/dev/pcfiic_ebus.c		pcfiic_ebus
209
210file	arch/sparc64/dev/consinit.c
211
212file	arch/sparc64/fpu/fpu.c
213file	arch/sparc64/fpu/fpu_add.c
214file	arch/sparc64/fpu/fpu_compare.c
215file	arch/sparc64/fpu/fpu_div.c
216file	arch/sparc64/fpu/fpu_explode.c
217file	arch/sparc64/fpu/fpu_implode.c
218file	arch/sparc64/fpu/fpu_mul.c
219file	arch/sparc64/fpu/fpu_sqrt.c
220file	arch/sparc64/fpu/fpu_subr.c
221
222# N.B.: optimizer breaks pmap.c and/or cache.c somehow -- have not
223# identified the exact problem yet.  NOOPT_C suffices for now.
224file	arch/sparc64/sparc64/autoconf.c
225file	arch/sparc64/sparc64/busop.c
226file	arch/sparc64/sparc64/cache.c
227file	arch/sparc64/sparc64/conf.c
228file	arch/sparc64/sparc64/disksubr.c
229file	arch/sparc64/sparc64/emul.c
230file	arch/sparc64/sparc64/in_cksum.S		inet
231file	arch/sparc64/sparc64/in4_cksum.c	inet
232file	arch/sparc64/sparc64/intr.c
233file	arch/sparc64/sparc64/kgdb_machdep.c	kgdb
234# sparc64/sparc64/locore.s is handled specially in the makefile,
235# because it must come first in the "ld" command line.
236file	arch/sparc64/sparc64/locore2.c
237file	arch/sparc64/sparc64/machdep.c
238file	arch/sparc64/sparc64/mem.c
239file	arch/sparc64/sparc64/mutex.c
240file	arch/sparc64/sparc64/openprom.c
241file	arch/sparc64/sparc64/openfirm.c
242file	arch/sparc64/sparc64/ofw_machdep.c
243file	arch/sparc64/sparc64/pmap.c
244file	arch/sparc64/sparc64/process_machdep.c
245# the following overrides the generic "sys_process.c"
246# commented out by deraadt
247#file	arch/sparc64/sparc64/sys_process.c
248file	arch/sparc64/sparc64/sys_machdep.c
249file	arch/sparc64/sparc64/trap.c
250file	arch/sparc64/sparc64/vm_machdep.c
251
252file	arch/sparc64/sparc64/db_interface.c	ddb | kgdb
253file	arch/sparc64/sparc64/db_trace.c	ddb
254file	arch/sparc64/sparc64/db_disasm.c	ddb
255
256file	arch/sparc64/dev/md_root.c	memory_disk_hooks
257
258#
259# Machine-independent SCSI drivers
260#
261include	"../../../scsi/files.scsi"
262major	{sd = 7}
263major	{vnd = 8}
264major	{cd = 18}
265major	{rd = 5}
266
267#
268# Machine-independent I2C drivers
269#
270include "dev/i2c/files.i2c"
271file	arch/sparc64/dev/ofwi2c.c		i2cbus
272
273#
274# Machine-independent USB drivers
275#
276include	"dev/usb/files.usb"
277
278#
279# Machine-dependent I2C drivers
280#
281
282# PCF8591 ADC I2C Sensor (needs ofw, so sparc64 only for now)
283device	pcfadc
284attach	pcfadc at i2c
285file	arch/sparc64/dev/pcf8591_ofw.c		pcfadc
286
287#
288# Machine-independent GPIO drivers
289#
290include "dev/gpio/files.gpio"
291
292#
293# Machine-independent 1-Wire drivers
294#
295include "dev/onewire/files.onewire"
296