Commit | Line | Data |
---|---|---|
55190f88 BH |
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 | ||
cd15b048 BH |
10 | struct pci_dev; |
11 | ||
61305a96 BH |
12 | #ifdef CONFIG_PCI |
13 | extern void pnv_pci_init(void); | |
73ed148a | 14 | extern void pnv_pci_shutdown(void); |
cd15b048 | 15 | extern int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask); |
fe7e85c6 | 16 | extern u64 pnv_pci_dma_get_required_mask(struct pci_dev *pdev); |
61305a96 BH |
17 | #else |
18 | static inline void pnv_pci_init(void) { } | |
73ed148a | 19 | static inline void pnv_pci_shutdown(void) { } |
cd15b048 BH |
20 | |
21 | static inline int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask) | |
22 | { | |
23 | return -ENODEV; | |
24 | } | |
fe7e85c6 GS |
25 | |
26 | static inline u64 pnv_pci_dma_get_required_mask(struct pci_dev *pdev) | |
27 | { | |
28 | return 0; | |
29 | } | |
61305a96 BH |
30 | #endif |
31 | ||
65ebf4b6 DA |
32 | extern struct pci_controller_ops pnv_pci_controller_ops; |
33 | ||
8eb8ac89 SP |
34 | extern u32 pnv_get_supported_cpuidle_states(void); |
35 | ||
3fafe9c2 BH |
36 | extern void pnv_lpc_init(void); |
37 | ||
e2186023 ME |
38 | bool cpu_core_split_required(void); |
39 | ||
55190f88 | 40 | #endif /* _POWERNV_H */ |