MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / dtb_node_get_dts_dump

Function dtb_node_get_dts_dump

components/legacy/fdt/src/dtb_get.c:458–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458void dtb_node_get_dts_dump(struct dtb_node *dtb_node_head)
459{
460 if (dtb_node_head != NULL)
461 {
462 int i = dtb_node_head->header->memreserve_sz;
463
464 rt_kputs("/dts-v1/;\n");
465 while (i --> 0)
466 {
467 rt_kprintf("\n/memreserve/\t0x%lx 0x%zx;", dtb_node_head->header->memreserve[i].address, dtb_node_head->header->memreserve[i].size);
468 }
469
470 _dtb_node_printf_dtb_node_info(dtb_node_head);
471 }
472}
473
474static void _dtb_node_get_enum_dtb_node(struct dtb_node *dtb_node, void (callback(struct dtb_node *dtb_node)))
475{

Callers 1

dtb_dumpFunction · 0.85

Calls 3

rt_kputsFunction · 0.85
rt_kprintfFunction · 0.85

Tested by 1

dtb_dumpFunction · 0.68