files.sparc64 revision 1.74
1#	$OpenBSD: files.sparc64,v 1.74 2006/12/02 15:55:16 miod 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
37device	pcons
38attach	pcons at mainbus
39file	arch/sparc64/dev/pcons.c		pcons needs-flag
40
41# Sun HME Ethernet controllers
42device	hme: ether, ifnet, mii, ifmedia
43file	dev/ic/hme.c			hme
44
45device	uperf
46file	arch/sparc64/dev/uperf.c		uperf needs-flag
47
48# Framebuffer support
49
50file	arch/sparc64/dev/fb.c
51include	"dev/wscons/files.wscons"
52include	"dev/rasops/files.rasops"
53include	"dev/wsfont/files.wsfont"
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, wsemul_sun
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
90file	arch/sparc64/dev/pci_machdep.c		psycho | schizo
91
92attach	hme at pci with hme_pci
93file	dev/pci/if_hme_pci.c			hme_pci
94
95device	vgafb: wsemuldisplaydev, rasops_bswap, rasops8, rasops16, rasops32, wsemul_sun
96attach	vgafb at pci
97file	arch/sparc64/dev/vgafb.c		vgafb
98
99# IOMMU is for both
100file	arch/sparc64/dev/iommu.c		sbus | psycho
101
102device	ebus {[addr = -1]}: pcibus
103attach	ebus at pci
104file	arch/sparc64/dev/ebus.c			ebus
105
106attach	uperf at ebus with uperf_ebus
107file	arch/sparc64/dev/uperf_ebus.c		uperf_ebus
108
109device	clock: mk48txx
110attach	clock at mainbus, sbus with clock_sbus
111attach	clock at ebus with clock_ebus
112attach	clock at fhc with clock_fhc
113
114device	rtc
115attach	rtc at ebus with rtc_ebus
116
117device	timer
118attach	timer at mainbus, sbus
119
120device	eeprom
121attach	eeprom at sbus, ebus
122file	arch/sparc64/sparc64/clock.c
123
124device	cpu
125attach	cpu at mainbus
126file	arch/sparc64/sparc64/cpu.c
127
128device	auxio
129attach	auxio at ebus with auxio_ebus
130attach	auxio at sbus with auxio_sbus
131file	arch/sparc64/dev/auxio.c		auxio
132
133device	beeper
134attach	beeper at ebus
135file	arch/sparc64/dev/beeper.c		beeper
136
137device	beep
138attach	beep at ebus
139file	arch/sparc64/dev/beep.c			beep
140
141device	ppm
142attach	ppm at ebus
143file	arch/sparc64/dev/ppm.c			ppm
144
145device	power
146attach	power at ebus
147file	arch/sparc64/dev/power.c		power
148
149device	sab {}
150attach	sab at ebus
151device	sabtty
152attach	sabtty at sab
153file	arch/sparc64/dev/sab.c			sab | sabtty needs-flag
154
155device	audioce: audio, auconv
156attach	audioce at ebus
157file	arch/sparc64/dev/ce4231.c		audioce
158
159file	arch/sparc64/dev/stp_sbus.c		stp_sbus
160
161#
162# Console related stuff
163#
164
165attach	com at ebus with com_ebus
166file	arch/sparc64/dev/com_ebus.c		com_ebus
167
168attach	pckbc at ebus with pckbc_ebus
169file	arch/sparc64/dev/pckbc_ebus.c		pckbc_ebus
170
171device	comkbd: tty, wskbddev, sunkbd
172attach	comkbd at ebus
173file	arch/sparc64/dev/comkbd_ebus.c		comkbd
174
175attach	lpt at ebus with lpt_ebus
176file	arch/sparc64/dev/lpt_ebus.c		lpt_ebus
177
178device	zs {[channel = -1]}
179attach	zs at sbus with zs_sbus
180attach	zs at fhc with zs_fhc
181file	arch/sparc64/dev/zs.c			zs needs-flag
182file	arch/sparc64/dev/z8530sc.c		zs
183
184define	zstty {}
185device	zstty: tty
186attach	zstty at zs
187file	arch/sparc64/dev/z8530tty.c		zstty needs-flag
188
189device	zskbd: tty, wskbddev, sunkbd
190attach	zskbd at zs
191file	arch/sparc64/dev/z8530kbd.c		zskbd needs-flag
192
193# Floppy drive
194device	fdc {}
195attach	fdc at sbus with fdc_sbus
196attach	fdc at ebus with fdc_ebus
197device	fd: disk
198attach	fd at fdc
199file	arch/sparc64/dev/fd.c			fdc | fd	needs-flag
200
201# PCF8584 I2C Controller
202attach	pcfiic at ebus with pcfiic_ebus
203file	arch/sparc64/dev/pcfiic_ebus.c		pcfiic_ebus
204
205file	arch/sparc64/dev/consinit.c
206
207file	arch/sparc64/fpu/fpu.c
208file	arch/sparc64/fpu/fpu_add.c
209file	arch/sparc64/fpu/fpu_compare.c
210file	arch/sparc64/fpu/fpu_div.c
211file	arch/sparc64/fpu/fpu_explode.c
212file	arch/sparc64/fpu/fpu_implode.c
213file	arch/sparc64/fpu/fpu_mul.c
214file	arch/sparc64/fpu/fpu_sqrt.c
215file	arch/sparc64/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/sparc64/sparc64/autoconf.c
220file	arch/sparc64/sparc64/busop.c
221file	arch/sparc64/sparc64/cache.c
222file	arch/sparc64/sparc64/conf.c
223file	arch/sparc64/sparc64/emul.c
224file	arch/sparc64/sparc64/in_cksum.S		inet
225file	arch/sparc64/sparc64/in4_cksum.c	inet
226file	arch/sparc64/sparc64/intr.c
227file	arch/sparc64/sparc64/kgdb_machdep.c	kgdb
228# sparc64/sparc64/locore.s is handled specially in the makefile,
229# because it must come first in the "ld" command line.
230file	arch/sparc64/sparc64/locore2.c
231file	arch/sparc64/sparc64/machdep.c
232file	arch/sparc64/sparc64/process_machdep.c
233file	arch/sparc64/sparc64/mem.c
234file	arch/sparc64/sparc64/openprom.c
235file	arch/sparc64/sparc64/openfirm.c
236file	arch/sparc64/sparc64/ofw_machdep.c
237file	arch/sparc64/sparc64/pmap.c
238# the following overrides the generic "sys_process.c"
239# commented out by deraadt
240#file	arch/sparc64/sparc64/sys_process.c
241file	arch/sparc64/sparc64/sys_machdep.c
242file	arch/sparc64/sparc64/trap.c
243file	arch/sparc64/sparc64/vm_machdep.c
244file	arch/sparc64/sparc64/disksubr.c
245
246file	arch/sparc64/sparc64/db_interface.c	ddb | kgdb
247file	arch/sparc64/sparc64/db_trace.c	ddb
248file	arch/sparc64/sparc64/db_disasm.c	ddb
249
250file	arch/sparc64/dev/md_root.c	memory_disk_hooks
251
252#
253# Machine-independent SCSI drivers
254#
255include	"../../../scsi/files.scsi"
256major	{sd = 7}
257major	{vnd = 8}
258major	{cd = 18}
259major	{rd = 5}
260
261#
262# Machine-independent I2C drivers
263#
264include "dev/i2c/files.i2c"
265file	arch/sparc64/dev/ofwi2c.c		i2cbus
266
267#
268# Machine-independent USB drivers
269#
270include	"dev/usb/files.usb"
271
272#
273# Machine-dependent I2C drivers
274#
275
276# PCF8591 ADC I2C Sensor (needs ofw, so sparc64 only for now)
277device	pcfadc
278attach	pcfadc at i2c
279file	arch/sparc64/dev/pcf8591_ofw.c		pcfadc
280
281#
282# Machine-independent GPIO drivers
283#
284include "dev/gpio/files.gpio"
285
286#
287# Machine-independent 1-Wire drivers
288#
289include "dev/onewire/files.onewire"
290