]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Include/fdt.h
ARM Packages: Fixed line endings
[mirror_edk2.git] / EmbeddedPkg / Include / fdt.h
index 6e7a8b39733298e6d46154fa8f56cdc543572ca7..3b7c37102d547af4b7a39e96ea2ab1eb5625e83c 100644 (file)
@@ -1,74 +1,74 @@
-/** @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 _FDT_H
-#define _FDT_H
-
-#ifndef __ASSEMBLY__
-
-struct fdt_header {
-       uint32_t magic;                  /* magic word FDT_MAGIC */
-       uint32_t totalsize;              /* total size of DT block */
-       uint32_t off_dt_struct;          /* offset to structure */
-       uint32_t off_dt_strings;         /* offset to strings */
-       uint32_t off_mem_rsvmap;         /* offset to memory reserve map */
-       uint32_t version;                /* format version */
-       uint32_t last_comp_version;      /* last compatible version */
-
-       /* version 2 fields below */
-       uint32_t boot_cpuid_phys;        /* Which physical CPU id we're
-                                           booting on */
-       /* version 3 fields below */
-       uint32_t size_dt_strings;        /* size of the strings block */
-
-       /* version 17 fields below */
-       uint32_t size_dt_struct;         /* size of the structure block */
-};
-
-struct fdt_reserve_entry {
-       uint64_t address;
-       uint64_t size;
-};
-
-struct fdt_node_header {
-       uint32_t tag;
-       char name[0];
-};
-
-struct fdt_property {
-       uint32_t tag;
-       uint32_t len;
-       uint32_t nameoff;
-       char data[0];
-};
-
-#endif /* !__ASSEMBLY */
-
-#define FDT_MAGIC      0xd00dfeed      /* 4: version, 4: total size */
-#define FDT_TAGSIZE    sizeof(uint32_t)
-
-#define FDT_BEGIN_NODE 0x1             /* Start node: full name */
-#define FDT_END_NODE   0x2             /* End node */
-#define FDT_PROP       0x3             /* Property: name off,
-                                          size, content */
-#define FDT_NOP                0x4             /* nop */
-#define FDT_END                0x9
-
-#define FDT_V1_SIZE    (7*sizeof(uint32_t))
-#define FDT_V2_SIZE    (FDT_V1_SIZE + sizeof(uint32_t))
-#define FDT_V3_SIZE    (FDT_V2_SIZE + sizeof(uint32_t))
-#define FDT_V16_SIZE   FDT_V3_SIZE
-#define FDT_V17_SIZE   (FDT_V16_SIZE + sizeof(uint32_t))
-
-#endif /* _FDT_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 _FDT_H\r
+#define _FDT_H\r
+\r
+#ifndef __ASSEMBLY__\r
+\r
+struct fdt_header {\r
+       uint32_t magic;                  /* magic word FDT_MAGIC */\r
+       uint32_t totalsize;              /* total size of DT block */\r
+       uint32_t off_dt_struct;          /* offset to structure */\r
+       uint32_t off_dt_strings;         /* offset to strings */\r
+       uint32_t off_mem_rsvmap;         /* offset to memory reserve map */\r
+       uint32_t version;                /* format version */\r
+       uint32_t last_comp_version;      /* last compatible version */\r
+\r
+       /* version 2 fields below */\r
+       uint32_t boot_cpuid_phys;        /* Which physical CPU id we're\r
+                                           booting on */\r
+       /* version 3 fields below */\r
+       uint32_t size_dt_strings;        /* size of the strings block */\r
+\r
+       /* version 17 fields below */\r
+       uint32_t size_dt_struct;         /* size of the structure block */\r
+};\r
+\r
+struct fdt_reserve_entry {\r
+       uint64_t address;\r
+       uint64_t size;\r
+};\r
+\r
+struct fdt_node_header {\r
+       uint32_t tag;\r
+       char name[0];\r
+};\r
+\r
+struct fdt_property {\r
+       uint32_t tag;\r
+       uint32_t len;\r
+       uint32_t nameoff;\r
+       char data[0];\r
+};\r
+\r
+#endif /* !__ASSEMBLY */\r
+\r
+#define FDT_MAGIC      0xd00dfeed      /* 4: version, 4: total size */\r
+#define FDT_TAGSIZE    sizeof(uint32_t)\r
+\r
+#define FDT_BEGIN_NODE 0x1             /* Start node: full name */\r
+#define FDT_END_NODE   0x2             /* End node */\r
+#define FDT_PROP       0x3             /* Property: name off,\r
+                                          size, content */\r
+#define FDT_NOP                0x4             /* nop */\r
+#define FDT_END                0x9\r
+\r
+#define FDT_V1_SIZE    (7*sizeof(uint32_t))\r
+#define FDT_V2_SIZE    (FDT_V1_SIZE + sizeof(uint32_t))\r
+#define FDT_V3_SIZE    (FDT_V2_SIZE + sizeof(uint32_t))\r
+#define FDT_V16_SIZE   FDT_V3_SIZE\r
+#define FDT_V17_SIZE   (FDT_V16_SIZE + sizeof(uint32_t))\r
+\r
+#endif /* _FDT_H */\r