diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-06-05 12:36:22 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-06-05 12:36:22 +0100 |
commit | bd63ce27d9d62bc40a962b991cbbbe4f0dc913d2 (patch) | |
tree | bd998b187b7ea4e9f28c0c61912b701bc6ff6420 /include/linux/of_address.h | |
parent | 1fb333489fb917c704ad43e51b45c12f52215a9c (diff) | |
parent | 6b74f61a471ad0f3a5e919e314d4f60cd3966f5e (diff) |
Merge branch 'devel-stable' into for-next
Diffstat (limited to 'include/linux/of_address.h')
-rw-r--r-- | include/linux/of_address.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/of_address.h b/include/linux/of_address.h index 5f6ed6b182b8..839a3521b28e 100644 --- a/include/linux/of_address.h +++ b/include/linux/of_address.h @@ -63,6 +63,9 @@ extern int of_pci_range_parser_init(struct of_pci_range_parser *parser, extern struct of_pci_range *of_pci_range_parser_one( struct of_pci_range_parser *parser, struct of_pci_range *range); +extern int of_dma_get_range(struct device_node *np, u64 *dma_addr, + u64 *paddr, u64 *size); +extern bool of_dma_is_coherent(struct device_node *np); #else /* CONFIG_OF_ADDRESS */ static inline struct device_node *of_find_matching_node_by_address( struct device_node *from, @@ -90,6 +93,17 @@ static inline struct of_pci_range *of_pci_range_parser_one( { return NULL; } + +static inline int of_dma_get_range(struct device_node *np, u64 *dma_addr, + u64 *paddr, u64 *size) +{ + return -ENODEV; +} + +static inline bool of_dma_is_coherent(struct device_node *np) +{ + return false; +} #endif /* CONFIG_OF_ADDRESS */ #ifdef CONFIG_OF |