27.10.2015 Views

Advanced Configuration and Power Interface Specification

ACPI_6.0

ACPI_6.0

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Advanced</strong> <strong>Configuration</strong> <strong>and</strong> <strong>Power</strong> <strong>Interface</strong> <strong>Specification</strong><br />

X = Read(register)<br />

X = X >> Bit Offset described in Register Region<br />

X = X & Mask<br />

If (X != Value) FAIL<br />

SUCCEED<br />

18.5.1.2.2 READ_REGISTER<br />

A read register instruction reads the register region. The result is a generic value <strong>and</strong> should not be<br />

compared with Value. Value will be ignored. This can be described in pseudo code as follows:<br />

X = Read(register)<br />

X = X >> Bit Offset described in Register Region<br />

X = X & Mask<br />

Return X<br />

18.5.1.2.3 WRITE_REGISTER_VALUE<br />

A write register value instruction writes the specified value to the register region. If<br />

PRESERVE_REGISTER is set in Instruction Flags, then the bits not corresponding to the write<br />

value instruction are preserved. If the register is preserved, the write value instruction requires a read<br />

of the register. This can be described in pseudo code as follows:<br />

X = Value & Mask<br />

X = X

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!