summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2016-02-16 21:30:55 +0000
committerjhibbits <jhibbits@FreeBSD.org>2016-02-16 21:30:55 +0000
commitbc7ee6c3577207b5584c10830f43a4039c099865 (patch)
treed392e1d267a9f197a7e6dcd30c8c623664ab9eaa /sys/powerpc
parent007890b077f075e23a99f65594472ae740c1356d (diff)
downloadFreeBSD-src-bc7ee6c3577207b5584c10830f43a4039c099865.zip
FreeBSD-src-bc7ee6c3577207b5584c10830f43a4039c099865.tar.gz
Another conversion u_long -> rman_res_t
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/ps3/ps3bus.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/powerpc/ps3/ps3bus.c b/sys/powerpc/ps3/ps3bus.c
index d7659e4..15817fd 100644
--- a/sys/powerpc/ps3/ps3bus.c
+++ b/sys/powerpc/ps3/ps3bus.c
@@ -58,8 +58,8 @@ static int ps3bus_print_child(device_t dev, device_t child);
static int ps3bus_read_ivar(device_t bus, device_t child, int which,
uintptr_t *result);
static struct resource *ps3bus_alloc_resource(device_t bus, device_t child,
- int type, int *rid, u_long start, u_long end,
- u_long count, u_int flags);
+ int type, int *rid, rman_res_t start, rman_res_t end,
+ rman_res_t count, u_int flags);
static int ps3bus_activate_resource(device_t bus, device_t child, int type,
int rid, struct resource *res);
static bus_dma_tag_t ps3bus_get_dma_tag(device_t dev, device_t child);
@@ -523,14 +523,14 @@ ps3bus_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
static struct resource *
ps3bus_alloc_resource(device_t bus, device_t child, int type, int *rid,
- u_long start, u_long end, u_long count, u_int flags)
+ rman_res_t start, rman_res_t end, rman_res_t count, u_int flags)
{
struct ps3bus_devinfo *dinfo;
struct ps3bus_softc *sc;
int needactivate;
struct resource *rv;
struct rman *rm;
- u_long adjstart, adjend, adjcount;
+ rman_res_t adjstart, adjend, adjcount;
struct resource_list_entry *rle;
sc = device_get_softc(bus);
@@ -628,7 +628,7 @@ ps3bus_activate_resource(device_t bus, device_t child, int type, int rid,
return (ENOMEM);
rman_set_virtual(res, p);
rman_set_bustag(res, &bs_be_tag);
- rman_set_bushandle(res, (u_long)p);
+ rman_set_bushandle(res, (rman_res_t)p);
}
return (rman_activate_resource(res));
OpenPOWER on IntegriCloud