• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _POWERNV_H
2 #define _POWERNV_H
3 
4 #ifdef CONFIG_SMP
5 extern void pnv_smp_init(void);
6 #else
pnv_smp_init(void)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
pnv_pci_init(void)18 static inline void pnv_pci_init(void) { }
pnv_pci_shutdown(void)19 static inline void pnv_pci_shutdown(void) { }
20 
pnv_pci_dma_set_mask(struct pci_dev * pdev,u64 dma_mask)21 static inline int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask)
22 {
23 	return -ENODEV;
24 }
25 
pnv_pci_dma_get_required_mask(struct pci_dev * pdev)26 static inline u64 pnv_pci_dma_get_required_mask(struct pci_dev *pdev)
27 {
28 	return 0;
29 }
30 #endif
31 
32 extern void pnv_lpc_init(void);
33 
34 bool cpu_core_split_required(void);
35 
36 #endif /* _POWERNV_H */
37