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.rs19 use virtio_drivers::transport::{DeviceType, Transport};
62 DeviceType::Block => virtio_blk(transport, dev_id, dev_parent), in virtio_device_init()
63 DeviceType::GPU => { in virtio_device_init()
66 DeviceType::Input => { in virtio_device_init()
69 DeviceType::Network => virtio_net(transport, dev_id, dev_parent), in virtio_device_init()
H A Dtransport_pci.rs25 transport::{DeviceStatus, DeviceType, Transport},
70 fn device_type(pci_device_id: u16) -> DeviceType { in device_type() argument
72 TRANSITIONAL_NETWORK => DeviceType::Network, in device_type()
73 TRANSITIONAL_BLOCK => DeviceType::Block, in device_type()
74 TRANSITIONAL_MEMORY_BALLOONING => DeviceType::MemoryBalloon, in device_type()
75 TRANSITIONAL_CONSOLE => DeviceType::Console, in device_type()
76 TRANSITIONAL_SCSI_HOST => DeviceType::ScsiHost, in device_type()
77 TRANSITIONAL_ENTROPY_SOURCE => DeviceType::EntropySource, in device_type()
78 TRANSITIONAL_9P_TRANSPORT => DeviceType::_9P, in device_type()
79 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.rs76 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/test/
H A Dpt_device.rs13 device::{bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable},
124 fn dev_type(&self) -> DeviceType { in dev_type() argument
125 DeviceType::Pci in dev_type()
/DragonOS/kernel/src/driver/pci/
H A Ddevice.rs10 bus::Bus, device_manager, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable,
192 fn dev_type(&self) -> DeviceType { in dev_type() argument
193 return DeviceType::Bus; in dev_type()
H A Draw_device.rs11 device::{bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable},
132 fn dev_type(&self) -> DeviceType { in dev_type() argument
133 DeviceType::Pci in dev_type()
/DragonOS/kernel/src/driver/base/platform/
H A Dplatform_device.rs14 Device, DeviceCommonData, DevicePrivateData, DeviceType, IdTable,
279 fn dev_type(&self) -> DeviceType { in dev_type() argument
280 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,
342 virtio_drivers::transport::DeviceType::Block as u32 in device_type_id()
351 fn dev_type(&self) -> DeviceType { in dev_type() argument
352 DeviceType::Net in dev_type()
507 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,
121 fn dev_type(&self) -> DeviceType { in dev_type() argument
122 DeviceType::Rtc in dev_type()
/DragonOS/kernel/src/driver/net/
H A Dvirtio_net.rs28 Device, DeviceCommonData, DeviceId, DeviceType, IdTable,
193 fn dev_type(&self) -> DeviceType { in dev_type() argument
194 DeviceType::Net in dev_type()
290 virtio_drivers::transport::DeviceType::Network as u32 in device_type_id()
445 fn dev_type(&self) -> DeviceType { in dev_type() argument
446 DeviceType::Net in dev_type()
808 virtio_drivers::transport::DeviceType::Network as u32, in new()
H A Dloopback.rs5 use crate::driver::base::device::{Device, DeviceCommonData, DeviceType, IdTable};
382 fn dev_type(&self) -> DeviceType { in dev_type() argument
383 DeviceType::Net in dev_type()
/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,
333 fn dev_type(&self) -> DeviceType { in dev_type() argument
334 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/base/
H A Dcpu.rs19 Device, DeviceCommonData, DeviceType, IdTable,
147 fn dev_type(&self) -> DeviceType { in dev_type() argument
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dmod.rs20 DeviceCommonData, DeviceKObjType, DeviceState, DeviceType, IdTable,
262 fn dev_type(&self) -> DeviceType { in dev_type() argument
263 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/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/tty/
H A Dtty_device.rs19 Device, DeviceKObjType, DeviceType, IdTable,
504 fn dev_type(&self) -> crate::driver::base::device::DeviceType { in dev_type() argument
505 DeviceType::Char 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