2011-09-20 00:44:52 +07:00
|
|
|
#ifndef _POWERNV_H
|
|
|
|
#define _POWERNV_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
extern void pnv_smp_init(void);
|
|
|
|
#else
|
|
|
|
static inline void pnv_smp_init(void) { }
|
|
|
|
#endif
|
|
|
|
|
2017-07-19 13:59:10 +07:00
|
|
|
extern void pnv_platform_error_reboot(struct pt_regs *regs, const char *msg) __noreturn;
|
|
|
|
|
2014-02-11 07:32:38 +07:00
|
|
|
struct pci_dev;
|
|
|
|
|
2011-09-20 00:45:05 +07:00
|
|
|
#ifdef CONFIG_PCI
|
|
|
|
extern void pnv_pci_init(void);
|
2013-05-10 13:59:18 +07:00
|
|
|
extern void pnv_pci_shutdown(void);
|
2011-09-20 00:45:05 +07:00
|
|
|
#else
|
|
|
|
static inline void pnv_pci_init(void) { }
|
2013-05-10 13:59:18 +07:00
|
|
|
static inline void pnv_pci_shutdown(void) { }
|
2011-09-20 00:45:05 +07:00
|
|
|
#endif
|
|
|
|
|
2014-12-10 01:56:51 +07:00
|
|
|
extern u32 pnv_get_supported_cpuidle_states(void);
|
|
|
|
|
2013-07-15 10:03:11 +07:00
|
|
|
extern void pnv_lpc_init(void);
|
|
|
|
|
2015-05-15 11:06:37 +07:00
|
|
|
extern void opal_handle_events(uint64_t events);
|
|
|
|
extern void opal_event_shutdown(void);
|
|
|
|
|
2014-05-23 15:15:30 +07:00
|
|
|
bool cpu_core_split_required(void);
|
|
|
|
|
2011-09-20 00:44:52 +07:00
|
|
|
#endif /* _POWERNV_H */
|