Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Feb 2023 23:44:45 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 75727a02155a - stable/13 - LinuxKPI: interrupt.h: add disable_irq_nosync(), irq_set_status_flags()
Message-ID:  <202302172344.31HNijq1025011@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz:

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

commit 75727a02155af29167a6d460de5ce6a9d52e26d8
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-17 23:42:14 +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
    
    (cherry picked from commit bc81a2b788f5644ece58defa30880b69c9894981)
---
 .../linuxkpi/common/include/linux/interrupt.h       | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/interrupt.h b/sys/compat/linuxkpi/common/include/linux/interrupt.h
index 8c394aa2a690..b51f8f7a9cbc 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
 
 #define	IRQ_NOTCONNECTED	(1U << 31)
 
@@ -107,6 +110,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,18 @@ irq_set_affinity_hint(int vector, cpumask_t *mask)
 	return (-error);
 }
 
+static inline struct msi_desc *
+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
  */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302172344.31HNijq1025011>