[PATCH] make dma_addr_t 64 bits

Stephen Rothwell sfr at canb.auug.org.au
Fri Jul 8 17:04:54 EST 2005


Hi all,

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.

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

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