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