3 * \brief Cache-consistency functions.
6 * \author Adam Lackorzynski <adam@os.inf.tu-dresden.de>
12 * (c) 2007-2009 Author(s)
13 * economic rights: Technische Universität Dresden (Germany)
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.
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.
29 #ifndef __L4SYS__INCLUDE__CACHE_H__
30 #define __L4SYS__INCLUDE__CACHE_H__
32 #include <l4/sys/compiler.h>
35 * \defgroup l4_cache_api Cache Consistency
37 * \brief Various functions for cache consistency.
39 * <c>\#include <l4/sys/cache.h></c>
45 * \brief Cache clean a range in D-cache.
46 * \ingroup l4_cache_api
47 * \param start Start of range (inclusive)
48 * \param end End of range (exclusive)
51 l4_cache_clean_data(unsigned long start,
52 unsigned long end) L4_NOTHROW;
55 * \brief Cache flush a range.
56 * \ingroup l4_cache_api
57 * \param start Start of range (inclusive)
58 * \param end End of range (exclusive)
61 l4_cache_flush_data(unsigned long start,
62 unsigned long end) L4_NOTHROW;
65 * \brief Cache invalidate a range.
66 * \ingroup l4_cache_api
67 * \param start Start of range (inclusive)
68 * \param end End of range (exclusive)
71 l4_cache_inv_data(unsigned long start,
72 unsigned long end) L4_NOTHROW;
75 * \brief Make memory coherent between I-cache and D-cache.
76 * \ingroup l4_cache_api
77 * \param start Start of range (inclusive)
78 * \param end End of range (exclusive)
81 l4_cache_coherent(unsigned long start,
82 unsigned long end) L4_NOTHROW;
85 * \brief Make memory coherent for use with external memory.
86 * \ingroup l4_cache_api
87 * \param start Start of range (inclusive)
88 * \param end End of range (exclusive)
91 l4_cache_dma_coherent(unsigned long start,
92 unsigned long end) L4_NOTHROW;
95 * \brief Make memory coherent for use with external memory.
96 * \ingroup l4_cache_api
99 l4_cache_dma_coherent_full(void) L4_NOTHROW;
103 #endif /* ! __L4SYS__INCLUDE__CACHE_H__ */