diff options
author | Olivier Martin <olivier.martin@arm.com> | 2014-02-12 15:11:29 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-02-12 15:11:29 +0000 |
commit | 3e8576dd363fe516ceec1ddc4aff51bc5a3d4bd7 (patch) | |
tree | 0faf3447412162142137c8d11d4479f7ca871ff9 /EmbeddedPkg/Include/libfdt_env.h | |
parent | e30acb47ce10ef7774dc4501860824381b2713fc (diff) | |
download | edk2-platforms-3e8576dd363fe516ceec1ddc4aff51bc5a3d4bd7.tar.xz |
EmbeddedPkg/FdtLib: Updated libfdt to 1.4.0
Last commit from git://git.jdl.com/software/dtc.git:
commit 65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf
Author: Jon Loeliger <jdl@jdl.com>
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 <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15237 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmbeddedPkg/Include/libfdt_env.h')
-rw-r--r-- | EmbeddedPkg/Include/libfdt_env.h | 12 |
1 files changed, 8 insertions, 4 deletions
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 <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
+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);
}
|