summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/mock/arch/cache.h
blob: 0e4bc033d0ac13eb81c20e91abdc5adab0ba7f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef __ARCH_CACHE_H__
#define __ARCH_CACHE_H__

#include <stddef.h>

/* Functions in this file are unimplemented by default. Tests are expected to implement
   mocks for these functions, if tests will call functions using functions listed below. */

void dmb(void);
void dsb(void);
void dcache_clean_all(void);
void dcache_clean_by_mva(void const *addr, size_t len);
void dcache_invalidate_all(void);
void dcache_invalidate_by_mva(void const *addr, size_t len);
void dcache_clean_invalidate_all(void);
void dcache_clean_invalidate_by_mva(void const *addr, size_t len);
void cache_sync_instructions(void);

#endif /* __ARCH_CACHE_H__ */