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 pnv_smp_init(void)8static 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 pnv_pci_init(void)19static inline void pnv_pci_init(void) { } pnv_pci_shutdown(void)20static 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(void); 28 extern bool opal_have_pending_events(void); 29 extern void opal_event_shutdown(void); 30 31 bool cpu_core_split_required(void); 32 33 struct memcons; 34 ssize_t memcons_copy(struct memcons *mc, char *to, loff_t pos, size_t count); 35 u32 memcons_get_size(struct memcons *mc); 36 struct memcons *memcons_init(struct device_node *node, const char *mc_prop_name); 37 38 #endif /* _POWERNV_H */ 39