cache-uniphier.h 867 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (C) 2015-2016 Socionext Inc.
  3. * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  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. #ifndef __CACHE_UNIPHIER_H
  16. #define __CACHE_UNIPHIER_H
  17. #include <linux/types.h>
  18. #ifdef CONFIG_CACHE_UNIPHIER
  19. int uniphier_cache_init(void);
  20. #else
  21. static inline int uniphier_cache_init(void)
  22. {
  23. return -ENODEV;
  24. }
  25. #endif
  26. #endif /* __CACHE_UNIPHIER_H */