git: b2921fdc2330 - main - arm64: Implement bus_get_resource and bus_delete_resource.

From: Andrew Gallatin <gallatin_at_FreeBSD.org>
Date: Sat, 11 Nov 2023 18:00:15 UTC
The branch main has been updated by gallatin:

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

commit b2921fdc2330a5750f557fa321b94f972d5a7702
Author:     Andrew Gallatin <gallatin@FreeBSD.org>
AuthorDate: 2023-11-11 17:54:19 +0000
Commit:     Andrew Gallatin <gallatin@FreeBSD.org>
CommitDate: 2023-11-11 17:57:39 +0000

    arm64: Implement bus_get_resource and bus_delete_resource.
    
    These devmethods were not defined, leading to the surprising result
    of using bus_set_resource(), and then immediately turning around
    and getting zeros back from bus_get_resource().   These are now
    simply passed through to the generic definitions, since there
    is no need for them to be arm64 specific.
    
    Note that jhb plans to replace most of the devmethods with
    the generic versions.
    
    Suggested by: jhb
    Sponsored by: Netflix
---
 sys/arm64/arm64/nexus.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/arm64/arm64/nexus.c b/sys/arm64/arm64/nexus.c
index b9871f0e9b3a..6ba73cd456ef 100644
--- a/sys/arm64/arm64/nexus.c
+++ b/sys/arm64/arm64/nexus.c
@@ -136,6 +136,8 @@ static device_method_t nexus_methods[] = {
 	DEVMETHOD(bus_adjust_resource,	nexus_adjust_resource),
 	DEVMETHOD(bus_alloc_resource,	nexus_alloc_resource),
 	DEVMETHOD(bus_deactivate_resource, nexus_deactivate_resource),
+	DEVMETHOD(bus_delete_resource, bus_generic_rl_delete_resource),
+	DEVMETHOD(bus_get_resource,	bus_generic_rl_get_resource),
 	DEVMETHOD(bus_get_resource_list, nexus_get_reslist),
 	DEVMETHOD(bus_map_resource,	nexus_map_resource),
 	DEVMETHOD(bus_release_resource,	nexus_release_resource),