]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Include/libfdt_env.h
ARM Packages: Fixed line endings
[mirror_edk2.git] / EmbeddedPkg / Include / libfdt_env.h
index d35b8692c6c13b509420c6d7e6c09414dbcddeb0..6cc311fe7303ed03cf97d9f7fc334abba7cdbfd2 100644 (file)
@@ -1,77 +1,77 @@
-/** @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                                            
-*
-*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
-*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
-*
-**/
-
-#ifndef _LIBFDT_ENV_H
-#define _LIBFDT_ENV_H
-
-#include <Library/BaseLib.h>
-#include <Library/BaseMemoryLib.h>
-
-typedef UINT8 uint8_t;
-typedef UINT16 uint16_t;
-typedef UINT32 uint32_t;
-typedef UINT64 uint64_t;
-typedef UINTN uintptr_t;
-typedef UINTN size_t;
-
-static inline uint16_t fdt16_to_cpu(uint16_t x)
-{
-  return SwapBytes16 (x);
-}
-#define cpu_to_fdt16(x) fdt16_to_cpu(x)
-
-static inline uint32_t fdt32_to_cpu(uint32_t x)
-{
-  return SwapBytes32 (x);
-}
-#define cpu_to_fdt32(x) fdt32_to_cpu(x)
-
-static inline uint64_t fdt64_to_cpu(uint64_t x)
-{
-  return SwapBytes64 (x);
-}
-#define cpu_to_fdt64(x) fdt64_to_cpu(x)
-
-static inline void* memcpy(void* dest, const void* src, size_t len) {
-  return CopyMem (dest, src, len);
-}
-
-static inline void *memmove(void *dest, const void *src, size_t n) {
-  return CopyMem (dest, src, n);
-}
-
-static inline void *memset(void *s, int c, size_t n) {
-  return SetMem (s, n, c);
-}
-
-static inline int memcmp(const void* dest, const void* src, int len) {
-  return CompareMem (dest, src, len);
-}
-
-static inline void *memchr(const void *s, int c, size_t n) {
-  return ScanMem8 (s, n, c);
-}
-
-static inline size_t strlen (const char* str) {
-  return AsciiStrLen (str);
-}
-
-static inline char *strchr(const char *s, int c) {
-  char pattern[2];
-  pattern[0] = c;
-  pattern[1] = 0;
-  return AsciiStrStr (s, pattern);
-}
-
-#endif /* _LIBFDT_ENV_H */
+/** @file\r
+*\r
+*  Copyright (c) 2011-2012, 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
+*  which accompanies this distribution.  The full text of the license may be found at        \r
+*  http://opensource.org/licenses/bsd-license.php                                            \r
+*\r
+*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+*\r
+**/\r
+\r
+#ifndef _LIBFDT_ENV_H\r
+#define _LIBFDT_ENV_H\r
+\r
+#include <Library/BaseLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
+\r
+typedef UINT8 uint8_t;\r
+typedef UINT16 uint16_t;\r
+typedef UINT32 uint32_t;\r
+typedef UINT64 uint64_t;\r
+typedef UINTN uintptr_t;\r
+typedef UINTN size_t;\r
+\r
+static inline uint16_t fdt16_to_cpu(uint16_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
+{\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
+{\r
+  return SwapBytes64 (x);\r
+}\r
+#define cpu_to_fdt64(x) fdt64_to_cpu(x)\r
+\r
+static inline void* memcpy(void* dest, const void* src, size_t len) {\r
+  return CopyMem (dest, src, len);\r
+}\r
+\r
+static inline void *memmove(void *dest, const void *src, size_t n) {\r
+  return CopyMem (dest, src, n);\r
+}\r
+\r
+static inline void *memset(void *s, int c, size_t n) {\r
+  return SetMem (s, n, c);\r
+}\r
+\r
+static inline int memcmp(const void* dest, const void* src, int len) {\r
+  return CompareMem (dest, src, len);\r
+}\r
+\r
+static inline void *memchr(const void *s, int c, size_t n) {\r
+  return ScanMem8 (s, n, c);\r
+}\r
+\r
+static inline size_t strlen (const char* str) {\r
+  return AsciiStrLen (str);\r
+}\r
+\r
+static inline char *strchr(const char *s, int c) {\r
+  char pattern[2];\r
+  pattern[0] = c;\r
+  pattern[1] = 0;\r
+  return AsciiStrStr (s, pattern);\r
+}\r
+\r
+#endif /* _LIBFDT_ENV_H */\r