summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-08-27 07:15:17 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-08-27 14:25:19 +0200
commit95556fc53d7bf609c0993268369f9173235e76c6 (patch)
treebe21f8892510bbb0596bdbc014104247829a552b /include
parentfe5a1bd4f59efafb7cd7904fe5bfdc2b3f162dd7 (diff)
downloadbarebox-95556fc53d7bf609c0993268369f9173235e76c6.tar.gz
barebox-95556fc53d7bf609c0993268369f9173235e76c6.tar.xz
introduce phys_addr_t and resource_size_t
this will allow to support 64bit platform Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/types.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h
index 2241364edb..96e5708208 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;