155190f88SBenjamin Herrenschmidt #ifndef _POWERNV_H 255190f88SBenjamin Herrenschmidt #define _POWERNV_H 355190f88SBenjamin Herrenschmidt 455190f88SBenjamin Herrenschmidt #ifdef CONFIG_SMP 555190f88SBenjamin Herrenschmidt extern void pnv_smp_init(void); 655190f88SBenjamin Herrenschmidt #else 755190f88SBenjamin Herrenschmidt static inline void pnv_smp_init(void) { } 855190f88SBenjamin Herrenschmidt #endif 955190f88SBenjamin Herrenschmidt 10cd15b048SBenjamin Herrenschmidt struct pci_dev; 11cd15b048SBenjamin Herrenschmidt 1261305a96SBenjamin Herrenschmidt #ifdef CONFIG_PCI 1361305a96SBenjamin Herrenschmidt extern void pnv_pci_init(void); 1473ed148aSBenjamin Herrenschmidt extern void pnv_pci_shutdown(void); 15cd15b048SBenjamin Herrenschmidt extern int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask); 1661305a96SBenjamin Herrenschmidt #else 1761305a96SBenjamin Herrenschmidt static inline void pnv_pci_init(void) { } 1873ed148aSBenjamin Herrenschmidt static inline void pnv_pci_shutdown(void) { } 19cd15b048SBenjamin Herrenschmidt 20cd15b048SBenjamin Herrenschmidt static inline int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask) 21cd15b048SBenjamin Herrenschmidt { 22cd15b048SBenjamin Herrenschmidt return -ENODEV; 23cd15b048SBenjamin Herrenschmidt } 2461305a96SBenjamin Herrenschmidt #endif 2561305a96SBenjamin Herrenschmidt 263fafe9c2SBenjamin Herrenschmidt extern void pnv_lpc_init(void); 273fafe9c2SBenjamin Herrenschmidt 28*e2186023SMichael Ellerman bool cpu_core_split_required(void); 29*e2186023SMichael Ellerman 3055190f88SBenjamin Herrenschmidt #endif /* _POWERNV_H */ 31