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