Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: 41ef2d5678d83af030125550329b6ae8b74618fa authored by Linus Torvalds on 15 April 2013, 00:45:16 UTC
Linux 3.9-rc7
Tip revision: 41ef2d5
hw_irq.h
#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
back to top