[PATCH] ppc64: make dma_addr_t 64 bits

Anton Blanchard anton at samba.org
Sat Oct 15 12:14:48 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>
---

diff -ruN linus/include/asm-ppc64/scatterlist.h linus-dma64/include/asm-ppc64/scatterlist.h
--- linus/include/asm-ppc64/scatterlist.h	2005-06-27 16:08:08.000000000 +1000
+++ linus-dma64/include/asm-ppc64/scatterlist.h	2005-07-08 16:45:07.000000000 +1000
@@ -19,7 +19,7 @@
 	unsigned int length;
 
 	/* For TCE support */
-	u32 dma_address;
+	dma_addr_t dma_address;
 	u32 dma_length;
 };
 
diff -ruN linus/include/asm-ppc64/types.h linus-dma64/include/asm-ppc64/types.h
--- linus/include/asm-ppc64/types.h	2005-06-27 16:08:08.000000000 +1000
+++ linus-dma64/include/asm-ppc64/types.h	2005-07-08 16:41:08.000000000 +1000
@@ -63,7 +63,7 @@
 
 typedef __vector128 vector128;
 
-typedef u32 dma_addr_t;
+typedef u64 dma_addr_t;
 typedef u64 dma64_addr_t;
 
 typedef struct {




More information about the Linuxppc64-dev mailing list