aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/ps3
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2016-02-16 21:30:55 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2016-02-16 21:30:55 +0000
commita721585d2730a274bdbc07bce39ae49894271ae1 (patch)
treed392e1d267a9f197a7e6dcd30c8c623664ab9eaa /sys/powerpc/ps3
parente78e0c43ba9ed0d4b2ad68cc7bba3caa248a9565 (diff)
downloadsrc-a721585d2730a274bdbc07bce39ae49894271ae1.tar.gz
src-a721585d2730a274bdbc07bce39ae49894271ae1.zip
Another conversion u_long -> rman_res_t
Notes
Notes: svn path=/head/; revision=295673
Diffstat (limited to 'sys/powerpc/ps3')
-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 d7659e44f5d4..15817fdad6e9 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));