powerpc/powernv: Move controller ops from ppc_md to controller_ops
[deliverable/linux.git] / arch / powerpc / platforms / powernv / powernv.h
CommitLineData
55190f88
BH
1#ifndef _POWERNV_H
2#define _POWERNV_H
3
4#ifdef CONFIG_SMP
5extern void pnv_smp_init(void);
6#else
7static inline void pnv_smp_init(void) { }
8#endif
9
cd15b048
BH
10struct pci_dev;
11
61305a96
BH
12#ifdef CONFIG_PCI
13extern void pnv_pci_init(void);
73ed148a 14extern void pnv_pci_shutdown(void);
cd15b048 15extern int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask);
fe7e85c6 16extern u64 pnv_pci_dma_get_required_mask(struct pci_dev *pdev);
61305a96
BH
17#else
18static inline void pnv_pci_init(void) { }
73ed148a 19static inline void pnv_pci_shutdown(void) { }
cd15b048
BH
20
21static inline int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask)
22{
23 return -ENODEV;
24}
fe7e85c6
GS
25
26static inline u64 pnv_pci_dma_get_required_mask(struct pci_dev *pdev)
27{
28 return 0;
29}
61305a96
BH
30#endif
31
65ebf4b6
DA
32extern struct pci_controller_ops pnv_pci_controller_ops;
33
8eb8ac89
SP
34extern u32 pnv_get_supported_cpuidle_states(void);
35
3fafe9c2
BH
36extern void pnv_lpc_init(void);
37
e2186023
ME
38bool cpu_core_split_required(void);
39
55190f88 40#endif /* _POWERNV_H */
This page took 0.187002 seconds and 5 git commands to generate.