powernv.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _POWERNV_H
  3. #define _POWERNV_H
  4. /*
  5. * There's various hacks scattered throughout the generic powerpc arch code
  6. * that needs to call into powernv platform stuff. The prototypes for those
  7. * functions are in asm/powernv.h
  8. */
  9. #include <asm/powernv.h>
  10. #ifdef CONFIG_SMP
  11. extern void pnv_smp_init(void);
  12. #else
  13. static inline void pnv_smp_init(void) { }
  14. #endif
  15. extern void pnv_platform_error_reboot(struct pt_regs *regs, const char *msg) __noreturn;
  16. struct pci_dev;
  17. #ifdef CONFIG_PCI
  18. extern void pnv_pci_init(void);
  19. extern void pnv_pci_shutdown(void);
  20. #else
  21. static inline void pnv_pci_init(void) { }
  22. static inline void pnv_pci_shutdown(void) { }
  23. #endif
  24. extern u32 pnv_get_supported_cpuidle_states(void);
  25. extern void pnv_lpc_init(void);
  26. extern void opal_handle_events(void);
  27. extern bool opal_have_pending_events(void);
  28. extern void opal_event_shutdown(void);
  29. bool cpu_core_split_required(void);
  30. struct memcons;
  31. ssize_t memcons_copy(struct memcons *mc, char *to, loff_t pos, size_t count);
  32. u32 __init memcons_get_size(struct memcons *mc);
  33. struct memcons *__init memcons_init(struct device_node *node, const char *mc_prop_name);
  34. void pnv_rng_init(void);
  35. #endif /* _POWERNV_H */