summaryrefslogtreecommitdiff
path: root/src/include/device/resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/device/resource.h')
-rw-r--r--src/include/device/resource.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/device/resource.h b/src/include/device/resource.h
index 7ab8065c23..a5c7f0a31a 100644
--- a/src/include/device/resource.h
+++ b/src/include/device/resource.h
@@ -80,6 +80,7 @@ struct resource {
/* Generic resource helper functions */
struct device;
+struct bus;
extern void compact_resources(struct device * dev);
extern struct resource *probe_resource(struct device *dev, unsigned index);
extern struct resource *new_resource(struct device * dev, unsigned index);
@@ -88,4 +89,13 @@ extern resource_t resource_end(struct resource *resource);
extern resource_t resource_max(struct resource *resource);
extern void report_resource_stored(struct device * dev, struct resource *resource, const char *comment);
+typedef void (*resource_search_t)(void *gp, struct device *dev, struct resource *res);
+extern void search_bus_resources(struct bus *bus,
+ unsigned long type_mask, unsigned long type,
+ resource_search_t search, void *gp);
+
+extern void search_global_resources(
+ unsigned long type_mask, unsigned long type,
+ resource_search_t search, void *gp);
+
#endif /* RESOURCE_H */