From nobody Sun May 07 17:59:59 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QDsdW4QQ5z49HhS; Sun, 7 May 2023 17:59:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QDsdW3p5Bz49c4; Sun, 7 May 2023 17:59:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683482399; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=egb5jAq7OnrQEAArPiSIBudPNQxQe9UL5fpUbpCDl6w=; b=t81eY0k4J9LweYB/ewSMMHVle1W/wMktSlLGcDT+CYJOsIHsgp6Hq0KjdYKSjWRonPUk19 B1sbyIKdBD5uuNiOJ823JV8IPVZgP3oCrprcrMLonLmYjj4kjeYl8nMrFqLdh4p/mu9kG1 y/s6meXialC1ImvTiXbGZ5FbnRtqI73V5Mo6KMTZL2mZuhho48U0Wvh/YTFUTVsKBzaYGo EcTiyxkUbuqTShCN9vQtrZqIWvXKtUWHBCadvTa3qsDXSpFaWPLva1Aw0LzW6pm6ikvavH /BmAm1N1FhQBUnsT2SbzP9sWsdofODf1rl+tSJuXWowCc5VKdziIw9ZGz88QtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683482399; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=egb5jAq7OnrQEAArPiSIBudPNQxQe9UL5fpUbpCDl6w=; b=sHdraQqIwKsE5nC6JFzGBRFwF+2hKUy1I5+5ZLSW5QxNEwMlbJHpGsPYRRwNIJIAgYJw79 RtewNtoeIAiyK19v94yrz1GMbuVSA0Xfm09h/OCpOmZ+CGGw3JYPuNjDR1IV2q03e0U6tS 1vpMJCMwInB0RGJS9v/HdF/KRkEHDwtLOIK2/iYIm137uM1kMMOvqJGPOlrISG9h0kcQ3/ tEkqa+U9ZT7zY1i2iiMfj6Dgy1vu9d8gP5xTO9ebx/B0EFiWjmdr8WAxFFtSNcaNugPJTW D2d3cgVJn0ovSWGt96R8HftPdVUiiJY4GcEc7ZFER0V/oFk1vm2UcRjczcmVag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683482399; a=rsa-sha256; cv=none; b=E/1YXxoNpdVE3mXLHtwXDFjSUpWoWiJ4lCBk5O2FuBLK8Ub7oNF+qMcY+mYN66noVyq4Oc /KAVw5c/OerB8mEeSS3nS6gsHdJWSptODe0raSMN7E6+YlCH5sE0NQ9+fLsJg896QM2st8 vyhNQo6KAC8QddO+v4ep9fqc1fdpMPkm4vg/Nr4ydovIqax70J31hMZblXuxNwO/LQVleJ RW0+Sg+L21LkwfD27ZNvZI436N3TTc1aNUFrGepgFPpZDY4hyoWZbrTaxB+WUPn7idMb8Q 7ln7MZl+xeAv8ujC3nnl42/jaEjqo2pFF5kohy9/hwsoPO2ghpYW8goD8+RARg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QDsdW2snnzSbT; Sun, 7 May 2023 17:59:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 347HxxDt007883; Sun, 7 May 2023 17:59:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 347HxxdM007882; Sun, 7 May 2023 17:59:59 GMT (envelope-from git) Date: Sun, 7 May 2023 17:59:59 GMT Message-Id: <202305071759.347HxxdM007882@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 42729357a23f - stable/13 - riscv: Implement bus_describe_intr() for nexus List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 42729357a23fb889904600fed5714425f64fb652 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=42729357a23fb889904600fed5714425f64fb652 commit 42729357a23fb889904600fed5714425f64fb652 Author: Mark Johnston AuthorDate: 2023-04-23 17:31:01 +0000 Commit: Mark Johnston 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) {