From 3e8576dd363fe516ceec1ddc4aff51bc5a3d4bd7 Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Wed, 12 Feb 2014 15:11:29 +0000 Subject: EmbeddedPkg/FdtLib: Updated libfdt to 1.4.0 Last commit from git://git.jdl.com/software/dtc.git: commit 65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf Author: Jon Loeliger Date: Sat Jun 22 12:54:28 2013 -0500 Tag Version 1.4.0 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15237 6f19259b-4bc3-4df7-8a09-765794883524 --- EmbeddedPkg/Include/libfdt_env.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'EmbeddedPkg/Include/libfdt_env.h') diff --git a/EmbeddedPkg/Include/libfdt_env.h b/EmbeddedPkg/Include/libfdt_env.h index 6cc311fe73..a8ab463493 100644 --- a/EmbeddedPkg/Include/libfdt_env.h +++ b/EmbeddedPkg/Include/libfdt_env.h @@ -1,6 +1,6 @@ /** @file * -* Copyright (c) 2011-2012, ARM Limited. All rights reserved. +* Copyright (c) 2011-2014, ARM Limited. All rights reserved. * * This program and the accompanying materials * are licensed and made available under the terms and conditions of the BSD License @@ -18,6 +18,10 @@ #include #include +typedef UINT16 fdt16_t; +typedef UINT32 fdt32_t; +typedef UINT64 fdt64_t; + typedef UINT8 uint8_t; typedef UINT16 uint16_t; typedef UINT32 uint32_t; @@ -25,19 +29,19 @@ typedef UINT64 uint64_t; typedef UINTN uintptr_t; typedef UINTN size_t; -static inline uint16_t fdt16_to_cpu(uint16_t x) +static inline uint16_t fdt16_to_cpu(fdt16_t x) { return SwapBytes16 (x); } #define cpu_to_fdt16(x) fdt16_to_cpu(x) -static inline uint32_t fdt32_to_cpu(uint32_t x) +static inline uint32_t fdt32_to_cpu(fdt32_t x) { return SwapBytes32 (x); } #define cpu_to_fdt32(x) fdt32_to_cpu(x) -static inline uint64_t fdt64_to_cpu(uint64_t x) +static inline uint64_t fdt64_to_cpu(fdt64_t x) { return SwapBytes64 (x); } -- cgit v1.2.3