Home
last modified time | relevance | path

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

/DragonOS/kernel/src/driver/virtio/
H A Dvirtio.rs21 use virtio_drivers::transport::{DeviceType, Transport};
65 DeviceType::Block => virtio_blk(transport, dev_id, dev_parent), in virtio_device_init()
66 DeviceType::GPU => { in virtio_device_init()
69 DeviceType::Input => { in virtio_device_init()
72 DeviceType::Network => virtio_net(transport, dev_id, dev_parent), in virtio_device_init()
H A Dtransport_pci.rs27 transport::{DeviceStatus, DeviceType, Transport},
73 fn device_type(pci_device_id: u16) -> DeviceType { in device_type() argument
75 TRANSITIONAL_NETWORK => DeviceType::Network, in device_type()
76 TRANSITIONAL_BLOCK => DeviceType::Block, in device_type()
77 TRANSITIONAL_MEMORY_BALLOONING => DeviceType::MemoryBalloon, in device_type()
78 TRANSITIONAL_CONSOLE => DeviceType::Console, in device_type()
79 TRANSITIONAL_SCSI_HOST => DeviceType::ScsiHost, in device_type()
80 TRANSITIONAL_ENTROPY_SOURCE => DeviceType::EntropySource, in device_type()
81 TRANSITIONAL_9P_TRANSPORT => DeviceType::_9P, in device_type()
82 id if id >= PCI_DEVICE_ID_OFFSET => DeviceType::from(id - PCI_DEVICE_ID_OFFSET), in device_type()
[all …]
H A Dtransport_mmio.rs91 fn device_type(&self) -> virtio_drivers::transport::DeviceType { in device_type() argument
H A Dtransport.rs40 fn device_type(&self) -> virtio_drivers::transport::DeviceType { in device_type() argument
/DragonOS/kernel/src/driver/input/serio/i8042/
H A Di8042_ports.rs11 device::{bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable},
57 fn dev_type(&self) -> DeviceType { in dev_type() argument
58 DeviceType::Char in dev_type()
H A Di8042_device.rs10 bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceState, DeviceType, IdTable,
61 fn dev_type(&self) -> DeviceType { in dev_type() argument
62 DeviceType::Char in dev_type()
/DragonOS/kernel/src/driver/pci/
H A Ddevice.rs10 bus::Bus, device_manager, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable,
185 fn dev_type(&self) -> DeviceType { in dev_type() argument
186 return DeviceType::Bus; in dev_type()
H A Draw_device.rs11 device::{bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable},
108 fn dev_type(&self) -> DeviceType { in dev_type() argument
109 DeviceType::Pci in dev_type()
/DragonOS/kernel/src/driver/pci/test/
H A Dpt_device.rs13 device::{bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable},
98 fn dev_type(&self) -> DeviceType { in dev_type() argument
99 DeviceType::Pci in dev_type()
/DragonOS/kernel/src/driver/base/platform/
H A Dplatform_device.rs14 Device, DeviceCommonData, DevicePrivateData, DeviceType, IdTable,
275 fn dev_type(&self) -> DeviceType { in dev_type() argument
276 return DeviceType::Bus; in dev_type()
/DragonOS/kernel/src/arch/x86_64/driver/
H A Drtc.rs18 DeviceType, IdTable,
113 fn dev_type(&self) -> DeviceType { in dev_type() argument
114 DeviceType::Rtc in dev_type()
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs27 Device, DeviceCommonData, DeviceId, DeviceType, IdTable,
335 virtio_drivers::transport::DeviceType::Block as u32 in device_type_id()
344 fn dev_type(&self) -> DeviceType { in dev_type() argument
345 DeviceType::Net in dev_type()
500 virtio_drivers::transport::DeviceType::Block as u32, in new()
/DragonOS/kernel/src/driver/rtc/
H A Dsysfs.rs12 bus::Bus, device_manager, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable,
120 fn dev_type(&self) -> DeviceType { in dev_type() argument
121 DeviceType::Rtc in dev_type()
/DragonOS/kernel/src/driver/net/
H A Dvirtio_net.rs28 Device, DeviceCommonData, DeviceId, DeviceType, IdTable,
186 fn dev_type(&self) -> DeviceType { in dev_type() argument
187 DeviceType::Net in dev_type()
283 virtio_drivers::transport::DeviceType::Network as u32 in device_type_id()
438 fn dev_type(&self) -> DeviceType { in dev_type() argument
439 DeviceType::Net in dev_type()
795 virtio_drivers::transport::DeviceType::Network as u32, in new()
H A Dloopback.rs5 use crate::driver::base::device::{Device, DeviceCommonData, DeviceType, IdTable};
376 fn dev_type(&self) -> DeviceType { in dev_type() argument
377 DeviceType::Net in dev_type()
/DragonOS/kernel/src/driver/base/
H A Dcpu.rs21 Device, DeviceCommonData, DeviceType, IdTable,
142 fn dev_type(&self) -> DeviceType { in dev_type() argument
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dmod.rs14 bus::Bus, device_manager, driver::Driver, Device, DeviceCommonData, DeviceType,
184 fn dev_type(&self) -> DeviceType { in dev_type() argument
185 DeviceType::Char in dev_type()
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dfbmem.rs21 sys_dev_char_kset, Device, DeviceCommonData, DeviceType, IdTable,
332 fn dev_type(&self) -> DeviceType { in dev_type() argument
333 DeviceType::Char in dev_type()
/DragonOS/kernel/src/driver/net/e1000e/
H A De1000e_driver.rs8 device::{bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable},
237 fn dev_type(&self) -> DeviceType { in dev_type() argument
238 DeviceType::Net in dev_type()
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dmod.rs19 DeviceCommonData, DeviceKObjType, DeviceState, DeviceType, IdTable,
222 fn dev_type(&self) -> DeviceType { in dev_type() argument
223 DeviceType::Serial in dev_type()
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_device.rs19 DeviceCommonData, DeviceType, IdTable,
434 fn dev_type(&self) -> DeviceType { in dev_type() argument
435 DeviceType::Char in dev_type()
/DragonOS/kernel/src/driver/tty/
H A Dtty_device.rs19 Device, DeviceKObjType, DeviceType, IdTable,
500 fn dev_type(&self) -> crate::driver::base::device::DeviceType { in dev_type() argument
501 DeviceType::Char in dev_type()
/DragonOS/kernel/src/driver/disk/ahci/
H A Dahcidisk.rs12 use crate::driver::base::device::{Device, DeviceType, IdTable};
469 fn dev_type(&self) -> DeviceType { in dev_type() argument
470 return DeviceType::Block; in dev_type()
/DragonOS/kernel/src/driver/video/fbdev/
H A Dvesafb.rs18 DeviceType, IdTable,
154 fn dev_type(&self) -> DeviceType { in dev_type() argument
155 DeviceType::Char in dev_type()
/DragonOS/kernel/src/driver/base/device/
H A Dmod.rs141 fn dev_type(&self) -> DeviceType; in dev_type() argument
301 pub enum DeviceType { enum