]>
git.proxmox.com Git - mirror_edk2.git/blob - EmbeddedPkg/Include/libfdt_env.h
dfd3bac01fcf298d3a2b8412f1132bb25283625c
3 * Copyright (c) 2011-2014, ARM Limited. All rights reserved.
5 * SPDX-License-Identifier: BSD-2-Clause-Patent
12 #include <Library/BaseLib.h>
13 #include <Library/BaseMemoryLib.h>
15 typedef UINT16 fdt16_t
;
16 typedef UINT32 fdt32_t
;
17 typedef UINT64 fdt64_t
;
19 typedef UINT8
uint8_t;
20 typedef UINT16
uint16_t;
21 typedef UINT32
uint32_t;
22 typedef UINT64
uint64_t;
23 typedef UINTN
uintptr_t;
26 static inline uint16_t
31 return SwapBytes16 (x
);
34 #define cpu_to_fdt16(x) fdt16_to_cpu(x)
36 static inline uint32_t
41 return SwapBytes32 (x
);
44 #define cpu_to_fdt32(x) fdt32_to_cpu(x)
46 static inline uint64_t
51 return SwapBytes64 (x
);
54 #define cpu_to_fdt64(x) fdt64_to_cpu(x)
63 return CopyMem (dest
, src
, len
);
73 return CopyMem (dest
, src
, n
);
83 return SetMem (s
, n
, c
);
93 return CompareMem (dest
, src
, len
);
103 return ScanMem8 (s
, n
, c
);
111 return AsciiStrLen (str
);
124 return AsciiStrStr (s
, pattern
);
133 return AsciiStrnLenS (str
, strsz
);
142 return AsciiStrCmp (str1
, str2
);
152 return AsciiStrnCmp (str1
, str2
, strsz
);
162 return AsciiStrCpyS (dest
, dest_max
, source
);
165 #endif /* _LIBFDT_ENV_H */