res = fdt_setprop(__devtree, node,"sony,lv1-highmem", memreg2,sizeof(memreg2));if(res <0) fatal("couldn't set memory.sony,lv1-highmem property"); res = fdt_add_mem_rsv(__devtree, (u64)__devtree, DT_BUFSIZE);if(res <0) fatal("couldn't add reservation for the devtree")...
CHECK(fdt_add_mem_rsv(fdt, TEST_ADDR_2, TEST_SIZE_2)); CHECK(fdt_setprop_string(fdt,0,"compatible","test_tree1")); CHECK(fdt_setprop_cell(fdt,0,"prop-int", TEST_VALUE_1)); CHECK(fdt_setprop_string(fdt,0,"prop-str", TEST_STRING_1)); OFF_CHECK(offset, fdt_add_subnode(fdt...
defined(CONFIG_SILENT_U_BOOT_ONLY) if (images->os.os == IH_OS_LINUX) fixup_silent_linux();#endif...ret && (states & BOOTM_STATE_FDT)) { boot_fdt_add_mem_rsv_regions(&images->lmb, images->ft_addr);...ret = boot_relocate_fdt(&images->lmb, &images->ft_addr, &images->ft_...
u32 off_mem_rsvmap; /* offset to memory reserve map */ u32 version; /* format version */ u32 last_comp_version; /* last compatible version */ /* version 2 fields below */ u32 boot_cpuid_phys; /* Which physical CPU id we're booting on */ /* version 3 fields below */ u...
u32 off_mem_rsvmap; /* offset to memory reserve map */ u32 version; /* format version */ u32 last_comp_version; /* last compatible version */ /* version 2 fields below */ u32 boot_cpuid_phys; /* Which physical CPU id we're ...
unsigned long start, mem, size; struct device_node **allnextp = &allnodes; DBG(" -> unflatten_device_tree()/n"); /* First pass, scan for size */ start = ((unsigned long)initial_boot_params) + initial_boot_params->off_dt_struct; ...
(blob);#endif#ifdefCONFIG_SYS_NS16550do_fixup_by_compat_u32(blob,"ns16550","clock-frequency", CONFIG_SYS_NS16550_CLK,1);#endif#ifdefCONFIG_MP/* Reserve the boot page so OSes dont use it */off = fdt_add_mem_rsv(blob, bootpg, (u64)4096);if(off <0)printf("%s: %s\n", _...
intfdt_num_mem_rsv(constvoid*fdt){inti =0;while(fdt64_to_cpu(_fdt_mem_rsv(fdt, i)->size) !=0) i++;returni; } 开发者ID:ForayJones,项目名称:iods,代码行数:8,代码来源:fdt_ro.c 示例4: fdt_num_mem_rsv ▲点赞 1▼ /* memory reserve map의 개수를 구한다.*/intfdt...
}if(prop ==NULL&& offset == fdt_path_offset(fdtp,"/chosen")) {if(strcmp(propname,"fdtbootcpu") ==0)return(sizeof(cell_t));if(strcmp(propname,"fdtmemreserv") ==0)return(sizeof(uint64_t)*2*fdt_num_mem_rsv(fdtp));
在下文中一共展示了fdt_add_subnode函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。 示例1: powernv_populate_ipmi_bt ▲点赞 6▼ staticvoidpowernv_populate_ipmi_bt(ISADevice *d,void*fdt,intlpc_off){constchar...