(
fdt: &mut FdtWriter,
dev_info: &HashMap<(DeviceType, String), T, S>,
)
| 288 | } |
| 289 | |
| 290 | fn create_devices_node<T: DeviceInfoForFdt + Clone + Debug, S: ::std::hash::BuildHasher>( |
| 291 | fdt: &mut FdtWriter, |
| 292 | dev_info: &HashMap<(DeviceType, String), T, S>, |
| 293 | ) -> FdtWriterResult<()> { |
| 294 | for ((device_type, _device_id), info) in dev_info { |
| 295 | match device_type { |
| 296 | DeviceType::Serial => create_serial_node(fdt, info)?, |
| 297 | DeviceType::Virtio(_) => unreachable!(), |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | Ok(()) |
| 302 | } |
| 303 | |
| 304 | fn create_pci_nodes(fdt: &mut FdtWriter, pci_device_info: &[PciSpaceInfo]) -> FdtWriterResult<()> { |
| 305 | // Add node for PCIe controller. |
no test coverage detected