1 #ifndef _POWERNV_H
2 #define _POWERNV_H
3 
4 #ifdef CONFIG_SMP
5 extern void pnv_smp_init(void);
6 #else
7 static inline void pnv_smp_init(void) { }
8 #endif
9 
10 struct pci_dev;
11 
12 #ifdef CONFIG_PCI
13 extern void pnv_pci_init(void);
14 extern void pnv_pci_shutdown(void);
15 extern u64 pnv_pci_dma_get_required_mask(struct pci_dev *pdev);
16 #else
17 static inline void pnv_pci_init(void) { }
18 static inline void pnv_pci_shutdown(void) { }
19 
20 static inline u64 pnv_pci_dma_get_required_mask(struct pci_dev *pdev)
21 {
22 	return 0;
23 }
24 #endif
25 
26 extern u32 pnv_get_supported_cpuidle_states(void);
27 
28 extern void pnv_lpc_init(void);
29 
30 extern void opal_handle_events(uint64_t events);
31 extern void opal_event_shutdown(void);
32 
33 bool cpu_core_split_required(void);
34 
35 #endif /* _POWERNV_H */
36