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