Home
last modified time | relevance | path

Searched refs:BusState (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.8/kernel/src/driver/base/device/
Dbus.rs26 pub enum BusState { enum
33 impl From<u32> for BusState { implementation
36 0 => BusState::NotInitialized, in from()
37 1 => BusState::Initialized, in from()
38 _ => BusState::UnDefined, in from()
44 impl From<DeviceState> for BusState { implementation
47 DeviceState::Initialized => BusState::Initialized, in from()
48 DeviceState::NotInitialized => BusState::NotInitialized, in from()
49 DeviceState::UnDefined => BusState::UnDefined, in from()
55 impl From<BusState> for DeviceState {
[all …]
/DragonOS-0.1.8/kernel/src/driver/base/platform/
Dmod.rs2 bus::{bus_driver_register, bus_register, Bus, BusDriver, BusState},
295 BusState::Initialized => true, in is_initialized()
304 fn set_state(&self, set_state: BusState) { in set_state() argument
314 fn get_state(&self) -> BusState { in get_state() argument
332 state: BusState, // 总线状态
344 state: BusState::NotInitialized, in new()
393 platform_device.set_state(BusState::Initialized); in platform_bus_init()