diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-07-28 18:36:55 +0300 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2020-07-28 23:49:52 +0300 |
commit | 2f96593ecc37e98bf99525f0629128080533867f (patch) | |
tree | d99017087283702c58da0c75b24c5839ca8bed4c /include/linux/of_address.h | |
parent | aa35a5eee58cce7863b7c0d5e94e3e2e6de59d08 (diff) | |
download | linux-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.h | 4 |
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, |