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