aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2023-11-11 17:54:19 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2023-11-11 17:57:39 +0000
commitb2921fdc2330a5750f557fa321b94f972d5a7702 (patch)
tree18050856735625f996c5b3ca25ba5e05475b1337
parent4e288572b85815bcefb929fcc4f20c01a459e9db (diff)
downloadsrc-b2921fdc2330a5750f557fa321b94f972d5a7702.tar.gz
src-b2921fdc2330a5750f557fa321b94f972d5a7702.zip
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
-rw-r--r--sys/arm64/arm64/nexus.c2
1 files changed, 2 insertions, 0 deletions
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),