* [patch 37/43] ppc64: make dma_addr_t 64 bits
@ 2005-10-29 0:46 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2005-10-29 0:46 UTC (permalink / raw)
To: paulus; +Cc: akpm, sfr, boutcher, linuxppc-dev, linuxppc64-dev
From: Stephen Rothwell <sfr@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@samba.org>
Acked-by: Dave Boutcher <boutcher@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@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 {
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-29 0:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-29 0:46 [patch 37/43] ppc64: make dma_addr_t 64 bits akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox