fdt.type_name as type
时间: 2024-06-03 10:07:58 浏览: 107
Sorry, as an AI language model, I cannot provide a specific answer without more context. Can you please provide more information about the code snippet or the programming language you are referring to?
相关问题
set_fdt_emi_info
set_fdt_emi_info是一个命令,用于设置Flattened Device Tree (FDT)的EMI信息。FDT是一种数据结构,用于描述硬件设备和系统配置信息。EMI信息是与存储设备和存储子系统相关的配置信息,包括EMI时钟频率、EMI时序等。通过set_fdt_emi_info命令,可以将这些配置信息写入FDT中,以便在系统启动时使用。具体的用法和参数可以参考所引用的内容。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [《Linux操作系统-系统移植》第4章 内核移植(IMX283+Linux3.14)](https://blog.csdn.net/u013162035/article/details/79874046)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
void __init early_init_fdt_scan_reserved_mem(void) { int n; u64 base, size; if (!initial_boot_params) return; /* Reserve the dtb region */ early_init_dt_reserve_memory_arch(__pa(initial_boot_params), fdt_totalsize(initial_boot_params), 0); /* Process header /memreserve/ fields */ for (n = 0; ; n++) { fdt_get_mem_rsv(initial_boot_params, n, &base, &size); if (!size) break; early_init_dt_reserve_memory_arch(base, size, 0); } of_scan_flat_dt(__fdt_scan_reserved_mem, NULL); fdt_init_reserved_mem(); }
void __init early_init_fdt_scan_reserved_mem(void)
{
int n;
u64 base, size;
// 如果没有初始引导参数,则直接返回
if (!initial_boot_params)
return;
// 保留 dtb 区域
early_init_dt_reserve_memory_arch(__pa(initial_boot_params),
fdt_totalsize(initial_boot_params),
0);
// 处理 /memreserve/ 字段
for (n = 0;; n++) {
fdt_get_mem_rsv(initial_boot_params, n, &base, &size);
if (!size)
break;
early_init_dt_reserve_memory_arch(base, size, 0);
}
// 扫描保留的内存区域
of_scan_flat_dt(__fdt_scan_reserved_mem, NULL);
// 初始化保留的内存
fdt_init_reserved_mem();
}
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)