aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ioport.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2011-05-07 14:53:16 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2011-07-30 15:21:39 -0400
commit1c388919d89ca35741e9c4d3255adf87f76f0c06 (patch)
tree3858d97ce2f91cdf6ec3badafbf66ef058e178a7 /include/linux/ioport.h
parent88efd0bbc0fe403a9948e6f94cc48b9f15ee4861 (diff)
resources: Add lookup_resource()
Add a function to find an existing resource by a resource start address. This allows to implement simple allocators (with a malloc/free-alike API) on top of the resource system. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'include/linux/ioport.h')
-rw-r--r--include/linux/ioport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ioport.h b/include/linux/ioport.h
index e9bb22cba764..63eb429ecbe6 100644
--- a/include/linux/ioport.h
+++ b/include/linux/ioport.h
@@ -132,6 +132,7 @@ extern int allocate_resource(struct resource *root, struct resource *new,
132 resource_size_t, 132 resource_size_t,
133 resource_size_t), 133 resource_size_t),
134 void *alignf_data); 134 void *alignf_data);
135struct resource *lookup_resource(struct resource *root, resource_size_t start);
135int adjust_resource(struct resource *res, resource_size_t start, 136int adjust_resource(struct resource *res, resource_size_t start,
136 resource_size_t size); 137 resource_size_t size);
137resource_size_t resource_alignment(struct resource *res); 138resource_size_t resource_alignment(struct resource *res);