git: 42729357a23f - stable/13 - riscv: Implement bus_describe_intr() for nexus
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 07 May 2023 17:59:59 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=42729357a23fb889904600fed5714425f64fb652 commit 42729357a23fb889904600fed5714425f64fb652 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-04-23 17:31:01 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-05-07 17:54:09 +0000 riscv: Implement bus_describe_intr() for nexus Reviewed by: mhorne MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39750 (cherry picked from commit ff13b924751489efed1c6a42dbca8f236902d6fb) --- 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 38c11b13aff6..5a397efe14a8 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), @@ -337,6 +339,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) {