diff options
Diffstat (limited to 'include/linux/of_address.h')
-rw-r--r-- | include/linux/of_address.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/of_address.h b/include/linux/of_address.h index 507daad0bc8d..a6dfa03a4676 100644 --- a/include/linux/of_address.h +++ b/include/linux/of_address.h @@ -36,6 +36,8 @@ extern struct device_node *of_find_matching_node_by_address( const struct of_device_id *matches, u64 base_address); extern void __iomem *of_iomap(struct device_node *device, int index); +extern void __iomem *of_iomap_by_name(struct device_node *device, + const char *name); /* Extract an address from a device, returns the region size and * the address space flags too. The PCI version uses a BAR number @@ -43,6 +45,8 @@ extern void __iomem *of_iomap(struct device_node *device, int index); */ extern const __be32 *of_get_address(struct device_node *dev, int index, u64 *size, unsigned int *flags); +extern const __be32 *of_get_address_by_name(struct device_node *dev, + const char *name, u64 *size, unsigned int *flags); extern int pci_register_io_range(phys_addr_t addr, resource_size_t size); extern unsigned long pci_address_to_pio(phys_addr_t addr); |