Searched refs:VirtIOTransport (Results 1 – 5 of 5) sorted by relevance
/DragonOS/kernel/src/driver/virtio/ |
H A D | transport.rs | 20 pub enum VirtIOTransport { enum 25 impl VirtIOTransport { impl 28 VirtIOTransport::Pci(transport) => transport.irq(), in irq() 29 VirtIOTransport::Mmio(transport) => IrqNumber::new(transport.irq().data()), in irq() 35 if let VirtIOTransport::Pci(transport) = self { in setup_irq() 57 impl core::fmt::Debug for VirtIOTransport { implementation 60 VirtIOTransport::Pci(_) => write!(f, "VirtIOTransport::Pci"), in fmt() 61 VirtIOTransport::Mmio(_) => write!(f, "VirtIOTransport::Mmio"), in fmt() 66 impl Transport for VirtIOTransport { implementation 70 VirtIOTransport::Pci(transport) => transport.finish_init(), in finish_init() [all …]
|
H A D | mmio.rs | 9 use super::{transport::VirtIOTransport, virtio::virtio_device_init}; 23 virtio_device_init(VirtIOTransport::Mmio(mmio_transport), device_id, None); in do_probe_virtio_mmio()
|
H A D | virtio.rs | 13 use crate::driver::virtio::transport::VirtIOTransport; 41 let transport = VirtIOTransport::Pci(transport); in virtio_probe_pci() 57 transport: VirtIOTransport, in virtio_device_init() argument
|
/DragonOS/kernel/src/driver/net/ |
H A D | virtio_net.rs | 37 transport::VirtIOTransport, 93 pub fn new(transport: VirtIOTransport, dev_id: Arc<DeviceId>) -> Option<Arc<Self>> { in new() argument 100 let driver_net: VirtIONet<HalImpl, VirtIOTransport, 2> = in new() 101 match VirtIONet::<HalImpl, VirtIOTransport, 2>::new(transport, 4096) { in new() 303 inner: VirtIONet<HalImpl, VirtIOTransport, 2>, 307 const fn new(inner: VirtIONet<HalImpl, VirtIOTransport, 2>) -> Self { in new() argument 313 type Target = VirtIONet<HalImpl, VirtIOTransport, 2>; 514 pub fn new(driver_net: VirtIONet<HalImpl, VirtIOTransport, 2>) -> Self { in new() argument 623 transport: VirtIOTransport, in virtio_net() argument
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 34 transport::VirtIOTransport, 70 transport: VirtIOTransport, in virtio_blk() argument 166 pub fn new(transport: VirtIOTransport, dev_id: Arc<DeviceId>) -> Option<Arc<Self>> { in new() argument 175 let device_inner = VirtIOBlk::<HalImpl, VirtIOTransport>::new(transport); in new() 181 let mut device_inner: VirtIOBlk<HalImpl, VirtIOTransport> = device_inner.unwrap(); in new() 291 device_inner: VirtIOBlk<HalImpl, VirtIOTransport>,
|