files.arm revision 1.124
1#	$NetBSD: files.arm,v 1.124 2014/02/20 17:39:59 matt Exp $
2
3# temporary define to allow easy moving to ../arch/arm/arm32
4defflag				ARM32
5
6# predefine for CPU_ARMV6 and CPU_ARMV7
7defflag	opt_cpuoptions.h	ARM32_DISABLE_ALIGNMENT_FAULTS
8
9# CPU types.  Make sure to update <arm/cpuconf.h> if you change this list.
10defflag	opt_cputypes.h		CPU_PRE_ARMV6
11defflag	opt_cputypes.h		CPU_ARMV6: ARM32_DISABLE_ALIGNMENT_FAULTS
12defflag	opt_cputypes.h		CPU_ARMV7: ARM32_DISABLE_ALIGNMENT_FAULTS
13defflag	opt_cputypes.h		CPU_ARM2: CPU_PRE_ARMV6
14defflag	opt_cputypes.h		CPU_ARM250: CPU_PRE_ARMV6
15defflag	opt_cputypes.h		CPU_ARM3: CPU_PRE_ARMV6
16defflag	opt_cputypes.h		CPU_ARM6: CPU_PRE_ARMV6
17defflag	opt_cputypes.h		CPU_ARM7: CPU_PRE_ARMV6
18defflag	opt_cputypes.h		CPU_ARM7TDMI: CPU_PRE_ARMV6
19defflag	opt_cputypes.h		CPU_ARM8: CPU_PRE_ARMV6
20defflag	opt_cputypes.h		CPU_ARM9: CPU_PRE_ARMV6
21defflag	opt_cputypes.h		CPU_ARM9E: CPU_PRE_ARMV6
22defflag	opt_cputypes.h		CPU_ARM10: CPU_PRE_ARMV6
23defflag	opt_cputypes.h		CPU_SA110: CPU_PRE_ARMV6
24defflag	opt_cputypes.h		CPU_SA1100: CPU_PRE_ARMV6
25defflag	opt_cputypes.h		CPU_SA1110: CPU_PRE_ARMV6
26defflag	opt_cputypes.h		CPU_IXP12X0: CPU_PRE_ARMV6
27defflag	opt_cputypes.h		CPU_FA526: CPU_PRE_ARMV6
28defflag	opt_cputypes.h		CPU_XSCALE_80200: CPU_PRE_ARMV6
29defflag	opt_cputypes.h		CPU_XSCALE_80321: CPU_PRE_ARMV6
30defflag	opt_cputypes.h		CPU_XSCALE_PXA250: CPU_PRE_ARMV6
31defflag	opt_cputypes.h		CPU_XSCALE_PXA270: CPU_PRE_ARMV6
32defflag	opt_cputypes.h		CPU_XSCALE_IXP425: CPU_PRE_ARMV6 
33defflag	opt_cputypes.h		CPU_SHEEVA: CPU_PRE_ARMV6
34defflag	opt_cputypes.h		CPU_ARM11: CPU_ARMV6
35defflag	opt_cputypes.h		CPU_ARM1136: CPU_ARM11
36defflag	opt_cputypes.h		CPU_ARM1176: CPU_ARM11
37defflag	opt_cputypes.h		CPU_ARM11MPCORE: CPU_ARM11
38defflag	opt_cputypes.h		CPU_PJ4B: CPU_ARMV7
39defflag	opt_cputypes.h		CPU_CORTEX: CPU_ARMV7
40defflag	opt_cputypes.h		CPU_CORTEXA5: CPU_CORTEX
41defflag	opt_cputypes.h		CPU_CORTEXA7: CPU_CORTEX
42defflag	opt_cputypes.h		CPU_CORTEXA8: CPU_CORTEX
43defflag	opt_cputypes.h		CPU_CORTEXA9: CPU_CORTEX
44defflag	opt_cputypes.h		CPU_CORTEXA15: CPU_CORTEX
45defflag	opt_cputypes.h		FPU_VFP
46
47defparam opt_cpuoptions.h	XSCALE_CCLKCFG
48defflag  opt_cpuoptions.h	XSCALE_CACHE_WRITE_THROUGH
49defflag  opt_cpuoptions.h	XSCALE_CACHE_WRITE_BACK
50defflag  opt_cpuoptions.h	XSCALE_NO_COALESCE_WRITES
51defflag  opt_cpuoptions.h	XSCALE_CACHE_READ_WRITE_ALLOCATE
52defflag  opt_cpuoptions.h	ARM9_CACHE_WRITE_THROUGH
53defflag  opt_cpuoptions.h	TPIDRPRW_IS_CURLWP
54defflag  opt_cpuoptions.h	TPIDRPRW_IS_CURCPU
55defflag  opt_cpuoptions.h	ARM11_PMC CORTEX_PMC
56defflag  opt_cpuoptions.h	ARM11_CACHE_WRITE_THROUGH
57defflag	 opt_cpuoptions.h	ARM11_COMPAT_MMU
58defflag	 opt_cpuoptions.h	ARM_HAS_VBAR
59# use extended small page in compatible MMU mode for ARMv6
60defflag  opt_cpuoptions.h	ARMV6_EXTENDED_SMALL_PAGE
61
62# Interrupt implementation header definition.
63defparam opt_arm_intr_impl.h	ARM_INTR_IMPL
64
65# ARM-specific debug options
66defflag	opt_arm_debug.h		ARM_LOCK_CAS_DEBUG
67
68# Board-specific bus_space(9)/bus_dma(9) definitions
69defflag  opt_arm_bus_space.h	__BUS_SPACE_HAS_STREAM_METHODS
70				_ARM32_NEED_BUS_DMA_BOUNCE
71				BUSDMA_COUNTERS
72
73# Floating point emulator
74obsolete defflag				ARMFPE
75
76# VFP support
77file	arch/arm/vfp/vfp_init.c			arm32
78#file	arch/arm/vfp/pmap_vfp.S			arm32 & fpu_vfp
79
80# PMAP_DEBUG (heavily abused option)
81defflag				PMAP_DEBUG
82
83# New PMAP options
84defflag	opt_arm32_pmap.h	ARM32_NEW_VM_LAYOUT PMAPCOUNTERS
85				PMAP_STEAL_MEMORY PMAP_NEED_ALLOC_POOLPAGE
86
87# MI console support
88file	dev/cons.c
89
90# DDB
91file	arch/arm/arm/db_disasm.c		ddb
92file	arch/arm/arm32/db_interface.c		(ddb|kgdb) & arm32
93file	arch/arm/arm/db_trace.c			ddb
94file	arch/arm/arm32/db_machdep.c		ddb & arm32
95file	arch/arm/arm32/kgdb_machdep.c		kgdb & arm32
96
97# FIQ support
98file	arch/arm/arm/fiq.c
99file	arch/arm/arm/fiq_subr.S
100
101# mainbus files
102device	mainbus { [base = -1], [size = 0], [dack = -1], [irq = -1], [intrbase = -1], [core = -1] }
103attach	mainbus at root
104file	arch/arm/mainbus/mainbus.c		mainbus & arm32
105file	arch/arm/mainbus/mainbus_io.c		mainbus & arm32
106file	arch/arm/mainbus/mainbus_io_asm.S	mainbus & arm32
107
108device	cpu { }
109attach	cpu at mainbus with cpu_mainbus
110file	arch/arm/mainbus/cpu_mainbus.c		cpu_mainbus & arm32
111
112# files related to debugging
113file	arch/arm/arm/disassem.c
114
115# bus_space(9)
116define	bus_space_generic
117file	arch/arm/arm/bus_space_asm_generic.S	bus_space_generic
118file	arch/arm/arm/bus_space_notimpl.S	arm32
119
120file	arch/arm/arm/arm_machdep.c
121file	arch/arm/arm/ast.c
122file	arch/arm/arm/bcopyinout.S
123file	arch/arm/arm/blockio.S
124file	arch/arm/arm/bootconfig.c
125file	arch/arm/arm/compat_13_machdep.c	compat_13
126file	arch/arm/arm/compat_16_machdep.c	compat_16
127file	arch/arm/arm/copystr.S
128file	arch/arm/arm/core_machdep.c
129file	arch/arm/arm/cpu_in_cksum.S		(inet | inet6) & cpu_in_cksum
130file	arch/arm/arm/cpufunc.c
131file	arch/arm/arm/cpufunc_asm.S
132file	arch/arm/arm/cpufunc_asm_arm3.S		cpu_arm2 | cpu_arm250 | cpu_arm3
133file	arch/arm/arm/cpufunc_asm_arm67.S	cpu_arm6 | cpu_arm7
134file	arch/arm/arm/cpufunc_asm_arm7tdmi.S	cpu_arm7tdmi
135file	arch/arm/arm/cpufunc_asm_arm8.S		cpu_arm8
136file	arch/arm/arm/cpufunc_asm_arm9.S		cpu_arm9
137file	arch/arm/arm/cpufunc_asm_arm10.S	cpu_arm9e | cpu_arm10 |
138							cpu_sheeva
139file	arch/arm/arm/cpufunc_asm_arm11.S	cpu_arm11
140file	arch/arm/arm/cpufunc_asm_arm1136.S	cpu_arm1136
141file	arch/arm/arm/cpufunc_asm_arm11x6.S	cpu_arm1136 | cpu_arm1176
142file	arch/arm/arm/cpufunc_asm_armv4.S	cpu_arm9 | cpu_arm9e |
143							cpu_arm10 |
144							cpu_fa526 |
145							cpu_sa110 |
146							cpu_sa1100 |
147							cpu_sa1110 |
148							cpu_ixp12x0 |
149							cpu_xscale_80200 |
150							cpu_xscale_80321 |
151							cpu_xscale_ixp425 |
152							cpu_xscale_pxa250 |
153							cpu_xscale_pxa270 |
154							cpu_cortex |
155							cpu_sheeva
156file	arch/arm/arm/cpufunc_asm_armv5.S	cpu_arm10 | cpu_arm11mpcore
157file	arch/arm/arm/cpufunc_asm_armv5_ec.S	cpu_arm9e | cpu_arm10 |
158							cpu_sheeva
159file	arch/arm/arm/cpufunc_asm_armv6.S	cpu_arm11 | cpu_cortex
160file	arch/arm/arm/cpufunc_asm_armv7.S	cpu_cortex | cpu_pj4b
161file	arch/arm/arm/cpufunc_asm_pj4b.S		cpu_pj4b
162file	arch/arm/arm/cpufunc_asm_sa1.S		cpu_sa110 | cpu_sa1100 |
163							cpu_sa1110 |
164							cpu_ixp12x0
165file	arch/arm/arm/cpufunc_asm_sa11x0.S	cpu_sa1100 | cpu_sa1110
166file	arch/arm/arm/cpufunc_asm_fa526.S	cpu_fa526
167file	arch/arm/arm/cpufunc_asm_xscale.S	cpu_xscale_80200 |
168						    cpu_xscale_80321 |
169						    cpu_xscale_ixp425 |
170						    cpu_xscale_pxa250 |
171						    cpu_xscale_pxa270 |
172						    cpu_cortex
173file	arch/arm/arm/cpufunc_asm_ixp12x0.S	cpu_ixp12x0
174file	arch/arm/arm/cpufunc_asm_sheeva.S	cpu_sheeva
175file	arch/arm/arm/cpu_exec.c
176file	arch/arm/arm/fusu.S
177file	arch/arm/arm/idle_machdep.c
178file	arch/arm/arm/lock_cas.S
179file	arch/arm/arm/process_machdep.c
180file	arch/arm/arm/procfs_machdep.c		procfs
181file	arch/arm/arm/sig_machdep.c
182file	arch/arm/arm/sigcode.S
183file	arch/arm/arm/syscall.c
184file	arch/arm/arm/undefined.c
185# vectors.S gets included manually by Makefile.acorn26, since it needs
186# to be at the start of the text segment on those machines.
187file	arch/arm/arm/vectors.S			arm32
188
189# files common to arm32 implementations
190file	arch/arm/arm32/arm32_machdep.c		arm32
191file	arch/arm/arm32/bus_dma.c		arm32
192file	arch/arm/arm32/cpu.c			arm32 & cpu
193file	arch/arm/arm32/cpuswitch.S		arm32
194file	arch/arm/arm32/exception.S		arm32
195file	arch/arm/arm32/fault.c			arm32
196file	arch/arm/arm32/kobj_machdep.c		arm32 & modular
197file	arch/arm/arm32/pmap.c			arm32
198file	arch/arm/arm32/setcpsr.S		arm32
199file	arch/arm/arm32/setstack.S		arm32
200file	arch/arm/arm32/stubs.c			arm32
201file	arch/arm/arm32/sys_machdep.c		arm32
202file	arch/arm/arm32/vm_machdep.c		arm32
203
204# files less common to arm32 implementations...
205file	kern/kern_cctr.c			arm11
206file	arch/arm/arm32/arm11_pmc.c		arm11_pmc
207file	arch/arm/arm32/cortex_pmc.c		cortex_pmc
208
209# arm32 library functions
210file	arch/arm/arm32/bcopy_page.S		arm32
211
212#
213include "compat/netbsd32/files.netbsd32"
214file	arch/arm/arm32/netbsd32_machdep.c	arm32 & compat_netbsd32
215
216# Linux binary compatibility (COMPAT_LINUX)
217include "compat/ossaudio/files.ossaudio"
218include "compat/linux/files.linux"
219include "compat/linux/arch/arm/files.linux_arm"
220file	arch/arm/arm/linux_sigcode.S		compat_linux
221file	arch/arm/arm/linux_syscall.c		compat_linux
222file	arch/arm/arm/linux_trap.c		compat_linux
223