diff options
author | Mark Nelson <markn@au1.ibm.com> | 2008-07-04 15:05:45 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-07-09 02:30:44 -0400 |
commit | 3a4c6f0b1540811110a59112b4c83f55c229728c (patch) | |
tree | 6d2cc36af1100103ceb649a6fbdf8b2a9b526947 /arch/powerpc/kernel | |
parent | 7e5f8105030038de94b44a74cd7b64dd000830fc (diff) |
powerpc: move device_to_mask() to dma-mapping.h
Move device_to_mask() to dma-mapping.h because we need to use it from
outside dma_64.c in a later patch.
Signed-off-by: Mark Nelson <markn@au1.ibm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/dma_64.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/powerpc/kernel/dma_64.c b/arch/powerpc/kernel/dma_64.c index 3ae0c35d21f9..ae5708e3a312 100644 --- a/arch/powerpc/kernel/dma_64.c +++ b/arch/powerpc/kernel/dma_64.c | |||
@@ -15,15 +15,6 @@ | |||
15 | * Generic iommu implementation | 15 | * Generic iommu implementation |
16 | */ | 16 | */ |
17 | 17 | ||
18 | static inline unsigned long device_to_mask(struct device *dev) | ||
19 | { | ||
20 | if (dev->dma_mask && *dev->dma_mask) | ||
21 | return *dev->dma_mask; | ||
22 | /* Assume devices without mask can take 32 bit addresses */ | ||
23 | return 0xfffffffful; | ||
24 | } | ||
25 | |||
26 | |||
27 | /* Allocates a contiguous real buffer and creates mappings over it. | 18 | /* Allocates a contiguous real buffer and creates mappings over it. |
28 | * Returns the virtual address of the buffer and sets dma_handle | 19 | * Returns the virtual address of the buffer and sets dma_handle |
29 | * to the dma address (mapping) of the first page. | 20 | * to the dma address (mapping) of the first page. |