1 /**
2  * \file
3  * \brief  Cache functions
4  */
5 /*
6  * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>
7  *     economic rights: Technische Universität Dresden (Germany)
8  *
9  * This file is part of TUD:OS and distributed under the terms of the
10  * GNU General Public License 2.
11  * Please see the COPYING-GPL-2 file for details.
12  *
13  * As a special exception, you may use this file as part of a free software
14  * library without restriction.  Specifically, if other files instantiate
15  * templates or use macros or inline functions from this file, or you compile
16  * this file and link it with other files to produce an executable, this
17  * file does not by itself cause the resulting executable to be covered by
18  * the GNU General Public License.  This exception does not however
19  * invalidate any other reasons why the executable file might be covered by
20  * the GNU General Public License.
21  */
22 #ifndef __L4SYS__INCLUDE__ARCH_PPC32__CACHE_H__
23 #define __L4SYS__INCLUDE__ARCH_PPC32__CACHE_H__
24 
25 #include_next <l4/sys/cache.h>
26 
27 L4_INLINE int
l4_cache_clean_data(unsigned long start,unsigned long end)28 l4_cache_clean_data(unsigned long start,
29                     unsigned long end) L4_NOTHROW
30 {
31   (void)start; (void)end;
32   return 0;
33 }
34 
35 L4_INLINE int
l4_cache_flush_data(unsigned long start,unsigned long end)36 l4_cache_flush_data(unsigned long start,
37                     unsigned long end) L4_NOTHROW
38 {
39   (void)start; (void)end;
40   return 0;
41 }
42 
43 L4_INLINE int
l4_cache_inv_data(unsigned long start,unsigned long end)44 l4_cache_inv_data(unsigned long start,
45                   unsigned long end) L4_NOTHROW
46 {
47   (void)start; (void)end;
48   return 0;
49 }
50 
51 L4_INLINE int
l4_cache_coherent(unsigned long start,unsigned long end)52 l4_cache_coherent(unsigned long start,
53                   unsigned long end) L4_NOTHROW
54 {
55   (void)start; (void)end;
56   return 0;
57 }
58 
59 L4_INLINE int
l4_cache_dma_coherent(unsigned long start,unsigned long end)60 l4_cache_dma_coherent(unsigned long start,
61                       unsigned long end) L4_NOTHROW
62 {
63   (void)start; (void)end;
64   return 0;
65 }
66 
67 L4_INLINE int
l4_cache_dma_coherent_full(void)68 l4_cache_dma_coherent_full(void) L4_NOTHROW
69 {
70   return 0;
71 }
72 
73 #endif /* ! __L4SYS__INCLUDE__ARCH_PPC32__CACHE_H__ */
74