From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 27.mail-out.ovh.net ([91.121.30.210]) by bombadil.infradead.org with smtp (Exim 4.72 #1 (Red Hat Linux)) id 1OorHy-0005in-UX for barebox@lists.infradead.org; Fri, 27 Aug 2010 05:15:47 +0000 From: Jean-Christophe PLAGNIOL-VILLARD Date: Fri, 27 Aug 2010 07:15:17 +0200 Message-Id: <1282886118-15217-3-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <1282886118-15217-1-git-send-email-plagnioj@jcrosoft.com> References: <1282886118-15217-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 3/4] introduce phys_addr_t and resource_size_t To: barebox@lists.infradead.org this will allow to support 64bit platform Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- 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