1 # $NetBSD: files.sparc,v 1.147 2008/11/19 18:36:00 ad Exp $
3 # @(#)files.sparc 8.1 (Berkeley) 7/19/93
4 # sparc-specific configuration info
6 defflag opt_sparc_arch.h SUN4
7 defflag opt_sparc_arch.h SUN4_MMU3L
8 defflag opt_sparc_arch.h SUN4C
9 defflag opt_sparc_arch.h SUN4M
10 defflag opt_sparc_arch.h SUN4D
11 defflag opt_sparc_arch.h SUN4U
12 defflag opt_sparc_arch.h MSIIEP
14 # maxpartitions must be first item in files.${ARCH}
20 attach mainbus at root
23 attach msiiep at mainbus
25 include "dev/i2o/files.i2o"
26 include "dev/pci/files.pci"
27 device mspcic {}: pcibus
28 attach mspcic at msiiep
29 file arch/sparc/sparc/msiiep.c msiiep | mspcic
30 file arch/sparc/sparc/pci_machdep.c msiiep | mspcic
32 device ebus {[addr = -1]}
34 file arch/sparc/dev/ebus.c ebus
37 attach rtc at ebus with rtc_ebus
38 file arch/sparc/dev/rtc.c rtc_ebus
41 attach iommu at mainbus
42 file arch/sparc/sparc/iommu.c iommu
44 device obio { [addr = -1], [level = -1] }
45 attach obio at mainbus
48 attach cpuunit at mainbus
49 file arch/sparc/sparc/cpuunit.c cpuunit
51 device bootbus { [slot = -1], [offset = -1] }
52 attach bootbus at cpuunit
53 file arch/sparc/dev/bootbus.c bootbus
55 include "dev/vme/files.vme"
56 device sparcvme: vmebus
57 attach sparcvme at mainbus with vme_mainbus
58 attach sparcvme at iommu with vme_iommu
60 file arch/sparc/dev/obio.c obio
61 file arch/sparc/dev/vme_machdep.c sparcvme
64 attach auxreg at mainbus with auxreg_mainbus
65 attach auxreg at obio with auxreg_obio
66 file arch/sparc/sparc/auxreg.c
71 attach auxiotwo at obio with auxiotwo_obio
72 file arch/sparc/sparc/auxiotwo.c
75 attach clock at mainbus with clock_mainbus
76 attach clock at obio with clock_obio
77 attach clock at bootbus with clock_bootbus
78 file arch/sparc/sparc/mkclock.c clock
80 device oclock: intersil7170
82 file arch/sparc/sparc/oclock.c oclock
85 attach timer at mainbus with timer_mainbus
86 attach timer at obio with timer_obio
87 attach timer at msiiep with timer_msiiep
88 file arch/sparc/sparc/timer.c timer & !msiiep
89 file arch/sparc/sparc/timer_sun4.c timer & (sun4 | sun4c)
90 file arch/sparc/sparc/timer_sun4m.c timer & sun4m & !msiiep
91 file arch/sparc/sparc/timer_msiiep.c timer & msiiep
95 file arch/sparc/sparc/eeprom.c eeprom
97 file arch/sparc/sparc/clock.c
101 file arch/sparc/dev/power.c power needs-flag
104 attach cpu at mainbus with cpu_mainbus
105 attach cpu at cpuunit with cpu_cpuunit
106 file arch/sparc/sparc/cpu.c
109 attach clkctrl at obio
110 file arch/sparc/sparc/clkctrl.c clkctrl
113 attach memreg at mainbus with memreg_mainbus
114 attach memreg at obio with memreg_obio
115 file arch/sparc/sparc/memreg.c
118 attach eccmemctl at mainbus
119 file arch/sparc/sparc/memecc.c eccmemctl
121 device tctrl: sysmon_envsys, sysmon_power, sysmon_taskq
123 file arch/sparc/dev/tctrl.c tctrl needs-flag
125 include "dev/sun/files.sun"
127 device zs { [channel = -1] }
128 attach zs at mainbus with zs_mainbus
129 attach zs at obio with zs_obio
130 attach zs at bootbus with zs_bootbus
131 file arch/sparc/dev/zs.c zs
132 file dev/ic/z8530sc.c zs
136 file dev/ic/z8530tty.c zstty
137 file arch/sparc/dev/zs_kgdb.c kgdb
140 attach fdc at mainbus with fdc_mainbus
141 attach fdc at obio with fdc_obio
144 file arch/sparc/dev/fd.c fdc | fd needs-flag
145 file arch/sparc/sparc/bsd_fdintr.s fdc
147 include "dev/sbus/files.sbus"
148 attach sbus at mainbus with sbus_mainbus
149 attach sbus at iommu with sbus_iommu
150 file arch/sparc/dev/sbus.c sbus needs-flag
152 attach audiocs at ebus with audiocs_ebus
153 file dev/ebus/cs4231_ebus.c audiocs_ebus
155 device tslot: pcmciabus
157 file arch/sparc/dev/ts102.c tslot
160 include "dev/pcmcia/files.pcmcia"
161 include "dev/ata/files.ata"
164 # Console related stuff
167 file arch/sparc/dev/kd.c # console
169 attach pckbc at obio with pckbc_obio: pckbport_machdep_cnattach
170 attach pckbc at ebus with pckbc_ebus: pckbport_machdep_cnattach
171 file arch/sparc/dev/pckbc_js.c pckbc_obio | pckbc_ebus
174 # sun keyboard at a serial port
175 attach kbd at zs with kbd_zs
176 file dev/sun/kbd_zs.c kbd_zs # kbd lower layer
178 # sun keyboard at a tty line discipline
179 # only used by sparc64, but we can test-compile it here
180 attach kbd at zstty with kbd_tty
181 file dev/sun/sunkbd.c kbd_tty # kbd lower layer
184 # shared middle layer for serial keyboard
185 file dev/sun/kbdsun.c kbd_zs | kbd_tty # kbd middle layer
187 # PC/AT keyboard at 8042 (pckbc) for Mr.Coffee
188 attach kbd at pckbport with kbd_pckbport
189 file arch/sparc/dev/kbd_pckbport.c kbd_pckbport # kbd mid/lower layers
192 # sun (mouse systems) mouse at a serial port
193 attach ms at zs with ms_zs
194 file dev/sun/ms_zs.c ms_zs # mouse lower layer
196 # sun (mouse systems) mouse at a tty line discipline
197 # only used by sparc64, but we can test-compile it here
198 attach ms at zstty with ms_tty
199 file dev/sun/sunms.c ms_tty # mouse lower layer
201 # XXX: middle layer for sun (mouse systems) serial mice consists of
202 # just one function in dev/sun/ms.c (upper layer). Split it out?
204 # PS/2 mouse at 8042 (pckbc) for Mr.Coffee
205 attach ms at pckbport with ms_pckbport
206 file arch/sparc/dev/ms_pckbport.c ms_pckbport # lower/middle layers
210 # Machine-independent SCSI drivers
212 include "dev/scsipi/files.scsipi"
214 attach dma at obio with dma_obio
215 file arch/sparc/dev/dma_obio.c dma_obio
217 attach esp at obio with esp_obio
218 file arch/sparc/dev/esp_obio.c esp_obio
220 device audioamd: audiobus, am7930
221 attach audioamd at mainbus with audioamd_mainbus
222 attach audioamd at obio with audioamd_obio
223 attach audioamd at sbus with audioamd_sbus
224 file arch/sparc/dev/audioamd.c audioamd
225 file arch/sparc/sparc/amd7930intr.s audioamd
227 attach bwtwo at obio with bwtwo_obio
228 file arch/sparc/dev/bwtwo_obio.c bwtwo_obio & obio
230 device cgtwo: fb, rasops8
232 file arch/sparc/dev/cgtwo.c cgtwo needs-flag
234 device cgfour: bt_dac, fb, rasops8, pfour
235 attach cgfour at obio
236 file arch/sparc/dev/cgfour.c cgfour needs-flag
238 attach cgsix at obio with cgsix_obio
239 file arch/sparc/dev/cgsix_obio.c cgsix_obio & obio
241 device cgeight: bt_dac, fb, rasops24, pfour
242 attach cgeight at obio
243 file arch/sparc/dev/cgeight.c cgeight needs-flag
245 device cgfourteen: fb, rasops32, rasops8, wsemuldisplaydev
246 attach cgfourteen at obio
247 file arch/sparc/dev/cgfourteen.c cgfourteen needs-flag
249 # device definition in sys/conf/files
250 attach le at obio with le_obio: le24
251 file arch/sparc/dev/if_le_obio.c le_obio
253 attach ie at obio with ie_obio
254 file arch/sparc/dev/if_ie_obio.c ie_obio
256 attach com at obio with com_obio
257 file arch/sparc/dev/com_obio.c com_obio
259 attach com at ebus with com_ebus
260 file arch/sparc/dev/com_ebus.c com_ebus
262 device sw: scsi, ncr5380sbc
264 file arch/sparc/dev/sw.c sw
271 file dev/sun/disksubr.c
273 file arch/sparc/fpu/fpu.c
274 file arch/sparc/fpu/fpu_add.c
275 file arch/sparc/fpu/fpu_compare.c
276 file arch/sparc/fpu/fpu_div.c
277 file arch/sparc/fpu/fpu_explode.c
278 file arch/sparc/fpu/fpu_implode.c
279 file arch/sparc/fpu/fpu_mul.c
280 file arch/sparc/fpu/fpu_sqrt.c
281 file arch/sparc/fpu/fpu_subr.c
283 file arch/sparc/sparc/autoconf.c
284 file arch/sparc/sparc/cache.c
285 file arch/sparc/sparc/core_machdep.c coredump
286 file arch/sparc/sparc/emul.c
287 file arch/sparc/sparc/intr.c
288 file arch/sparc/sparc/kgdb_machdep.c kgdb
289 file arch/sparc/sparc/kobj_machdep.c modular
290 # sparc/sparc/locore.s is handled specially in the makefile,
291 # because it must come first in the "ld" command line.
292 file arch/sparc/sparc/machdep.c
293 file arch/sparc/sparc/process_machdep.c
294 file arch/sparc/sparc/mem.c
295 file arch/sparc/sparc/promlib.c
296 file arch/sparc/sparc/openfirm.c
297 file arch/sparc/sparc/openprom.c
298 file arch/sparc/sparc/procfs_machdep.c procfs
299 file arch/sparc/sparc/pmap.c
300 file arch/sparc/sparc/syscall.c
301 file arch/sparc/sparc/sys_machdep.c
302 file arch/sparc/sparc/trap.c
303 file arch/sparc/sparc/vm_machdep.c
305 file arch/sparc/sparc/db_interface.c ddb | kgdb
306 file arch/sparc/sparc/db_trace.c ddb
307 file arch/sparc/sparc/db_disasm.c ddb
309 include "dev/pckbport/files.pckbport"
312 include "dev/usb/files.usb"
315 # Compatibility modules
318 # SVR4 Binary Compatibility (COMPAT_SVR4)
319 include "compat/svr4/files.svr4"
320 file arch/sparc/sparc/svr4_sigcode.s compat_svr4
321 file arch/sparc/sparc/svr4_machdep.c compat_svr4
323 # SunOS Binary Compatibility (COMPAT_SUNOS)
324 include "compat/sunos/files.sunos"
325 file arch/sparc/sparc/sunos_sigcode.s compat_sunos
326 file arch/sparc/sparc/sunos_machdep.c compat_sunos
328 # Binary compatibility with previous NetBSD releases (COMPAT_XX)
329 # Note: SunOS compatibility also uses some of `compat_13_machdep.c'
330 file arch/sparc/sparc/compat_16_machdep.c compat_16
331 file arch/sparc/sparc/compat_13_machdep.c compat_13 | compat_sunos
334 file dev/md_root.c memory_disk_hooks
336 include "arch/sparc/conf/majors.sparc"