git: bc81a2b788f5 - main - LinuxKPI: interrupt.h: add disable_irq_nosync(), irq_set_status_flags()

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Sun, 05 Feb 2023 20:46:40 UTC
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=bc81a2b788f5644ece58defa30880b69c9894981

commit bc81a2b788f5644ece58defa30880b69c9894981
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-01-28 16:11:59 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-02-05 20:45:28 +0000

    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
---
 sys/compat/linuxkpi/common/include/linux/interrupt.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/interrupt.h b/sys/compat/linuxkpi/common/include/linux/interrupt.h
index aa9360ead910..769d0834d98d 100644
--- a/sys/compat/linuxkpi/common/include/linux/interrupt.h
+++ b/sys/compat/linuxkpi/common/include/linux/interrupt.h
@@ -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
  */