path: root/sys/sparc64/fhc/fhc.c
diff options
authorJustin Hibbits <jhibbits@FreeBSD.org>2016-01-27 02:23:54 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2016-01-27 02:23:54 +0000
commit2dd1bdf1834c53d048d3d9a7079b45afea5cecd7 (patch)
tree5ac500b634909ff3fe2556201aef7e16d85316d2 /sys/sparc64/fhc/fhc.c
parent1cdc5f0b8794e82f0cbf9dca07967ca2559ba331 (diff)
Convert rman to use rman_res_t instead of u_long
Summary: Migrate to using the semi-opaque type rman_res_t to specify rman resources. For now, this is still compatible with u_long. This is step one in migrating rman to use uintmax_t for resources instead of u_long. Going forward, this could feasibly be used to specify architecture-specific definitions of resource ranges, rather than baking a specific integer type into the API. This change has been broken out to facilitate MFC'ing drivers back to 10 without breaking ABI. Reviewed By: jhb Sponsored by: Alex Perez/Inertial Computing Differential Revision: https://reviews.freebsd.org/D5075
Notes: svn path=/head/; revision=294883
Diffstat (limited to 'sys/sparc64/fhc/fhc.c')
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sparc64/fhc/fhc.c b/sys/sparc64/fhc/fhc.c
index 4d6a6bd01e85..3de81ff2b162 100644
--- a/sys/sparc64/fhc/fhc.c
+++ b/sys/sparc64/fhc/fhc.c
@@ -420,7 +420,7 @@ fhc_setup_intr(device_t bus, device_t child, struct resource *r, int flags,
static struct resource *
fhc_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 resource_list *rl;
struct resource_list_entry *rle;
@@ -479,8 +479,8 @@ fhc_alloc_resource(device_t bus, device_t child, int type, int *rid,
static int
fhc_adjust_resource(device_t bus __unused, device_t child __unused,
- int type __unused, struct resource *r __unused, u_long start __unused,
- u_long end __unused)
+ int type __unused, struct resource *r __unused, rman_res_t start __unused,
+ rman_res_t end __unused)
return (ENXIO);