pub struct DeviceInfo<'a>(/* private fields */);
Expand description
Information about a device in the AML namespace
Implementations§
Source§impl<'a> DeviceInfo<'a>
impl<'a> DeviceInfo<'a>
Sourcepub fn object_type(&self) -> AcpiObjectType
pub fn object_type(&self) -> AcpiObjectType
Gets the type of the object in the AML namespace
Sourcepub fn param_count(&self) -> u8
pub fn param_count(&self) -> u8
Gets the number of parameters, if the object is a method.
Sourcepub fn flags(&self) -> DeviceInfoFlags
pub fn flags(&self) -> DeviceInfoFlags
Gets the device’s flags
Sourcepub fn highest_dstates(&self) -> [u8; 4]
pub fn highest_dstates(&self) -> [u8; 4]
TODO: What do these numbers mean?
ACPICA source says ‘_SxD
values: 0xFF
indicates not valid’
Sourcepub fn lowest_dstates(&self) -> [u8; 5]
pub fn lowest_dstates(&self) -> [u8; 5]
TODO: What do these numbers mean?
ACPICA source says ‘_SxW
values: 0xFF
indicates not valid’
Sourcepub fn address(&self) -> Option<AcpiPhysicalAddress>
pub fn address(&self) -> Option<AcpiPhysicalAddress>
The address of the device’s memory mapped registers
Sourcepub fn hardware_id(&self) -> Option<&str>
pub fn hardware_id(&self) -> Option<&str>
A string identifying the device’s hardware, for instance a chip ID
Sourcepub fn class_code(&self) -> Option<&str>
pub fn class_code(&self) -> Option<&str>
TODO: What’s this?
Sourcepub fn compatible_id_list(&self) -> impl Iterator<Item = &str>
pub fn compatible_id_list(&self) -> impl Iterator<Item = &str>
A list of IDs which are compatible with this device
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DeviceInfo<'a>
impl<'a> RefUnwindSafe for DeviceInfo<'a>
impl<'a> !Send for DeviceInfo<'a>
impl<'a> !Sync for DeviceInfo<'a>
impl<'a> Unpin for DeviceInfo<'a>
impl<'a> UnwindSafe for DeviceInfo<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more