]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/blobdiff - arch/s390/include/asm/hw_irq.h
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[can-eth-gw-linux.git] / arch / s390 / include / asm / hw_irq.h
diff --git a/arch/s390/include/asm/hw_irq.h b/arch/s390/include/asm/hw_irq.h
new file mode 100644 (file)
index 0000000..7e3d258
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef _HW_IRQ_H
+#define _HW_IRQ_H
+
+#include <linux/msi.h>
+#include <linux/pci.h>
+
+static inline struct msi_desc *irq_get_msi_desc(unsigned int irq)
+{
+       return __irq_get_msi_desc(irq);
+}
+
+/* Must be called with msi map lock held */
+static inline int irq_set_msi_desc(unsigned int irq, struct msi_desc *msi)
+{
+       if (!msi)
+               return -EINVAL;
+
+       msi->irq = irq;
+       return 0;
+}
+
+#endif