Home
last modified time | relevance | path

Searched refs:VirtIOTransport (Results 1 – 5 of 5) sorted by relevance

/DragonOS/kernel/src/driver/virtio/
H A Dtransport.rs20 pub enum VirtIOTransport { enum
25 impl VirtIOTransport { implementation
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()
58 impl core::fmt::Debug for VirtIOTransport { implementation
61 VirtIOTransport::Pci(_) => write!(f, "VirtIOTransport::Pci"), in fmt()
62 VirtIOTransport::Mmio(_) => write!(f, "VirtIOTransport::Mmio"), in fmt()
67 impl Transport for VirtIOTransport { implementation
71 VirtIOTransport::Pci(transport) => transport.finish_init(), in finish_init()
[all …]
H A Dmmio.rs9 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 Dvirtio.rs13 use crate::driver::virtio::transport::VirtIOTransport;
44 let transport = VirtIOTransport::Pci(transport); in virtio_probe_pci()
60 transport: VirtIOTransport, in virtio_device_init() argument
/DragonOS/kernel/src/driver/net/
H A Dvirtio_net.rs37 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
617 transport: VirtIOTransport, in virtio_net() argument
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs34 transport::VirtIOTransport,
70 transport: VirtIOTransport, in virtio_blk() argument
165 pub fn new(transport: VirtIOTransport, dev_id: Arc<DeviceId>) -> Option<Arc<Self>> { in new() argument
174 let device_inner = VirtIOBlk::<HalImpl, VirtIOTransport>::new(transport); in new()
180 let mut device_inner: VirtIOBlk<HalImpl, VirtIOTransport> = device_inner.unwrap(); in new()
290 device_inner: VirtIOBlk<HalImpl, VirtIOTransport>,