powernv.h 870 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. extern u64 pnv_pci_dma_get_required_mask(struct pci_dev *pdev);
  14. #else
  15. static inline void pnv_pci_init(void) { }
  16. static inline void pnv_pci_shutdown(void) { }
  17. static inline int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask)
  18. {
  19. return -ENODEV;
  20. }
  21. static inline u64 pnv_pci_dma_get_required_mask(struct pci_dev *pdev)
  22. {
  23. return 0;
  24. }
  25. #endif
  26. extern struct pci_controller_ops pnv_pci_controller_ops;
  27. extern u32 pnv_get_supported_cpuidle_states(void);
  28. extern void pnv_lpc_init(void);
  29. bool cpu_core_split_required(void);
  30. #endif /* _POWERNV_H */