mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH 3/4] introduce phys_addr_t and resource_size_t
Date: Fri, 27 Aug 2010 07:15:17 +0200	[thread overview]
Message-ID: <1282886118-15217-3-git-send-email-plagnioj@jcrosoft.com> (raw)
In-Reply-To: <1282886118-15217-1-git-send-email-plagnioj@jcrosoft.com>

this will allow to support 64bit platform

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 include/linux/types.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/include/linux/types.h b/include/linux/types.h
index 2241364..96e5708 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -139,6 +139,14 @@ typedef __u64 __bitwise __be64;
 typedef __u16 __bitwise __sum16;
 typedef __u32 __bitwise __wsum;
 
+#ifdef CONFIG_PHYS_ADDR_T_64BIT
+typedef u64 phys_addr_t;
+#else
+typedef u32 phys_addr_t;
+#endif
+
+typedef phys_addr_t resource_size_t;
+
 struct ustat {
 	__kernel_daddr_t	f_tfree;
 	__kernel_ino_t		f_tinode;
-- 
1.7.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2010-08-27  5:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-27  5:15 [PATCH 1/4] xfuncs.h: include linux/types.h to avoid non decleration of size_t Jean-Christophe PLAGNIOL-VILLARD
2010-08-27  5:15 ` [PATCH 2/4] introduce pure_initcall Jean-Christophe PLAGNIOL-VILLARD
2010-08-27  5:15 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2010-08-27  5:15 ` [PATCH 4/4] use resource_size_t for device ressoruces Jean-Christophe PLAGNIOL-VILLARD
2010-08-27  5:41   ` Uwe Kleine-König
2010-08-27  5:56   ` [PATCH 4/4 v2] use resource_size_t for device resources Jean-Christophe PLAGNIOL-VILLARD

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=1282886118-15217-3-git-send-email-plagnioj@jcrosoft.com \
    --to=plagnioj@jcrosoft.com \
    --cc=barebox@lists.infradead.org \
    /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