summaryrefslogtreecommitdiff
path: root/include/linux/of_address.h
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2020-07-28 18:36:55 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-07-28 23:49:52 +0300
commit2f96593ecc37e98bf99525f0629128080533867f (patch)
treed99017087283702c58da0c75b24c5839ca8bed4c /include/linux/of_address.h
parentaa35a5eee58cce7863b7c0d5e94e3e2e6de59d08 (diff)
downloadlinux-2f96593ecc37e98bf99525f0629128080533867f.tar.xz
of_address: Add bus type match for pci ranges parser
So the parser can be used to parse range property of ISA bus. As they're all using PCI-like method of range property, there is no need start a new parser. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'include/linux/of_address.h')
-rw-r--r--include/linux/of_address.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/of_address.h b/include/linux/of_address.h
index 763022ed3456..88bc943405cd 100644
--- a/include/linux/of_address.h
+++ b/include/linux/of_address.h
@@ -6,8 +6,11 @@
#include <linux/of.h>
#include <linux/io.h>
+struct of_bus;
+
struct of_pci_range_parser {
struct device_node *node;
+ struct of_bus *bus;
const __be32 *range;
const __be32 *end;
int na;
@@ -119,6 +122,7 @@ static inline void __iomem *of_iomap(struct device_node *device, int index)
return NULL;
}
#endif
+#define of_range_parser_init of_pci_range_parser_init
#if defined(CONFIG_OF_ADDRESS) && defined(CONFIG_PCI)
extern const __be32 *of_get_pci_address(struct device_node *dev, int bar_no,