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 int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask);
16 extern u64 pnv_pci_dma_get_required_mask(struct pci_dev *pdev);
17 #else
18 static inline void pnv_pci_init(void) { }
19 static inline void pnv_pci_shutdown(void) { }
20 
21 static inline int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask)
22 {
23 	return -ENODEV;
24 }
25 
26 static inline u64 pnv_pci_dma_get_required_mask(struct pci_dev *pdev)
27 {
28 	return 0;
29 }
30 #endif
31 
32 extern struct pci_controller_ops pnv_pci_controller_ops;
33 
34 extern u32 pnv_get_supported_cpuidle_states(void);
35 
36 extern void pnv_lpc_init(void);
37 
38 extern void opal_do_notifier(uint64_t events);
39 extern void opal_handle_events(uint64_t events);
40 extern void opal_event_shutdown(void);
41 
42 bool cpu_core_split_required(void);
43 
44 #endif /* _POWERNV_H */
45