powernv.h 610 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _POWERNV_H
  2. #define _POWERNV_H
  3. #ifdef CONFIG_SMP
  4. extern void pnv_smp_init(void);
  5. #else
  6. static inline void pnv_smp_init(void) { }
  7. #endif
  8. struct pci_dev;
  9. #ifdef CONFIG_PCI
  10. extern void pnv_pci_init(void);
  11. extern void pnv_pci_shutdown(void);
  12. extern int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask);
  13. #else
  14. static inline void pnv_pci_init(void) { }
  15. static inline void pnv_pci_shutdown(void) { }
  16. static inline int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask)
  17. {
  18. return -ENODEV;
  19. }
  20. #endif
  21. extern void pnv_lpc_init(void);
  22. bool cpu_core_split_required(void);
  23. #endif /* _POWERNV_H */