files.sparc64 revision 1.50 1 # $NetBSD: files.sparc64,v 1.50 2001/08/10 20:53:50 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}
7 maxpartitions 8
8
9 maxusers 2 8 1024
10
11 #
12 # XXXXXXXXXXX
13 #
14 # These files must be compiled w/no omtimization in 64-bit mode
15 #
16
17 file net/if_ppp.c compile-with "${NOOPT_C}"
18 file net/if_loop.c compile-with "${NOOPT_C}"
19 file net/if_sl.c compile-with "${NOOPT_C}"
20 file ufs/lfs/lfs_debug.c compile-with "${NOOPT_C}"
21
22 #
23 # XXXXXXXXXXX
24 #
25
26 define mainbus {}
27 device mainbus: pcibus, mainbus
28 attach mainbus at root
29
30 device pcons
31 attach pcons at mainbus
32 file arch/sparc64/dev/pcons.c pcons needs-flag
33
34 include "dev/sun/files.sun"
35 include "dev/i2o/files.i2o"
36
37 include "dev/sbus/files.sbus"
38 attach sbus at mainbus
39 file arch/sparc64/dev/sbus.c sbus
40
41 device psycho: pcibus
42 attach psycho at mainbus
43 include "dev/pci/files.pci"
44 file arch/sparc64/dev/psycho.c psycho
45 file arch/sparc64/dev/pci_machdep.c psycho
46
47 # IOMMU is for both
48 file arch/sparc64/dev/iommu.c sbus | psycho
49
50 # can't use ppb for SUNW,simba
51 device simba: pcibus
52 attach simba at pci
53 file arch/sparc64/dev/simba.c simba
54
55 include "dev/ata/files.ata"
56
57 device ebus {[addr = -1]}: pcibus
58 attach ebus at pci
59 file arch/sparc64/dev/ebus.c ebus
60
61 # network devices MII bus
62 include "dev/mii/files.mii"
63
64 device clock: mk48txx
65 attach clock at mainbus, sbus with clock_sbus
66 attach clock at ebus with clock_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
226 #
227 include "dev/rcons/files.rcons"
228 include "dev/wsfont/files.wsfont"
229
230 # USB Support
231 include "dev/usb/files.usb"
232 # IEEE1394 Support
233 include "dev/ieee1394/files.ieee1394"
234
235 #
236 # Compatibility modules
237 #
238
239 # Binary compatiblity with previous NetBSD releases.
240 file arch/sparc64/sparc64/compat_13_machdep.c compat_13
241
242 # NetBSD/sparc 32-bit Binary compatibility (COMPAT_NETBSD32)
243 include "compat/netbsd32/files.netbsd32"
244 file arch/sparc64/sparc64/netbsd32_machdep.c compat_netbsd32
245 file arch/sparc64/sparc64/netbsd32_sigcode.s compat_netbsd32
246
247 # NetBSD a.out Binary Compatibility (COMPAT_AOUT)
248 include "compat/aout/files.aout"
249
250 # SVR4 Binary Compatibility (COMPAT_SVR4)
251 include "compat/svr4/files.svr4"
252 file arch/sparc64/sparc64/svr4_machdep.c compat_svr4
253 file arch/sparc64/sparc64/svr4_sigcode64.s compat_svr4 & _lp64
254
255 # 32-bit SVR4 Binary Compatibility (COMPAT_SVR4_32)
256 include "compat/svr4_32/files.svr4_32"
257 file arch/sparc64/sparc64/svr4_32_machdep.c compat_svr4_32
258 file arch/sparc64/sparc64/svr4_32_sigcode.s compat_svr4_32 | (compat_svr4 & !_lp64)
259
260 # SunOS Binary Compatibility (COMPAT_SUNOS), 32-bit & 64-bit kernel
261 # (64-bit also depends on COMPAT_NETBSD32)
262 include "compat/sunos/files.sunos"
263 file arch/sparc64/sparc64/sunos_sigcode.s compat_sunos
264 file arch/sparc64/sparc64/sunos_machdep.c compat_sunos & !compat_netbsd32
265 include "compat/sunos32/files.sunos32"
266 file arch/sparc64/sparc64/sunos32_machdep.c compat_sunos & compat_netbsd32
267
268 # Miscellaneous
269 file netns/ns_cksum.c ns
270
271 file arch/sparc64/dev/md_root.c memory_disk_hooks
272