深度优先遍历设备树二进制对象
DTB 深度优先遍历的薄封装。
测试示例:
cargo run --release --example qemu-virt
设备树定义根据 devicetree-specification-v0.4-rc1,DTB v17。
特性:
- stable rust
-
no_std; - 不需要
alloc; - 可选是否检查首部正确性;
- 提前终止遍历;
- 低开销跳过节点;
- 内置标准属性解析;
-
compatible -
model -
phandle -
status -
#address-cells -
#size-cells -
reg -
virtual-reg -
ranges -
dma-ranges -
dma-coherent -
name (deprecated) -
device_type (deprecated)
-