Linux 4.2.2
[linux/fpc-iii.git] / arch / powerpc / platforms / powernv / powernv.h
blob9269e30e4ca0e75efcf476910809c9508a5b0698
1 #ifndef _POWERNV_H
2 #define _POWERNV_H
4 #ifdef CONFIG_SMP
5 extern void pnv_smp_init(void);
6 #else
7 static inline void pnv_smp_init(void) { }
8 #endif
10 struct pci_dev;
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) { }
20 static inline u64 pnv_pci_dma_get_required_mask(struct pci_dev *pdev)
22 return 0;
24 #endif
26 extern u32 pnv_get_supported_cpuidle_states(void);
28 extern void pnv_lpc_init(void);
30 extern void opal_handle_events(uint64_t events);
31 extern void opal_event_shutdown(void);
33 bool cpu_core_split_required(void);
35 #endif /* _POWERNV_H */