aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/_types.h
diff options
context:
space:
mode:
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/sys/_types.h
parent1cdc5f0b8794e82f0cbf9dca07967ca2559ba331 (diff)
downloadsrc-2dd1bdf1834c53d048d3d9a7079b45afea5cecd7.tar.gz
src-2dd1bdf1834c53d048d3d9a7079b45afea5cecd7.zip
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
Notes: svn path=/head/; revision=294883
Diffstat (limited to 'sys/sys/_types.h')
-rw-r--r--sys/sys/_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/_types.h b/sys/sys/_types.h
index 7904a4f77898..3b3c16d3684e 100644
--- a/sys/sys/_types.h
+++ b/sys/sys/_types.h
@@ -112,4 +112,6 @@ typedef union {
__int64_t _mbstateL; /* for alignment */
} __mbstate_t;
+typedef unsigned long __rman_res_t;
+
#endif /* !_SYS__TYPES_H_ */