[−][src]Struct aml::AmlContext
Fields
namespace: Namespace
Implementations
impl AmlContext
[src]
pub fn new(
handler: Box<dyn Handler>,
legacy_mode: bool,
debug_verbosity: DebugVerbosity
) -> AmlContext
[src]
handler: Box<dyn Handler>,
legacy_mode: bool,
debug_verbosity: DebugVerbosity
) -> AmlContext
Creates a new AmlContext
- the central type in managing the AML tables. Only one of these should be
created, and it should be passed the DSDT and all SSDTs defined by the hardware.
Legacy mode
If true
is passed in legacy_mode
, the library will try and remain compatible with a ACPI 1.0
implementation. The following changes/assumptions are made:
- Two extra root namespaces are predefined: \_PR
and _TZ
- Processors are expected to be defined with DefProcessor
, instead of DefDevice
- Processors are expected to be found in \_PR
, instead of \_SB
- Thermal zones are expected to be found in \_TZ
, instead of \_SB
pub fn parse_table(&mut self, stream: &[u8]) -> Result<(), AmlError>
[src]
pub fn invoke_method(
&mut self,
path: &AmlName,
args: Args
) -> Result<AmlValue, AmlError>
[src]
&mut self,
path: &AmlName,
args: Args
) -> Result<AmlValue, AmlError>
pub fn initialize_objects(&mut self) -> Result<(), AmlError>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,