Home
last modified time | relevance | path

Searched refs:fdt (Results 1 – 14 of 14) sorted by relevance

/device/linaro/bootloader/edk2/EmbeddedPkg/Include/
Dlibfdt.h125 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int checklen);
126 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen) in fdt_offset_ptr_w() argument
128 return (void *)(uintptr_t)fdt_offset_ptr(fdt, offset, checklen); in fdt_offset_ptr_w()
131 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset);
137 int fdt_next_node(const void *fdt, int offset, int *depth);
146 int fdt_first_subnode(const void *fdt, int offset);
159 int fdt_next_subnode(const void *fdt, int offset);
165 #define fdt_get_header(fdt, field) \ argument
166 (fdt32_to_cpu(((const struct fdt_header *)(fdt))->field))
167 #define fdt_magic(fdt) (fdt_get_header(fdt, magic)) argument
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/FdtLib/
Dfdt_rw.c58 static int _fdt_blocks_misordered(const void *fdt, in _fdt_blocks_misordered() argument
61 return (fdt_off_mem_rsvmap(fdt) < FDT_ALIGN(sizeof(struct fdt_header), 8)) in _fdt_blocks_misordered()
62 || (fdt_off_dt_struct(fdt) < in _fdt_blocks_misordered()
63 (fdt_off_mem_rsvmap(fdt) + mem_rsv_size)) in _fdt_blocks_misordered()
64 || (fdt_off_dt_strings(fdt) < in _fdt_blocks_misordered()
65 (fdt_off_dt_struct(fdt) + struct_size)) in _fdt_blocks_misordered()
66 || (fdt_totalsize(fdt) < in _fdt_blocks_misordered()
67 (fdt_off_dt_strings(fdt) + fdt_size_dt_strings(fdt))); in _fdt_blocks_misordered()
70 static int _fdt_rw_check_header(void *fdt) in _fdt_rw_check_header() argument
72 FDT_CHECK_HEADER(fdt); in _fdt_rw_check_header()
[all …]
Dfdt_sw.c58 static int _fdt_sw_check_header(void *fdt) in _fdt_sw_check_header() argument
60 if (fdt_magic(fdt) != FDT_SW_MAGIC) in _fdt_sw_check_header()
66 #define FDT_SW_CHECK_HEADER(fdt) \ argument
69 if ((err = _fdt_sw_check_header(fdt)) != 0) \
73 static void *_fdt_grab_space(void *fdt, size_t len) in _fdt_grab_space() argument
75 int offset = fdt_size_dt_struct(fdt); in _fdt_grab_space()
78 spaceleft = fdt_totalsize(fdt) - fdt_off_dt_struct(fdt) in _fdt_grab_space()
79 - fdt_size_dt_strings(fdt); in _fdt_grab_space()
84 fdt_set_size_dt_struct(fdt, offset + len); in _fdt_grab_space()
85 return _fdt_offset_ptr_w(fdt, offset); in _fdt_grab_space()
[all …]
Dfdt_ro.c58 static int _fdt_nodename_eq(const void *fdt, int offset, in _fdt_nodename_eq() argument
61 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1); in _fdt_nodename_eq()
78 const char *fdt_string(const void *fdt, int stroffset) in fdt_string() argument
80 return (const char *)fdt + fdt_off_dt_strings(fdt) + stroffset; in fdt_string()
83 static int _fdt_string_eq(const void *fdt, int stroffset, in _fdt_string_eq() argument
86 const char *p = fdt_string(fdt, stroffset); in _fdt_string_eq()
91 int fdt_get_mem_rsv(const void *fdt, int n, uint64_t *address, uint64_t *size) in fdt_get_mem_rsv() argument
93 FDT_CHECK_HEADER(fdt); in fdt_get_mem_rsv()
94 *address = fdt64_to_cpu(_fdt_mem_rsv(fdt, n)->address); in fdt_get_mem_rsv()
95 *size = fdt64_to_cpu(_fdt_mem_rsv(fdt, n)->size); in fdt_get_mem_rsv()
[all …]
Dfdt.c58 int fdt_check_header(const void *fdt) in fdt_check_header() argument
60 if (fdt_magic(fdt) == FDT_MAGIC) { in fdt_check_header()
62 if (fdt_version(fdt) < FDT_FIRST_SUPPORTED_VERSION) in fdt_check_header()
64 if (fdt_last_comp_version(fdt) > FDT_LAST_SUPPORTED_VERSION) in fdt_check_header()
66 } else if (fdt_magic(fdt) == FDT_SW_MAGIC) { in fdt_check_header()
68 if (fdt_size_dt_struct(fdt) == 0) in fdt_check_header()
77 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) in fdt_offset_ptr() argument
81 if (fdt_version(fdt) >= 0x11) in fdt_offset_ptr()
83 || ((offset + len) > fdt_size_dt_struct(fdt))) in fdt_offset_ptr()
86 p = _fdt_offset_ptr(fdt, offset); in fdt_offset_ptr()
[all …]
Dlibfdt_internal.h58 #define FDT_CHECK_HEADER(fdt) \ argument
61 if ((err = fdt_check_header(fdt)) != 0) \
65 int _fdt_check_node_offset(const void *fdt, int offset);
66 int _fdt_check_prop_offset(const void *fdt, int offset);
68 int _fdt_node_end_offset(void *fdt, int nodeoffset);
70 static inline const void *_fdt_offset_ptr(const void *fdt, int offset) in _fdt_offset_ptr() argument
72 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; in _fdt_offset_ptr()
75 static inline void *_fdt_offset_ptr_w(void *fdt, int offset) in _fdt_offset_ptr_w() argument
77 return (void *)(uintptr_t)_fdt_offset_ptr(fdt, offset); in _fdt_offset_ptr_w()
80 static inline const struct fdt_reserve_entry *_fdt_mem_rsv(const void *fdt, int n) in _fdt_mem_rsv() argument
[all …]
Dfdt_wip.c58 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, in fdt_setprop_inplace() argument
64 propval = fdt_getprop_w(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace()
83 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) in fdt_nop_property() argument
88 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property()
97 int _fdt_node_end_offset(void *fdt, int offset) in _fdt_node_end_offset() argument
102 offset = fdt_next_node(fdt, offset, &depth); in _fdt_node_end_offset()
107 int fdt_nop_node(void *fdt, int nodeoffset) in fdt_nop_node() argument
111 endoffset = _fdt_node_end_offset(fdt, nodeoffset); in fdt_nop_node()
115 _fdt_nop_region(fdt_offset_ptr_w(fdt, nodeoffset, 0), in fdt_nop_node()
DMakefile.libfdt7 LIBFDT_INCLUDES = fdt.h libfdt.h libfdt_env.h
9 LIBFDT_SRCS = fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c fdt_empty_tree.c
DFdtLib.inf34 fdt.c
/device/linaro/bootloader/edk2/ArmPkg/Application/LinuxLoader/
DLinuxLoaderFdt.c145 VOID* fdt; in PrepareFdt() local
205 fdt = (VOID*)(UINTN)NewFdtBlobBase; in PrepareFdt()
207 node = fdt_subnode_offset (fdt, 0, "chosen"); in PrepareFdt()
210 node = fdt_add_subnode (fdt, 0, "chosen"); in PrepareFdt()
219 BootArg = fdt_getprop (fdt, node, "bootargs", &lenp); in PrepareFdt()
229 …err = fdt_setprop (fdt, node, "bootargs", CommandLineArguments, AsciiStrSize (CommandLineArguments… in PrepareFdt()
240 …err = fdt_setprop (fdt, node, "linux,initrd-start", &InitrdImageStart, sizeof (EFI_PHYSICAL_ADDRES… in PrepareFdt()
245 … err = fdt_setprop (fdt, node, "linux,initrd-end", &InitrdImageEnd, sizeof (EFI_PHYSICAL_ADDRESS)); in PrepareFdt()
254 node = fdt_subnode_offset (fdt, 0, "memory"); in PrepareFdt()
257 node = fdt_add_subnode (fdt, 0, "memory"); in PrepareFdt()
[all …]
DLinuxLoader.uni69 " 'fdt.dtb' and the RAM boot file system 'ramdisk.img', all files\r\n"
71 " Shell> LinuxLoader fs2:Image -d fs2:fdt.dtb -f fs2:ramdisk.img \\\r\n"
74 " fs2:\> LinuxLoader Image -b fdt.dtb -f ramdisk.img \\\r\n"
80 " -d VenHw(E7223039-5836-41E1-B542-D7EC736C5E59)/fdt.dtb \\\r\n"
/device/linaro/bootloader/edk2/EmbeddedPkg/Drivers/FdtPlatformDxe/
DFdtPlatformDxe.uni82 "2. Set the EFI Shell file path 'fs0:\>fdt.dtb' to be the default path\r\n"
84 " Shell> setfdt fs0:fdt.dtb\r\n"
87 " Shell> setfdt MAC(0002f700570b,0x1)/IPv4(192.168.1.1)/fdt.dtb\r\n"
93 " . fdt.dtb is the file path to the FDT file on the server.\r\n"
DREADME.txt55 Shell file path (like "fs2:\boot\fdt.dtb") or a device path.
/device/linaro/bootloader/arm-trusted-firmware/docs/
Duser-guide.md670 Copy the chosen FDT blob as `fdt.dtb` to the directory from which the FVP