mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
23 lines
377 B
C
23 lines
377 B
C
|
#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
|