libmetal
lib
cache.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved.
3
*
4
* SPDX-License-Identifier: BSD-3-Clause
5
*/
6
7
/*
8
* @file cache.h
9
* @brief CACHE operation primitives for libmetal.
10
*/
11
12
#ifndef __METAL_CACHE__H__
13
#define __METAL_CACHE__H__
14
15
#include <metal/system/@PROJECT_SYSTEM@/cache.h>
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
33
static
inline
void
metal_cache_flush
(
void
*addr,
unsigned
int
len)
34
{
35
__metal_cache_flush
(addr, len);
36
}
37
46
static
inline
void
metal_cache_invalidate
(
void
*addr,
unsigned
int
len)
47
{
48
__metal_cache_invalidate
(addr, len);
49
}
50
53
#ifdef __cplusplus
54
}
55
#endif
56
57
#endif
/* __METAL_CACHE__H__ */
metal_cache_flush
static void metal_cache_flush(void *addr, unsigned int len)
flush specified data cache
Definition:
cache.h:33
__metal_cache_invalidate
static void __metal_cache_invalidate(void *addr, unsigned int len)
Definition:
cache.h:31
metal_cache_invalidate
static void metal_cache_invalidate(void *addr, unsigned int len)
invalidate specified data cache
Definition:
cache.h:46
__metal_cache_flush
static void __metal_cache_flush(void *addr, unsigned int len)
Definition:
cache.h:26
Generated on Sun May 10 2020 00:00:00 for libmetal by
1.8.17