powernv.h 735 B

1234567891011121314151617181920212223242526272829303132333435
  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 u64 pnv_pci_dma_get_required_mask(struct pci_dev *pdev);
  13. #else
  14. static inline void pnv_pci_init(void) { }
  15. static inline void pnv_pci_shutdown(void) { }
  16. static inline u64 pnv_pci_dma_get_required_mask(struct pci_dev *pdev)
  17. {
  18. return 0;
  19. }
  20. #endif
  21. extern u32 pnv_get_supported_cpuidle_states(void);
  22. extern void pnv_lpc_init(void);
  23. extern void opal_handle_events(uint64_t events);
  24. extern void opal_event_shutdown(void);
  25. bool cpu_core_split_required(void);
  26. #endif /* _POWERNV_H */