/DragonOS-0.1.8/kernel/src/driver/base/device/ |
D | driver.rs | 1 use super::{IdTable, KObject}; 37 fn id_table(&self) -> IdTable; in id_table() argument 69 pub fn add_driver(&self, id_table: IdTable, drv: Arc<dyn Driver>) { in add_driver() argument 79 pub fn remove_driver(&self, id_table: &IdTable) { in remove_driver() argument 89 pub fn get_driver(&self, id_table: &IdTable) -> Option<Arc<dyn Driver>> { in get_driver() 107 drivers: BTreeMap<IdTable, Arc<dyn Driver>>, // 所有驱动
|
D | bus.rs | 4 Device, DeviceError, DeviceState, IdTable, 79 buses: BTreeMap<IdTable, Arc<dyn Bus>>, // 总线设备表 80 bus_drvs: BTreeMap<IdTable, Arc<dyn BusDriver>>, // 总线驱动表 108 pub fn add_bus(&self, id_table: IdTable, bus_dev: Arc<dyn Bus>) { in add_bus() argument 119 pub fn add_driver(&self, id_table: IdTable, bus_drv: Arc<dyn BusDriver>) { in add_driver() argument 129 pub fn remove_bus(&self, id_table: &IdTable) { in remove_bus() argument 139 pub fn remove_bus_driver(&self, id_table: &IdTable) { in remove_bus_driver() argument 149 pub fn get_bus(&self, id_table: &IdTable) -> Option<Arc<dyn Bus>> { in get_bus() 159 pub fn get_driver(&self, id_table: &IdTable) -> Option<Arc<dyn BusDriver>> { in get_driver()
|
D | mod.rs | 95 pub struct IdTable(&'static str, u32); struct 98 impl IdTable { impl 103 pub fn new(name: &'static str, id: u32) -> IdTable { in new() argument 184 fn id_table(&self) -> IdTable; in id_table() argument 212 pub fn add_device(&self, id_table: IdTable, dev: Arc<dyn Device>) { in add_device() argument 222 pub fn remove_device(&self, id_table: &IdTable) { in remove_device() argument 232 pub fn get_device(&self, id_table: &IdTable) -> Option<Arc<dyn Device>> { in get_device() 250 devices: BTreeMap<IdTable, Arc<dyn Device>>, // 所有设备
|
/DragonOS-0.1.8/kernel/src/driver/base/platform/ |
D | mod.rs | 4 Device, DeviceError, DeviceState, DeviceType, IdTable, KObject, 77 fn get_device(&self, id_table: &IdTable) -> Option<Arc<dyn PlatformDevice>> { in get_device() 87 fn get_driver(&self, id_table: &IdTable) -> Option<Arc<dyn PlatformDriver>> { in get_driver() 209 drivers: BTreeMap<IdTable, Arc<dyn PlatformDriver>>, // 总线上所有驱动 210 devices: BTreeMap<IdTable, Arc<dyn PlatformDevice>>, // 总线上所有设备 237 fn id_table(&self) -> IdTable { in id_table() argument 238 IdTable::new("PlatformBusDriver", 0) in id_table() 361 fn id_table(&self) -> IdTable { in id_table() argument 362 IdTable::new("platform", 0) in id_table()
|
/DragonOS-0.1.8/docs/kernel/filesystem/ |
D | sysfs.md | 38 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-0.1.8/kernel/src/driver/uart/ |
D | uart.rs | 5 device::{driver::Driver, DeviceState, DeviceType, IdTable, KObject}, 154 fn id_table(&self) -> IdTable { in id_table() argument 155 IdTable::new("uart", 0) in id_table() 211 fn id_table(&self) -> IdTable { in id_table() argument 212 return IdTable::new("uart_driver", 0); in id_table()
|