1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _POWERNV_H 3 #define _POWERNV_H 4 5 #ifdef CONFIG_SMP 6 extern void pnv_smp_init(void); 7 #else 8 static inline void pnv_smp_init(void) { } 9 #endif 10 11 extern void pnv_platform_error_reboot(struct pt_regs *regs, const char *msg) __noreturn; 12 13 struct pci_dev; 14 15 #ifdef CONFIG_PCI 16 extern void pnv_pci_init(void); 17 extern void pnv_pci_shutdown(void); 18 #else 19 static inline void pnv_pci_init(void) { } 20 static inline void pnv_pci_shutdown(void) { } 21 #endif 22 23 extern u32 pnv_get_supported_cpuidle_states(void); 24 25 extern void pnv_lpc_init(void); 26 27 extern void opal_handle_events(uint64_t events); 28 extern void opal_event_shutdown(void); 29 30 bool cpu_core_split_required(void); 31 32 #endif /* _POWERNV_H */ 33