LinuxKPI: interrupt.h: add disable_irq_nosync(), irq_set_status_flags()
Add a dummy irq_set_status_flags() along with #defines passed by the driver. Add disable_irq_nosync() as another wrapper to lkpi_disable_irq(). Those are used by wireless drivers. Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D38241
This commit is contained in:
parent
934cb7a331
commit
bc81a2b788
@ -43,6 +43,9 @@
|
||||
typedef irqreturn_t (*irq_handler_t)(int, void *);
|
||||
|
||||
#define IRQF_SHARED RF_SHAREABLE
|
||||
#define IRQF_NOBALANCING 0
|
||||
|
||||
#define IRQ_DISABLE_UNLAZY 0
|
||||
|
||||
int lkpi_request_irq(struct device *, unsigned int, irq_handler_t,
|
||||
irq_handler_t, unsigned long, const char *, void *);
|
||||
@ -100,6 +103,12 @@ disable_irq(unsigned int irq)
|
||||
lkpi_disable_irq(irq);
|
||||
}
|
||||
|
||||
static inline void
|
||||
disable_irq_nosync(unsigned int irq)
|
||||
{
|
||||
lkpi_disable_irq(irq);
|
||||
}
|
||||
|
||||
static inline int
|
||||
bind_irq_to_cpu(unsigned int irq, int cpu_id)
|
||||
{
|
||||
@ -138,6 +147,11 @@ irq_get_msi_desc(unsigned int irq)
|
||||
return (lkpi_pci_msi_desc_alloc(irq));
|
||||
}
|
||||
|
||||
static inline void
|
||||
irq_set_status_flags(unsigned int irq __unused, unsigned long flags __unused)
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* LinuxKPI tasklet support
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user