Home
last modified time | relevance | path

Searched refs:fdt (Results 1 – 18 of 18) sorted by relevance

/DragonOS/kernel/src/driver/open_firmware/
H A Dfdt.rs3 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 Dmod.rs3 pub mod fdt; module
/DragonOS/kernel/src/arch/riscv64/
H A Dtime.rs4 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 Dmmio.rs1 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 Dtransport_mmio.rs4 use fdt::node::FdtNode;
/DragonOS/kernel/src/arch/riscv64/pci/
H A Dmod.rs7 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 Dpci_host_ecam.rs1 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 Dmod.rs1 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 Dfdt.rs5 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 Dmod.rs12 mod fdt; module
H A Dmemmap.rs12 use super::{fdt::EFIFdtParams, tables::MemoryDescriptor, EFIManager};
H A Dinit.rs11 open_firmware::fdt::open_firmware_fdt_driver,
/DragonOS/kernel/src/arch/riscv64/driver/
H A Dof.rs4 driver::open_firmware::fdt::OpenFirmwareFdtDriver,
/DragonOS/kernel/
H A DCargo.toml43 fdt = { git = "https://git.mirrors.dragonos.org.cn/DragonOS-Community/fdt", rev = "9862813020" }
/DragonOS/kernel/src/driver/irqchip/
H A Driscv_sifive_plic.rs27 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 Dboot.rs101 pub fn fdt(&self) -> Option<VirtAddr> { in fdt() method
/DragonOS/kernel/src/arch/riscv64/mm/
H A Dmod.rs7 driver::open_firmware::fdt::open_firmware_fdt_driver,
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.9.md632 * 从fdt的chosen段获取几个需要的字段