cacheinfo.h 511 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2020 SiFive
  4. */
  5. #ifndef _ASM_RISCV_CACHEINFO_H
  6. #define _ASM_RISCV_CACHEINFO_H
  7. #include <linux/cacheinfo.h>
  8. struct riscv_cacheinfo_ops {
  9. const struct attribute_group * (*get_priv_group)(struct cacheinfo
  10. *this_leaf);
  11. };
  12. void riscv_set_cacheinfo_ops(struct riscv_cacheinfo_ops *ops);
  13. uintptr_t get_cache_size(u32 level, enum cache_type type);
  14. uintptr_t get_cache_geometry(u32 level, enum cache_type type);
  15. #endif /* _ASM_RISCV_CACHEINFO_H */