pi.h 616 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _RISCV_PI_H_
  3. #define _RISCV_PI_H_
  4. #include <linux/types.h>
  5. /*
  6. * The following functions are exported (but prefixed). Declare them here so
  7. * that LLVM does not complain it lacks the 'static' keyword (which, if
  8. * added, makes LLVM complain because the function is unused).
  9. */
  10. u64 get_kaslr_seed(uintptr_t dtb_pa);
  11. u64 get_kaslr_seed_zkr(const uintptr_t dtb_pa);
  12. bool set_nokaslr_from_cmdline(uintptr_t dtb_pa);
  13. u64 set_satp_mode_from_cmdline(uintptr_t dtb_pa);
  14. bool fdt_early_match_extension_isa(const void *fdt, const char *ext_name);
  15. #endif /* _RISCV_PI_H_ */