/DragonOS/kernel/src/driver/open_firmware/ |
H A D | fdt.rs | 3 use fdt::{ 68 let fdt = self.fdt_ref()?; in early_scan_device_tree() localVariable 69 self.early_init_scan_nodes(&fdt); in early_scan_device_tree() 81 let fdt_vaddr = boot_params().read().fdt().ok_or(SystemError::ENODEV)?; in fdt_ref() 82 let fdt: Fdt<'_> = unsafe { in fdt_ref() localVariable 83 fdt::Fdt::from_ptr(fdt_vaddr.as_ptr()).map_err(|e| { in fdt_ref() 88 Ok(fdt) in fdt_ref() 91 fn early_init_scan_nodes(&self, fdt: &Fdt) { in early_init_scan_nodes() 92 self.early_init_scan_root(fdt) in early_init_scan_nodes() 95 self.early_init_scan_chosen(fdt).unwrap_or_else(|_| { in early_init_scan_nodes() [all …]
|
H A D | mod.rs | 3 pub mod fdt; module
|
/DragonOS/kernel/src/arch/riscv64/ |
H A D | time.rs | 4 driver::open_firmware::fdt::open_firmware_fdt_driver, 19 let fdt = open_firmware_fdt_driver().fdt_ref(); in init_time_freq() localVariable 20 if fdt.is_err() { in init_time_freq() 24 let fdt = fdt.unwrap(); in init_time_freq() localVariable 25 let cpu_node = fdt.find_node("/cpus"); in init_time_freq()
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | mmio.rs | 1 use fdt::node::FdtNode; 6 open_firmware::fdt::open_firmware_fdt_driver, virtio::transport_mmio::VirtIOMmioTransport, 18 let fdt = open_firmware_fdt_driver().fdt_ref()?; in do_probe_virtio_mmio() localVariable 27 for node in open_firmware_fdt_driver().find_node_by_compatible(&fdt, "virtio,mmio") { in do_probe_virtio_mmio()
|
H A D | transport_mmio.rs | 4 use fdt::node::FdtNode;
|
/DragonOS/kernel/src/arch/riscv64/pci/ |
H A D | mod.rs | 7 open_firmware::fdt::open_firmware_fdt_driver, 35 let fdt = open_firmware_fdt_driver().fdt_ref()?; in riscv_pci_init() localVariable 37 pci_host_ecam_driver_init(&fdt)?; in riscv_pci_init()
|
H A D | pci_host_ecam.rs | 1 use fdt::{node::FdtNode, Fdt}; 7 open_firmware::fdt::open_firmware_fdt_driver, 13 pub(super) fn pci_host_ecam_driver_init(fdt: &Fdt<'_>) -> Result<(), SystemError> { in pci_host_ecam_driver_init() 62 for node in open_firmware_fdt_driver().find_node_by_compatible(&fdt, "pci-host-ecam-generic") { in pci_host_ecam_driver_init()
|
/DragonOS/kernel/src/arch/riscv64/init/ |
H A D | mod.rs | 1 use fdt::node::FdtNode; 11 driver::{firmware::efi::init::efi_init, open_firmware::fdt::open_firmware_fdt_driver}, 115 let fdt = in early_setup_arch() localVariable 116 unsafe { fdt::Fdt::from_ptr(fdt_paddr.data() as *const u8).expect("Failed to parse fdt!") }; in early_setup_arch() 120 arch_boot_params_guard.arch.fdt_size = fdt.total_size(); in early_setup_arch() 132 print_node(fdt.find_node("/").unwrap(), 0); in early_setup_arch()
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | fdt.rs | 5 use fdt::Fdt; 111 let fdt = unsafe { in get_fdt_params() localVariable 115 .fdt() in get_fdt_params() 128 let node = fdt.find_node(param.path); in get_fdt_params() 160 prop: &fdt::node::NodeProperty<'_>, in do_get_fdt_prop()
|
H A D | mod.rs | 12 mod fdt; module
|
H A D | memmap.rs | 12 use super::{fdt::EFIFdtParams, tables::MemoryDescriptor, EFIManager};
|
H A D | init.rs | 11 open_firmware::fdt::open_firmware_fdt_driver,
|
/DragonOS/kernel/src/arch/riscv64/driver/ |
H A D | of.rs | 4 driver::open_firmware::fdt::OpenFirmwareFdtDriver,
|
/DragonOS/kernel/ |
H A D | Cargo.toml | 43 fdt = { git = "https://git.mirrors.dragonos.org.cn/DragonOS-Community/fdt", rev = "9862813020" }
|
/DragonOS/kernel/src/driver/irqchip/ |
H A D | riscv_sifive_plic.rs | 27 use fdt::node::FdtNode; 33 driver::open_firmware::fdt::open_firmware_fdt_driver, 415 let fdt = open_firmware_fdt_driver().fdt_ref()?; in riscv_sifive_plic_init() localVariable 416 let all_plics = fdt.all_nodes().filter(|x| { in riscv_sifive_plic_init()
|
/DragonOS/kernel/src/init/ |
H A D | boot.rs | 101 pub fn fdt(&self) -> Option<VirtAddr> { in fdt() method
|
/DragonOS/kernel/src/arch/riscv64/mm/ |
H A D | mod.rs | 7 driver::open_firmware::fdt::open_firmware_fdt_driver,
|
/DragonOS/docs/community/ChangeLog/V0.1.x/ |
H A D | V0.1.9.md | 632 * 从fdt的chosen段获取几个需要的字段
|