X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EmbeddedPkg%2FInclude%2Flibfdt_env.h;h=3e24db94098c2651ea9c6f4484d2cd54b72fc8fa;hp=6cc311fe7303ed03cf97d9f7fc334abba7cdbfd2;hb=0bc94c748bc9b8645dd0566535708d88a5be0fe1;hpb=1e57a46299244793beb27e74be171d1540606999 diff --git a/EmbeddedPkg/Include/libfdt_env.h b/EmbeddedPkg/Include/libfdt_env.h index 6cc311fe73..3e24db9409 100644 --- a/EmbeddedPkg/Include/libfdt_env.h +++ b/EmbeddedPkg/Include/libfdt_env.h @@ -1,14 +1,14 @@ /** @file * -* Copyright (c) 2011-2012, 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 -* which accompanies this distribution. The full text of the license may be found at -* http://opensource.org/licenses/bsd-license.php +* Copyright (c) 2011-2014, ARM Limited. All rights reserved. * -* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +* This program and the accompanying materials +* are licensed and made available under the terms and conditions of the BSD License +* which accompanies this distribution. The full text of the license may be found at +* http://opensource.org/licenses/bsd-license.php +* +* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. * **/ @@ -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); }