]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Include/libfdt_env.h
EmbeddedPkg/FdtLib: Updated libfdt to 1.4.0
[mirror_edk2.git] / EmbeddedPkg / Include / libfdt_env.h
index 6cc311fe7303ed03cf97d9f7fc334abba7cdbfd2..a8ab4634932d326d58f0f6da7420b0a2bb3eb56e 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 *\r
-*  Copyright (c) 2011-2012, ARM Limited. All rights reserved.\r
+*  Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
 *  \r
 *  This program and the accompanying materials                          \r
 *  are licensed and made available under the terms and conditions of the BSD License         \r
 #include <Library/BaseLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
 \r
+typedef UINT16 fdt16_t;\r
+typedef UINT32 fdt32_t;\r
+typedef UINT64 fdt64_t;\r
+\r
 typedef UINT8 uint8_t;\r
 typedef UINT16 uint16_t;\r
 typedef UINT32 uint32_t;\r
@@ -25,19 +29,19 @@ typedef UINT64 uint64_t;
 typedef UINTN uintptr_t;\r
 typedef UINTN size_t;\r
 \r
-static inline uint16_t fdt16_to_cpu(uint16_t x)\r
+static inline uint16_t fdt16_to_cpu(fdt16_t x)\r
 {\r
   return SwapBytes16 (x);\r
 }\r
 #define cpu_to_fdt16(x) fdt16_to_cpu(x)\r
 \r
-static inline uint32_t fdt32_to_cpu(uint32_t x)\r
+static inline uint32_t fdt32_to_cpu(fdt32_t x)\r
 {\r
   return SwapBytes32 (x);\r
 }\r
 #define cpu_to_fdt32(x) fdt32_to_cpu(x)\r
 \r
-static inline uint64_t fdt64_to_cpu(uint64_t x)\r
+static inline uint64_t fdt64_to_cpu(fdt64_t x)\r
 {\r
   return SwapBytes64 (x);\r
 }\r