LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: akpm@osdl.org
To: paulus@samba.org
Cc: akpm@osdl.org, sfr@canb.auug.org.au, boutcher@us.ibm.com,
	linuxppc-dev@ozlabs.org, linuxppc64-dev@ozlabs.org
Subject: [patch 37/43] ppc64: make dma_addr_t 64 bits
Date: Fri, 28 Oct 2005 17:46:52 -0700	[thread overview]
Message-ID: <200510290047.j9T0lMO5030114@shell0.pdx.osdl.net> (raw)


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 {
_

                 reply	other threads:[~2005-10-29  0:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200510290047.j9T0lMO5030114@shell0.pdx.osdl.net \
    --to=akpm@osdl.org \
    --cc=boutcher@us.ibm.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=linuxppc64-dev@ozlabs.org \
    --cc=paulus@samba.org \
    --cc=sfr@canb.auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox