of: MSI: Simplify irqdomain lookup
[linux/fpc-iii.git] / arch / arm / include / asm / hardware / cache-uniphier.h
blob102e3fbe1e10e99b3743a7a7f0fd2546d5e1c8dc
1 /*
2 * Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #ifndef __CACHE_UNIPHIER_H
16 #define __CACHE_UNIPHIER_H
18 #include <linux/types.h>
20 #ifdef CONFIG_CACHE_UNIPHIER
21 int uniphier_cache_init(void);
22 int uniphier_cache_l2_is_enabled(void);
23 void uniphier_cache_l2_touch_range(unsigned long start, unsigned long end);
24 void uniphier_cache_l2_set_locked_ways(u32 way_mask);
25 #else
26 static inline int uniphier_cache_init(void)
28 return -ENODEV;
31 static inline int uniphier_cache_l2_is_enabled(void)
33 return 0;
36 static inline void uniphier_cache_l2_touch_range(unsigned long start,
37 unsigned long end)
41 static inline void uniphier_cache_l2_set_locked_ways(u32 way_mask)
44 #endif
46 #endif /* __CACHE_UNIPHIER_H */