Skip to content

Commit

Permalink
of: move of_translate_dma_address to of_address.h
Browse files Browse the repository at this point in the history
of_translate_dma_address is implemented in common code, so move the
declaration there too.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: linuxppc-dev@lists.ozlabs.org
  • Loading branch information
Rob Herring committed Oct 10, 2013
1 parent 4acf4b9 commit d0dfa16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/powerpc/include/asm/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
* OF address retreival & translation
*/

/* Translate a DMA address from device space to CPU space */
extern u64 of_translate_dma_address(struct device_node *dev,
const __be32 *in_addr);

/* Parse the ibm,dma-window property of an OF node into the busno, phys and
* size parameters.
*/
Expand Down
4 changes: 4 additions & 0 deletions include/linux/of_address.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ static inline void of_pci_range_to_resource(struct of_pci_range *range,
res->name = np->full_name;
}

/* Translate a DMA address from device space to CPU space */
extern u64 of_translate_dma_address(struct device_node *dev,
const __be32 *in_addr);

#ifdef CONFIG_OF_ADDRESS
extern u64 of_translate_address(struct device_node *np, const __be32 *addr);
extern bool of_can_translate_address(struct device_node *dev);
Expand Down

0 comments on commit d0dfa16

Please sign in to comment.