Home
last modified time | relevance | path

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

12

/DragonOS/docs/kernel/filesystem/
H A Dsysfs.md38 devices: BTreeMap<IdTable, Arc<dyn Device>>, // 所有设备
56 drivers: BTreeMap<IdTable, Arc<dyn Driver>>, // 所有驱动
75 buses: BTreeMap<IdTable, Arc<dyn Bus>>, // 总线设备表
76 bus_drvs: BTreeMap<IdTable, Arc<dyn BusDriver>>, // 总线驱动表
/DragonOS/kernel/src/driver/base/platform/
H A Dmod.rs6 device_unregister, sys_devices_kset, DevicePrivateData, IdTable,
80 IdTable::new("platform".to_string(), None), in platform_bus_init()
H A Dplatform_device.rs14 Device, DeviceCommonData, DevicePrivateData, DeviceType, IdTable,
284 fn id_table(&self) -> IdTable { in id_table() argument
285 IdTable::new("platform".to_string(), None) in id_table()
/DragonOS/kernel/src/driver/pci/test/
H A Dpt_driver.rs13 Device, IdTable,
83 fn id_table(&self) -> Option<IdTable> { in id_table() argument
84 Some(IdTable::new("PciTestDriver".to_string(), None)) in id_table()
H A Dpt_device.rs13 device::{bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable},
128 fn id_table(&self) -> IdTable { in id_table() argument
129 IdTable::new("testPci".to_string(), None) in id_table()
/DragonOS/kernel/src/driver/input/serio/i8042/
H A Di8042_ports.rs11 device::{bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable},
61 fn id_table(&self) -> IdTable { in id_table() argument
62 IdTable::new(self.name(), None) in id_table()
H A Di8042_device.rs10 bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceState, DeviceType, IdTable,
65 fn id_table(&self) -> IdTable { in id_table() argument
66 IdTable::new(self.name(), None) in id_table()
H A Di8042_driver.rs10 device::{bus::Bus, driver::Driver, Device, IdTable},
102 fn id_table(&self) -> Option<IdTable> { in id_table() argument
103 Some(IdTable::new(I8042PlatformDevice::NAME.to_string(), None)) in id_table()
/DragonOS/kernel/src/driver/base/char/
H A Dmod.rs10 Device, IdTable, CHARDEVS, DEVMAP,
206 id_table: IdTable, in cdev_add() argument
228 pub fn cdev_del(id_table: IdTable, range: usize) { in cdev_del() argument
/DragonOS/kernel/src/driver/base/device/
H A Dmod.rs146 fn id_table(&self) -> IdTable; in id_table() argument
275 id_table: IdTable,
281 pub fn new(id_table: IdTable, state: DeviceState) -> Self { in new() argument
285 pub fn id_table(&self) -> &IdTable { in id_table() argument
317 pub struct IdTable { struct
323 impl IdTable { impl
328 pub fn new(basename: String, id: Option<DeviceNumber>) -> IdTable { in new() argument
329 return IdTable { basename, id }; in new()
349 impl Default for IdTable { implementation
351 IdTable::new("unknown".to_string(), None) in default()
[all …]
H A Ddriver.rs3 Device, DeviceMatchName, DeviceMatcher, IdTable,
64 fn id_table(&self) -> Option<IdTable>; in id_table() argument
/DragonOS/kernel/src/driver/pci/
H A Ddevice.rs10 bus::Bus, device_manager, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable,
196 fn id_table(&self) -> IdTable { in id_table() argument
197 IdTable::new("pci".to_string(), None) in id_table()
H A Draw_device.rs11 device::{bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable},
136 fn id_table(&self) -> IdTable { in id_table() argument
137 IdTable::new("testPci".to_string(), None) in id_table()
/DragonOS/kernel/src/driver/rtc/
H A Drtc_cmos.rs20 Device, IdTable,
124 fn id_table(&self) -> Option<IdTable> { in id_table() argument
125 Some(IdTable::new(Self::NAME.to_string(), None)) in id_table()
H A Dsysfs.rs12 bus::Bus, device_manager, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable,
125 fn id_table(&self) -> IdTable { in id_table() argument
126 IdTable::new(self.name.clone(), None) in id_table()
/DragonOS/kernel/src/driver/base/
H A Dcpu.rs19 Device, DeviceCommonData, DeviceType, IdTable,
151 fn id_table(&self) -> IdTable { in id_table() argument
152 IdTable::new("cpu".to_string(), None) in id_table()
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_driver.rs14 device::{bus::Bus, driver::Driver, Device, DeviceId, IdTable},
127 fn id_table(&self) -> Option<IdTable> { in id_table() argument
128 Some(IdTable::new("psmouse".to_string(), None)) in id_table()
/DragonOS/kernel/src/arch/x86_64/driver/
H A Drtc.rs18 DeviceType, IdTable,
117 fn id_table(&self) -> IdTable { in id_table() argument
118 IdTable::new(Self::NAME.to_string(), None) in id_table()
/DragonOS/kernel/src/driver/tty/
H A Dtty_device.rs19 Device, DeviceKObjType, DeviceType, IdTable,
101 id_table: IdTable,
110 pub fn new(name: String, id_table: IdTable, tty_type: TtyType) -> Arc<TtyDevice> { in new() argument
508 fn id_table(&self) -> crate::driver::base::device::IdTable { in id_table() argument
601 IdTable::new( in tty_init()
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs27 Device, DeviceCommonData, DeviceId, DeviceType, IdTable,
355 fn id_table(&self) -> IdTable { in id_table() argument
356 IdTable::new(VIRTIO_BLK_BASENAME.to_string(), None) in id_table()
559 fn id_table(&self) -> Option<IdTable> { in id_table() argument
560 Some(IdTable::new(VIRTIO_BLK_BASENAME.to_string(), None)) in id_table()
/DragonOS/kernel/src/driver/net/
H A Dvirtio_net.rs28 Device, DeviceCommonData, DeviceId, DeviceType, IdTable,
197 fn id_table(&self) -> IdTable { in id_table() argument
198 IdTable::new(VIRTIO_NET_BASENAME.to_string(), None) in id_table()
449 fn id_table(&self) -> IdTable { in id_table() argument
450 IdTable::new(VIRTIO_NET_BASENAME.to_string(), None) in id_table()
878 fn id_table(&self) -> Option<IdTable> { in id_table() argument
879 Some(IdTable::new(VIRTIO_NET_BASENAME.to_string(), None)) in id_table()
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dmod.rs20 DeviceCommonData, DeviceKObjType, DeviceState, DeviceType, IdTable,
266 fn id_table(&self) -> IdTable { in id_table() argument
267 return IdTable::new(self.name.to_string(), None); in id_table()
475 fn id_table(&self) -> Option<IdTable> { in id_table() argument
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dmod.rs15 IdTable,
188 fn id_table(&self) -> IdTable { in id_table() argument
189 IdTable::new(Self::NAME.to_string(), None) in id_table()
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dfbmem.rs21 sys_dev_char_kset, Device, DeviceCommonData, DeviceType, IdTable,
337 fn id_table(&self) -> IdTable { in id_table() argument
338 IdTable::new(Self::BASENAME.to_string(), Some(self.device_number())) in id_table()
/DragonOS/kernel/src/filesystem/devpts/
H A Dmod.rs18 IdTable,
237 IdTable::new(name.to_string(), None), in create_with_data()

12