files.sparc64 revision 1.34
1#	$NetBSD: files.sparc64,v 1.34 2000/07/26 13:39:39 pk Exp $
2
3# @(#)files.sparc64	8.1 (Berkeley) 7/19/93
4# sparc64-specific configuration info
5
6# maxpartitions must be first item in files.${ARCH}
7maxpartitions 8
8
9maxusers 2 8 1024
10
11#
12# XXXXXXXXXXX
13#
14# These files must be compiled w/no omtimization in 64-bit mode
15#
16
17file net/if_ppp.c		compile-with "${NOOPT_C}"
18file net/if_loop.c		compile-with "${NOOPT_C}"
19file net/if_sl.c		compile-with "${NOOPT_C}"
20file ufs/lfs/lfs_debug.c        compile-with "${NOOPT_C}"
21
22#
23# XXXXXXXXXXX
24#
25
26define mainbus {}
27device mainbus: pcibus, mainbus
28attach mainbus at root
29
30device pcons
31attach pcons at mainbus
32file	arch/sparc64/dev/pcons.c		pcons needs-flag
33
34include "dev/sbus/files.sbus"
35attach sbus at mainbus
36file	arch/sparc64/dev/sbus.c			sbus
37
38device  psycho: pcibus
39attach  psycho at mainbus
40include "dev/pci/files.pci"
41file	arch/sparc64/dev/psycho.c		psycho
42file	arch/sparc64/dev/pci_machdep.c		psycho
43
44# IOMMU is for both
45file	arch/sparc64/dev/iommu.c		sbus | psycho
46
47# can't use ppb for SUNW,simba
48device  simba: pcibus
49attach  simba at pci
50file	arch/sparc64/dev/simba.c		simba
51
52include "dev/ata/files.ata"
53file	arch/sparc64/dev/pciide_machdep.c	pciide
54
55device ebus {[addr = -1]}: pcibus
56attach ebus at pci
57file	arch/sparc64/dev/ebus.c			ebus
58
59# network devices MII bus
60include "dev/mii/files.mii"
61
62device clock: mk48txx
63attach clock at mainbus, sbus with clock_sbus
64attach clock at ebus with clock_ebus
65
66device timer
67attach timer at mainbus, sbus
68
69device eeprom
70attach eeprom at sbus, ebus
71file	arch/sparc64/sparc64/clock.c
72file	dev/clock_subr.c
73
74device power
75attach power at sbus, ebus
76file	arch/sparc64/dev/power.c			power
77
78device cpu
79attach cpu at mainbus
80file	arch/sparc64/sparc64/cpu.c
81
82device zs {channel = -1}
83attach zs at mainbus, sbus
84file	arch/sparc64/dev/zs.c			zs needs-count
85file	dev/ic/z8530sc.c			zs
86
87# siemens SAB82532; found on U5/U10/... for tty ports.
88#device sab {channel = -1}
89#attach sab at ebus
90#file	arch/sparc64/dev/sab_ebus.c		sab
91#file	dev/ic/sab82532.c			sab
92
93# "com" attachments for the kbd/mouse of the U5/U10/...
94#device ucom {}
95#attach ucom at ebus with com
96#file	arch/sparc64/dev/ucom_ebus.c		ucom
97
98# XXX bogus; this is in dev/isa/files.isa.  fix me please!
99# XXX we should attach a `bpp'-style device here rather than
100# `lpt' because the `bpp' driver supports DMA.
101device	lpt
102file	dev/ic/lpt.c				lpt needs-flag
103
104device	auxio
105attach	auxio at ebus with auxio_ebus
106attach	auxio at sbus with auxio_sbus
107file	arch/sparc64/dev/auxio.c		auxio
108
109attach lpt at ebus with lpt_ebus
110file	arch/sparc64/dev/lpt_ebus.c		lpt_ebus
111
112device fdc {}
113attach fdc at mainbus, sbus, ebus
114# attach fdc at ebus
115device fd: disk
116attach fd at fdc
117file	dev/sun/fd.c				fdc | fd needs-flag
118file	arch/sparc64/sparc64/bsd_fdintr.s	fdc
119
120attach	audiocs at ebus with audiocs_ebus
121file	arch/sparc64/dev/cs4231_ebus.c		audiocs_ebus
122
123#
124# Console (zs) related stuff
125#
126
127device zstty: tty
128attach zstty at zs
129file dev/ic/z8530tty.c			zstty needs-flag
130file arch/sparc/dev/zs_kgdb.c		kgdb
131
132#device sabtty: tty
133#attach sabtty at sab
134#file dev/ic/sabtty.c			sabtty needs-flag
135
136define zsevent
137file dev/sun/event.c			zsevent
138
139device kbd: zsevent
140attach kbd at zs with kbd_zs
141#attach kbd at ucom with kbd_ucom
142file dev/sun/kbd_zs.c			kbd_zs
143file dev/sun/kbd.c			kbd needs-flag
144file dev/sun/kbd_tables.c 		kbd
145file arch/sparc64/dev/kd.c 		kbd
146#file arch/sparc64/dev/kbd_ucom.c 	kbd_ucom
147
148device ms: zsevent
149attach ms at zs with ms_zs
150#attach ms at ucom with ms_ucom
151file dev/sun/ms_zs.c			ms_zs
152file dev/sun/ms.c			ms needs-flag
153#file arch/sparc64/dev/ms_ucom.c 	ms_ucom
154
155
156#
157# Machine-independent SCSI drivers
158#
159include "dev/scsipi/files.scsipi"
160
161major	{ cd = 18 }
162major	{ fd = 16 }
163major	{ md = 5 }
164major	{ sd = 7 }
165major	{ wd = 12 }
166
167# RAIDframe
168major 	{ raid = 25 }
169
170# Brooktree DAC attribute
171define bt_dac
172
173device bwtwo
174attach bwtwo at sbus
175file	arch/sparc64/dev/bwtwo.c		bwtwo needs-flag
176
177device cgtwo
178attach cgtwo at sbus
179file	arch/sparc64/dev/cgtwo.c		cgtwo needs-flag
180
181device cgthree: bt_dac
182attach cgthree at sbus
183file	arch/sparc64/dev/cgthree.c	cgthree needs-flag
184
185device cgfour: bt_dac
186attach cgfour at sbus
187file	arch/sparc64/dev/cgfour.c		cgfour needs-flag
188
189device cgsix: bt_dac
190attach cgsix at sbus
191file	arch/sparc64/dev/cgsix.c		cgsix needs-flag
192file	arch/sparc64/dev/cgsix_sbus.c		cgsix needs-flag
193
194device cgeight: bt_dac
195attach cgeight at sbus
196file	arch/sparc64/dev/cgeight.c	cgeight needs-flag
197
198device tcx: bt_dac
199attach tcx at sbus
200file	arch/sparc64/dev/tcx.c		tcx needs-flag
201
202device cgfourteen
203attach cgfourteen at sbus
204file	arch/sparc64/dev/cgfourteen.c	cgfourteen needs-flag
205
206file	arch/sparc64/dev/bt_subr.c	bt_dac
207
208#
209# Generic Sun stuff
210#
211
212file	dev/cons.c
213file	arch/sparc64/dev/fb.c
214file	arch/sparc64/dev/consinit.c
215
216file	arch/sparc/fpu/fpu.c
217file	arch/sparc/fpu/fpu_add.c
218file	arch/sparc/fpu/fpu_compare.c
219file	arch/sparc/fpu/fpu_div.c
220file	arch/sparc/fpu/fpu_explode.c
221file	arch/sparc/fpu/fpu_implode.c
222file	arch/sparc/fpu/fpu_mul.c
223file	arch/sparc/fpu/fpu_sqrt.c
224file	arch/sparc/fpu/fpu_subr.c
225
226# N.B.: optimizer breaks pmap.c and/or cache.c somehow -- have not
227# identified the exact problem yet.  NOOPT_C suffices for now.
228file	arch/sparc64/sparc64/autoconf.c
229file	arch/sparc64/sparc64/cache.c
230file	arch/sparc64/sparc64/conf.c
231file	arch/sparc64/sparc64/emul.c
232file	arch/sparc64/sparc64/in_cksum.c
233file	netinet/in4_cksum.c		inet
234file	arch/sparc64/sparc64/intr.c
235file	arch/sparc64/sparc64/kgdb_machdep.c kgdb
236# sparc/sparc/locore.s is handled specially in the makefile,
237# because it must come first in the "ld" command line.
238file	arch/sparc64/sparc64/locore2.c
239file	arch/sparc64/sparc64/machdep.c
240file	arch/sparc64/sparc64/process_machdep.c
241file	arch/sparc64/sparc64/mem.c
242file	arch/sparc64/sparc64/openprom.c
243file	arch/sparc64/sparc64/openfirm.c
244file	arch/sparc64/sparc64/ofw_machdep.c
245file	arch/sparc64/sparc64/pmap.c
246# the following overrides the generic "sys_process.c"
247# commented out by deraadt
248#file	arch/sparc64/sparc64/sys_process.c
249file	arch/sparc64/sparc64/sys_machdep.c
250file	arch/sparc64/sparc64/trap.c
251file	arch/sparc64/sparc64/vm_machdep.c
252file	arch/sparc64/sparc64/disksubr.c
253
254file	arch/sparc64/sparc64/db_interface.c	ddb | kgdb
255file	arch/sparc64/sparc64/db_trace.c	ddb
256file	arch/sparc64/sparc64/db_disasm.c	ddb
257#file 	ddb/db_aout.c			ddb_aout
258#file	ddb/db_elf.c			ddb
259
260#
261# Raster Console
262#
263include "dev/rcons/files.rcons"
264include "dev/rasops/files.rasops"
265include "dev/wsfont/files.wsfont"
266
267#
268# Compatibility modules
269#
270
271# Binary compatiblity with previous NetBSD releases.
272file	arch/sparc64/sparc64/compat_13_machdep.c compat_13
273
274# NetBSD/sparc 32-bit Binary compatibility (COMPAT_NETBSD32)
275include "compat/netbsd32/files.netbsd32"
276file	arch/sparc64/sparc64/netbsd32_machdep.c	compat_netbsd32
277
278# NetBSD a.out Binary Compatibility (COMPAT_AOUT)
279include "compat/aout/files.aout"
280
281# SVR4 Binary Compatibility (COMPAT_SVR4)
282include "compat/svr4/files.svr4"
283file	arch/sparc64/sparc64/svr4_machdep.c	compat_svr4
284
285# SunOS Binary Compatibility (COMPAT_SUNOS)
286include "compat/sunos/files.sunos"
287file	arch/sparc64/sparc64/sunos_machdep.c	compat_sunos
288
289# Miscellaneous
290file	netns/ns_cksum.c		ns
291
292file	arch/sparc64/dev/md_root.c	memory_disk_hooks
293