Go to the documentation of this file.
10 #ifndef ASM_GLUE_CACHE_H
11 #define ASM_GLUE_CACHE_H
22 #if defined(CONFIG_CPU_CACHE_V3)
24 # define MULTI_CACHE 1
30 #if defined(CONFIG_CPU_CACHE_V4)
32 # define MULTI_CACHE 1
38 #if defined(CONFIG_CPU_ARM920T) || defined(CONFIG_CPU_ARM922T) || \
39 defined(CONFIG_CPU_ARM925T) || defined(CONFIG_CPU_ARM1020) || \
40 defined(CONFIG_CPU_ARM1026)
41 # define MULTI_CACHE 1
44 #if defined(CONFIG_CPU_FA526)
46 # define MULTI_CACHE 1
52 #if defined(CONFIG_CPU_ARM926T)
54 # define MULTI_CACHE 1
56 # define _CACHE arm926
60 #if defined(CONFIG_CPU_ARM940T)
62 # define MULTI_CACHE 1
64 # define _CACHE arm940
68 #if defined(CONFIG_CPU_ARM946E)
70 # define MULTI_CACHE 1
72 # define _CACHE arm946
76 #if defined(CONFIG_CPU_CACHE_V4WB)
78 # define MULTI_CACHE 1
84 #if defined(CONFIG_CPU_XSCALE)
86 # define MULTI_CACHE 1
88 # define _CACHE xscale
92 #if defined(CONFIG_CPU_XSC3)
94 # define MULTI_CACHE 1
100 #if defined(CONFIG_CPU_MOHAWK)
102 # define MULTI_CACHE 1
104 # define _CACHE mohawk
108 #if defined(CONFIG_CPU_FEROCEON)
109 # define MULTI_CACHE 1
112 #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K)
114 # define MULTI_CACHE 1
120 #if defined(CONFIG_CPU_V7)
122 # define MULTI_CACHE 1
128 #if !defined(_CACHE) && !defined(MULTI_CACHE)
129 #error Unknown cache maintenance model
133 #define __cpuc_flush_icache_all __glue(_CACHE,_flush_icache_all)
134 #define __cpuc_flush_kern_all __glue(_CACHE,_flush_kern_cache_all)
135 #define __cpuc_flush_kern_louis __glue(_CACHE,_flush_kern_cache_louis)
136 #define __cpuc_flush_user_all __glue(_CACHE,_flush_user_cache_all)
137 #define __cpuc_flush_user_range __glue(_CACHE,_flush_user_cache_range)
138 #define __cpuc_coherent_kern_range __glue(_CACHE,_coherent_kern_range)
139 #define __cpuc_coherent_user_range __glue(_CACHE,_coherent_user_range)
140 #define __cpuc_flush_dcache_area __glue(_CACHE,_flush_kern_dcache_area)
142 #define dmac_map_area __glue(_CACHE,_dma_map_area)
143 #define dmac_unmap_area __glue(_CACHE,_dma_unmap_area)
144 #define dmac_flush_range __glue(_CACHE,_dma_flush_range)