]> Pileus Git - ~andy/linux/blob - arch/powerpc/platforms/powernv/powernv.h
Merge branch 'nfsd-next' of git://linux-nfs.org/~bfields/linux
[~andy/linux] / arch / powerpc / platforms / powernv / powernv.h
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 #else
17 static inline void pnv_pci_init(void) { }
18 static inline void pnv_pci_shutdown(void) { }
19
20 static inline int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask)
21 {
22         return -ENODEV;
23 }
24 #endif
25
26 extern void pnv_lpc_init(void);
27
28 #endif /* _POWERNV_H */