]>
git.proxmox.com Git - mirror_edk2.git/blob - EmbeddedPkg/Include/fdt.h
3 * Copyright (c) 2011-2012, ARM Limited. All rights reserved.
5 * This program and the accompanying materials
6 * are licensed and made available under the terms and conditions of the BSD License
7 * which accompanies this distribution. The full text of the license may be found at
8 * http://opensource.org/licenses/bsd-license.php
10 * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
21 uint32_t magic
; /* magic word FDT_MAGIC */
22 uint32_t totalsize
; /* total size of DT block */
23 uint32_t off_dt_struct
; /* offset to structure */
24 uint32_t off_dt_strings
; /* offset to strings */
25 uint32_t off_mem_rsvmap
; /* offset to memory reserve map */
26 uint32_t version
; /* format version */
27 uint32_t last_comp_version
; /* last compatible version */
29 /* version 2 fields below */
30 uint32_t boot_cpuid_phys
; /* Which physical CPU id we're
32 /* version 3 fields below */
33 uint32_t size_dt_strings
; /* size of the strings block */
35 /* version 17 fields below */
36 uint32_t size_dt_struct
; /* size of the structure block */
39 struct fdt_reserve_entry
{
44 struct fdt_node_header
{
56 #endif /* !__ASSEMBLY */
58 #define FDT_MAGIC 0xd00dfeed /* 4: version, 4: total size */
59 #define FDT_TAGSIZE sizeof(uint32_t)
61 #define FDT_BEGIN_NODE 0x1 /* Start node: full name */
62 #define FDT_END_NODE 0x2 /* End node */
63 #define FDT_PROP 0x3 /* Property: name off,
65 #define FDT_NOP 0x4 /* nop */
68 #define FDT_V1_SIZE (7*sizeof(uint32_t))
69 #define FDT_V2_SIZE (FDT_V1_SIZE + sizeof(uint32_t))
70 #define FDT_V3_SIZE (FDT_V2_SIZE + sizeof(uint32_t))
71 #define FDT_V16_SIZE FDT_V3_SIZE
72 #define FDT_V17_SIZE (FDT_V16_SIZE + sizeof(uint32_t))