diff options
Diffstat (limited to 'include/linux/of_address.h')
-rw-r--r-- | include/linux/of_address.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/of_address.h b/include/linux/of_address.h index 2feda6ee6140..3118623c2c1f 100644 --- a/include/linux/of_address.h +++ b/include/linux/of_address.h | |||
@@ -1,11 +1,16 @@ | |||
1 | #ifndef __OF_ADDRESS_H | 1 | #ifndef __OF_ADDRESS_H |
2 | #define __OF_ADDRESS_H | 2 | #define __OF_ADDRESS_H |
3 | #include <linux/ioport.h> | 3 | #include <linux/ioport.h> |
4 | #include <linux/errno.h> | ||
4 | #include <linux/of.h> | 5 | #include <linux/of.h> |
5 | 6 | ||
6 | extern u64 of_translate_address(struct device_node *np, const __be32 *addr); | 7 | extern u64 of_translate_address(struct device_node *np, const __be32 *addr); |
7 | extern int of_address_to_resource(struct device_node *dev, int index, | 8 | extern int of_address_to_resource(struct device_node *dev, int index, |
8 | struct resource *r); | 9 | struct resource *r); |
10 | extern struct device_node *of_find_matching_node_by_address( | ||
11 | struct device_node *from, | ||
12 | const struct of_device_id *matches, | ||
13 | u64 base_address); | ||
9 | extern void __iomem *of_iomap(struct device_node *device, int index); | 14 | extern void __iomem *of_iomap(struct device_node *device, int index); |
10 | 15 | ||
11 | /* Extract an address from a device, returns the region size and | 16 | /* Extract an address from a device, returns the region size and |