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