Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2023 17:56:06 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ff13b9247514 - main - riscv: Implement bus_describe_intr() for nexus
Message-ID:  <202304231756.33NHu62C026445@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

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

commit ff13b924751489efed1c6a42dbca8f236902d6fb
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-04-23 17:31:01 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-04-23 17:55:57 +0000

    riscv: Implement bus_describe_intr() for nexus
    
    Reviewed by:    mhorne
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D39750
---
 sys/riscv/riscv/nexus.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sys/riscv/riscv/nexus.c b/sys/riscv/riscv/nexus.c
index 96c4cf4ddca0..4f01ad9c023c 100644
--- a/sys/riscv/riscv/nexus.c
+++ b/sys/riscv/riscv/nexus.c
@@ -92,6 +92,7 @@ static bus_set_resource_t	nexus_set_resource;
 static bus_release_resource_t	nexus_release_resource;
 
 static bus_config_intr_t	nexus_config_intr;
+static bus_describe_intr_t	nexus_describe_intr;
 static bus_setup_intr_t		nexus_setup_intr;
 static bus_teardown_intr_t	nexus_teardown_intr;
 
@@ -119,6 +120,7 @@ static device_method_t nexus_methods[] = {
 	DEVMETHOD(bus_set_resource,	nexus_set_resource),
 	DEVMETHOD(bus_release_resource,	nexus_release_resource),
 	DEVMETHOD(bus_config_intr,	nexus_config_intr),
+	DEVMETHOD(bus_describe_intr,	nexus_describe_intr),
 	DEVMETHOD(bus_setup_intr,	nexus_setup_intr),
 	DEVMETHOD(bus_teardown_intr,	nexus_teardown_intr),
 	DEVMETHOD(bus_get_bus_tag,	nexus_get_bus_tag),
@@ -335,6 +337,14 @@ nexus_teardown_intr(device_t dev, device_t child, struct resource *r, void *ih)
 	return (intr_teardown_irq(child, r, ih));
 }
 
+static int
+nexus_describe_intr(device_t dev, device_t child, struct resource *irq,
+    void *cookie, const char *descr)
+{
+
+	return (intr_describe_irq(child, irq, cookie, descr));
+}
+
 static bus_space_tag_t
 nexus_get_bus_tag(device_t bus __unused, device_t child __unused)
 {



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