aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdt
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2024-03-13 22:05:54 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2024-03-13 22:05:54 +0000
commitd77f2092ceebaba115e6be53410428f6f5f6ae83 (patch)
tree7ef42f41d2c2ca7060e9261236ce5ab27adf3d1e /sys/dev/fdt
parentfef01f0498aa7b256bc37bbf28ee0e8ac9b2536f (diff)
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r--sys/dev/fdt/simplebus.c30
1 files changed, 2 insertions, 28 deletions
diff --git a/sys/dev/fdt/simplebus.c b/sys/dev/fdt/simplebus.c
index 940f93f56274..2bd1a1402797 100644
--- a/sys/dev/fdt/simplebus.c
+++ b/sys/dev/fdt/simplebus.c
@@ -52,11 +52,6 @@ static int simplebus_activate_resource(device_t bus,
device_t child, int type, int rid, struct resource *r);
static int simplebus_deactivate_resource(device_t bus,
device_t child, int type, int rid, struct resource *r);
-static int simplebus_map_resource(device_t bus, device_t child,
- int type, struct resource *r, struct resource_map_request *args,
- struct resource_map *map);
-static int simplebus_unmap_resource(device_t bus, device_t child,
- int type, struct resource *r, struct resource_map *map);
static void simplebus_probe_nomatch(device_t bus, device_t child);
static int simplebus_print_child(device_t bus, device_t child);
static device_t simplebus_add_child(device_t dev, u_int order,
@@ -98,8 +93,8 @@ static device_method_t simplebus_methods[] = {
DEVMETHOD(bus_activate_resource, simplebus_activate_resource),
DEVMETHOD(bus_deactivate_resource, simplebus_deactivate_resource),
DEVMETHOD(bus_adjust_resource, bus_generic_adjust_resource),
- DEVMETHOD(bus_map_resource, simplebus_map_resource),
- DEVMETHOD(bus_unmap_resource, simplebus_unmap_resource),
+ DEVMETHOD(bus_map_resource, bus_generic_map_resource),
+ DEVMETHOD(bus_unmap_resource, bus_generic_unmap_resource),
DEVMETHOD(bus_set_resource, bus_generic_rl_set_resource),
DEVMETHOD(bus_get_resource, bus_generic_rl_get_resource),
DEVMETHOD(bus_delete_resource, bus_generic_rl_delete_resource),
@@ -525,27 +520,6 @@ simplebus_deactivate_resource(device_t bus, device_t child, int type, int rid,
}
static int
-simplebus_map_resource(device_t bus, device_t child, int type,
- struct resource *r, struct resource_map_request *args,
- struct resource_map *map)
-{
-
- if (type == SYS_RES_IOPORT)
- type = SYS_RES_MEMORY;
- return (bus_generic_map_resource(bus, child, type, r, args, map));
-}
-
-static int
-simplebus_unmap_resource(device_t bus, device_t child, int type,
- struct resource *r, struct resource_map *map)
-{
-
- if (type == SYS_RES_IOPORT)
- type = SYS_RES_MEMORY;
- return (bus_generic_unmap_resource(bus, child, type, r, map));
-}
-
-static int
simplebus_print_res(struct simplebus_devinfo *di)
{
int rv;