L4Re - L4 Runtime Environment
cache.h
Go to the documentation of this file.
1 
11 /*
12  * (c) 2007-2009 Author(s)
13  * economic rights: Technische Universit├Ąt Dresden (Germany)
14  *
15  * This file is part of TUD:OS and distributed under the terms of the
16  * GNU General Public License 2.
17  * Please see the COPYING-GPL-2 file for details.
18  *
19  * As a special exception, you may use this file as part of a free software
20  * library without restriction. Specifically, if other files instantiate
21  * templates or use macros or inline functions from this file, or you compile
22  * this file and link it with other files to produce an executable, this
23  * file does not by itself cause the resulting executable to be covered by
24  * the GNU General Public License. This exception does not however
25  * invalidate any other reasons why the executable file might be covered by
26  * the GNU General Public License.
27  */
28 
29 #ifndef __L4SYS__INCLUDE__CACHE_H__
30 #define __L4SYS__INCLUDE__CACHE_H__
31 
32 #include <l4/sys/compiler.h>
33 
43 
58 L4_INLINE int
59 l4_cache_clean_data(unsigned long start,
60  unsigned long end) L4_NOTHROW;
61 
76 L4_INLINE int
77 l4_cache_flush_data(unsigned long start,
78  unsigned long end) L4_NOTHROW;
79 
98 L4_INLINE int
99 l4_cache_inv_data(unsigned long start,
100  unsigned long end) L4_NOTHROW;
101 
113 L4_INLINE int
114 l4_cache_coherent(unsigned long start,
115  unsigned long end) L4_NOTHROW;
116 
128 L4_INLINE int
129 l4_cache_dma_coherent(unsigned long start,
130  unsigned long end) L4_NOTHROW;
131 
136 L4_INLINE int
138 
140 
141 #endif /* ! __L4SYS__INCLUDE__CACHE_H__ */
#define EXTERN_C_END
End section with C types and functions.
Definition: compiler.h:187
int l4_cache_coherent(unsigned long start, unsigned long end) L4_NOTHROW
Make memory coherent between I-cache and D-cache.
Definition: cache.h:108
int l4_cache_flush_data(unsigned long start, unsigned long end) L4_NOTHROW
Cache flush a range.
Definition: cache.h:92
L4 compiler related defines.
int l4_cache_dma_coherent_full(void) L4_NOTHROW
Make memory coherent for use with external memory.
Definition: cache.h:124
#define EXTERN_C_BEGIN
Start section with C types and functions.
Definition: compiler.h:186
int l4_cache_clean_data(unsigned long start, unsigned long end) L4_NOTHROW
Cache clean a range in D-cache.
Definition: cache.h:84
int l4_cache_dma_coherent(unsigned long start, unsigned long end) L4_NOTHROW
Make memory coherent for use with external memory.
Definition: cache.h:116
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition: compiler.h:185
int l4_cache_inv_data(unsigned long start, unsigned long end) L4_NOTHROW
Cache invalidate a range.
Definition: cache.h:100