Masahiro Yamada | e7ecbc0 | 2015-10-02 13:42:19 +0900 | [diff] [blame] | 1 | /* |
Masahiro Yamada | dd34b11 | 2016-08-10 20:00:48 +0900 | [diff] [blame] | 2 | * Copyright (C) 2015-2016 Socionext Inc. |
| 3 | * Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
Masahiro Yamada | e7ecbc0 | 2015-10-02 13:42:19 +0900 | [diff] [blame] | 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | */ |
| 15 | |
| 16 | #ifndef __CACHE_UNIPHIER_H |
| 17 | #define __CACHE_UNIPHIER_H |
| 18 | |
Masahiro Yamada | 1c63d4c | 2017-02-01 14:29:22 +0100 | [diff] [blame^] | 19 | #include <linux/errno.h> |
Masahiro Yamada | e7ecbc0 | 2015-10-02 13:42:19 +0900 | [diff] [blame] | 20 | |
| 21 | #ifdef CONFIG_CACHE_UNIPHIER |
| 22 | int uniphier_cache_init(void); |
Masahiro Yamada | e7ecbc0 | 2015-10-02 13:42:19 +0900 | [diff] [blame] | 23 | #else |
| 24 | static inline int uniphier_cache_init(void) |
| 25 | { |
| 26 | return -ENODEV; |
| 27 | } |
Masahiro Yamada | e7ecbc0 | 2015-10-02 13:42:19 +0900 | [diff] [blame] | 28 | #endif |
| 29 | |
| 30 | #endif /* __CACHE_UNIPHIER_H */ |