hw_irq.h 377 B

12345678910111213141516171819202122
  1. #ifndef _HW_IRQ_H
  2. #define _HW_IRQ_H
  3. #include <linux/msi.h>
  4. #include <linux/pci.h>
  5. static inline struct msi_desc *irq_get_msi_desc(unsigned int irq)
  6. {
  7. return __irq_get_msi_desc(irq);
  8. }
  9. /* Must be called with msi map lock held */
  10. static inline int irq_set_msi_desc(unsigned int irq, struct msi_desc *msi)
  11. {
  12. if (!msi)
  13. return -EINVAL;
  14. msi->irq = irq;
  15. return 0;
  16. }
  17. #endif