1 | /* |
---|
2 | * libcpu Cache Manager Support |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-1999. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.rtems.org/license/LICENSE. |
---|
10 | * |
---|
11 | * The functions declared in this file are implemented for |
---|
12 | * each processor in the cache.c file under libcpu/CPU/. |
---|
13 | * They provide the processor specific actions to take for |
---|
14 | * implementing most of the RTEMS Cache Manager directives, |
---|
15 | * and should only ever be called by these directives. |
---|
16 | * |
---|
17 | * The API for the RTEMS Cache Manager can be found in |
---|
18 | * c/src/exec/rtems/include/rtems/rtems/cache.h |
---|
19 | */ |
---|
20 | |
---|
21 | #ifndef __LIBCPU_CACHE_h |
---|
22 | #define __LIBCPU_CACHE_h |
---|
23 | |
---|
24 | void _CPU_cache_flush_data_range(const void *d_addr, size_t n_bytes); |
---|
25 | void _CPU_cache_flush_1_data_line(const void *d_addr); |
---|
26 | void _CPU_cache_invalidate_data_range(const void *d_addr, size_t n_bytes); |
---|
27 | void _CPU_cache_invalidate_1_data_line(const void *d_addr); |
---|
28 | void _CPU_cache_freeze_data(void); |
---|
29 | void _CPU_cache_unfreeze_data(void); |
---|
30 | void _CPU_cache_invalidate_instruction_range(const void *i_addr, size_t n_bytes); |
---|
31 | void _CPU_cache_invalidate_1_instruction_line(const void *d_addr); |
---|
32 | void _CPU_cache_freeze_instruction(void); |
---|
33 | void _CPU_cache_unfreeze_instruction(void); |
---|
34 | void _CPU_cache_flush_entire_data(void); |
---|
35 | void _CPU_cache_invalidate_entire_data(void); |
---|
36 | void _CPU_cache_enable_data(void); |
---|
37 | void _CPU_cache_disable_data(void); |
---|
38 | void _CPU_cache_invalidate_entire_instruction(void); |
---|
39 | void _CPU_cache_enable_instruction(void); |
---|
40 | void _CPU_cache_disable_instruction(void); |
---|
41 | |
---|
42 | #endif |
---|
43 | /* end of include file */ |
---|