X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Farmv7a_cache.h;h=e0f7eb3a58f6dad22527795297c085b5562e9bc5;hb=5b263d7b0c71d2560af5dabbeec051b807d9e6a3;hp=81995ac3a67383e192444c69b3850ae1d29cdcc7;hpb=7986faba21f29b50341f8357baf38481dae0e58f;p=openocd.git diff --git a/src/target/armv7a_cache.h b/src/target/armv7a_cache.h index 81995ac3a6..e0f7eb3a58 100644 --- a/src/target/armv7a_cache.h +++ b/src/target/armv7a_cache.h @@ -11,16 +11,21 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * ***************************************************************************/ -#ifndef ARM7A_CACHE_H -#define ARM7A_CACHE_H +#ifndef OPENOCD_TARGET_ARM7A_CACHE_H +#define OPENOCD_TARGET_ARM7A_CACHE_H #include "arm_jtag.h" #include "armv7a_cache_l2x.h" int armv7a_l1_d_cache_clean_virt(struct target *target, uint32_t virt, unsigned int size); +int armv7a_l1_d_cache_inval_virt(struct target *target, uint32_t virt, + unsigned int size); int armv7a_l1_d_cache_flush_virt(struct target *target, uint32_t virt, unsigned int size); int armv7a_l1_i_cache_inval_all(struct target *target); @@ -29,7 +34,8 @@ int armv7a_l1_i_cache_inval_virt(struct target *target, uint32_t virt, int armv7a_cache_auto_flush_on_write(struct target *target, uint32_t virt, uint32_t size); int armv7a_cache_auto_flush_all_data(struct target *target); - +int armv7a_cache_flush_virt(struct target *target, uint32_t virt, + uint32_t size); extern const struct command_registration arm7a_cache_command_handlers[]; /* CLIDR cache types */ @@ -37,4 +43,4 @@ extern const struct command_registration arm7a_cache_command_handlers[]; #define CACHE_LEVEL_HAS_D_CACHE 0x2 #define CACHE_LEVEL_HAS_I_CACHE 0x1 -#endif +#endif /* OPENOCD_TARGET_ARM7A_CACHE_H */