Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/driver/virtio/
Dvirtio.rs11 use virtio_drivers::transport::{DeviceType, Transport};
54 DeviceType::Block => { in virtio_device_init()
57 DeviceType::GPU => { in virtio_device_init()
60 DeviceType::Input => { in virtio_device_init()
63 DeviceType::Network => virtio_net(transport), in virtio_device_init()
Dtransport_pci.rs17 transport::{DeviceStatus, DeviceType, Transport},
59 fn device_type(pci_device_id: u16) -> DeviceType { in device_type() argument
61 TRANSITIONAL_NETWORK => DeviceType::Network, in device_type()
62 TRANSITIONAL_BLOCK => DeviceType::Block, in device_type()
63 TRANSITIONAL_MEMORY_BALLOONING => DeviceType::MemoryBalloon, in device_type()
64 TRANSITIONAL_CONSOLE => DeviceType::Console, in device_type()
65 TRANSITIONAL_SCSI_HOST => DeviceType::ScsiHost, in device_type()
66 TRANSITIONAL_ENTROPY_SOURCE => DeviceType::EntropySource, in device_type()
67 TRANSITIONAL_9P_TRANSPORT => DeviceType::_9P, in device_type()
68 id if id >= PCI_DEVICE_ID_OFFSET => DeviceType::from(id - PCI_DEVICE_ID_OFFSET), in device_type()
[all …]
/DragonOS-0.1.8/kernel/src/driver/base/platform/
Dmod.rs4 Device, DeviceError, DeviceState, DeviceType, IdTable, KObject,
355 fn dev_type(&self) -> DeviceType { in dev_type() argument
356 return DeviceType::Bus; in dev_type()
/DragonOS-0.1.8/kernel/src/driver/base/device/
Dmod.rs81 pub enum DeviceType { enum
179 fn dev_type(&self) -> DeviceType; in dev_type() argument
/DragonOS-0.1.8/kernel/src/driver/uart/
Duart.rs5 device::{driver::Driver, DeviceState, DeviceType, IdTable, KObject},
166 fn dev_type(&self) -> DeviceType { in dev_type() argument
167 DeviceType::Serial in dev_type()