summaryrefslogtreecommitdiffstats
path: root/sys/sys/rman.h
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2001-12-21 21:40:55 +0000
committertmm <tmm@FreeBSD.org>2001-12-21 21:40:55 +0000
commitdadac692002f0972c05f77679ecf7a78e8446731 (patch)
treefd3fd84eab4e6d6f24fe8e79f8ec19e5b3c7509a /sys/sys/rman.h
parent16ac60366771ec42dee26cdd84ddd63cc06ef0aa (diff)
downloadFreeBSD-src-dadac692002f0972c05f77679ecf7a78e8446731.zip
FreeBSD-src-dadac692002f0972c05f77679ecf7a78e8446731.tar.gz
Add a rman_reserve_resource_bound() function that takes an additional
argument specifying the boundary for the resource allocation. Use ulmin()/ulmax() instead of min()/max() in some places to correctly deal with the u_long resource range specifications.
Diffstat (limited to 'sys/sys/rman.h')
-rw-r--r--sys/sys/rman.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/rman.h b/sys/sys/rman.h
index ed01d4e..ba63b8d 100644
--- a/sys/sys/rman.h
+++ b/sys/sys/rman.h
@@ -126,6 +126,9 @@ int rman_release_resource(struct resource *r);
struct resource *rman_reserve_resource(struct rman *rm, u_long start,
u_long end, u_long count,
u_int flags, struct device *dev);
+struct resource *rman_reserve_resource_bound(struct rman *rm, u_long start,
+ u_long end, u_long count, u_long bound,
+ u_int flags, struct device *dev);
uint32_t rman_make_alignment_flags(uint32_t size);
#define rman_get_start(r) ((r)->r_start)
OpenPOWER on IntegriCloud