[patch 37/43] ppc64: make dma_addr_t 64 bits

akpm at osdl.org akpm at osdl.org
Sat Oct 29 10:46:52 EST 2005


From: Stephen Rothwell <sfr at canb.auug.org.au>

There has been a need expressed for dma_addr_t to be 64 bits on PPC64. 
This patch does that.  I have built it for pSeries and iSeries and booted a
virtual only iSeries partition.

Signed-off-by: Anton Blanchard <anton at samba.org>
Acked-by: Dave Boutcher <boutcher at us.ibm.com>
Signed-off-by: Andrew Morton <akpm at osdl.org>
---

 include/asm-ppc64/scatterlist.h |    2 +-
 include/asm-ppc64/types.h       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -puN include/asm-ppc64/scatterlist.h~ppc64-make-dma_addr_t-64-bits include/asm-ppc64/scatterlist.h
--- devel/include/asm-ppc64/scatterlist.h~ppc64-make-dma_addr_t-64-bits	2005-10-28 17:44:04.000000000 -0700
+++ devel-akpm/include/asm-ppc64/scatterlist.h	2005-10-28 17:44:04.000000000 -0700
@@ -19,7 +19,7 @@ struct scatterlist {
 	unsigned int length;
 
 	/* For TCE support */
-	u32 dma_address;
+	dma_addr_t dma_address;
 	u32 dma_length;
 };
 
diff -puN include/asm-ppc64/types.h~ppc64-make-dma_addr_t-64-bits include/asm-ppc64/types.h
--- devel/include/asm-ppc64/types.h~ppc64-make-dma_addr_t-64-bits	2005-10-28 17:44:04.000000000 -0700
+++ devel-akpm/include/asm-ppc64/types.h	2005-10-28 17:44:04.000000000 -0700
@@ -63,7 +63,7 @@ typedef unsigned long u64;
 
 typedef __vector128 vector128;
 
-typedef u32 dma_addr_t;
+typedef u64 dma_addr_t;
 typedef u64 dma64_addr_t;
 
 typedef struct {
_



More information about the Linuxppc-dev mailing list