27.10.2015 Views

Advanced Configuration and Power Interface Specification

ACPI_6.0

ACPI_6.0

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Description<br />

A thermal zone may be declared in the namespace anywhere within the \_SB scope. For<br />

compatibility with operating systems implementing ACPI 1.0, a thermal zone may also be declared<br />

under the \_TZ scope. An ACPI-compatible namespace may define Thermal Zone objects in either<br />

the \_SB or \_TZ scope but not both.<br />

For example ASL code that uses a ThermalZone statement, see Section 11, “Thermal Management.”<br />

19.6.128 Timer (Get 64-Bit Timer Value)<br />

Syntax<br />

Timer => Integer<br />

Description<br />

The timer opcode returns a monotonically increasing value that can be used by ACPI methods to<br />

measure time passing, this enables speed optimization by allowing AML code to mark the passage<br />

of time independent of OS ACPI interpreter implementation.<br />

The Sleep opcode can only indicate waiting for longer than the time specified.<br />

The value resulting from this opcode is 64 bits. It is monotonically increasing, but it is not<br />

guaranteed that every result will be unique, i.e. two subsequent instructions may return the same<br />

value. The only guarantee is that each subsequent evaluation will be greater-than or equal to the<br />

previous ones.<br />

The period of this timer is 100 nanoseconds. While the underlying hardware may not support this<br />

granularity, the interpreter will do the conversion from the actual timer hardware frequency into 100<br />

nanosecond units.<br />

Users of this opcode should realize that a value returned only represents the time at which the<br />

opcode itself executed. There is no guarantee that the next opcode in the instruction stream will<br />

execute in any particular time bound.<br />

The OSPM can implement this using the ACPI Timer <strong>and</strong> keep track of overrun. Other<br />

implementations are possible. This provides abstraction away from chipset differences<br />

Note: (Compatibility Note) New for ACPI 3.0<br />

19.6.129 ToBCD (Convert Integer to BCD)<br />

Syntax<br />

ToBCD (Value, Result) => Integer<br />

Arguments<br />

Value is evaluated as an integer<br />

Description<br />

The ToBCD operator is used to convert Value from a numeric (Integer) format to a BCD format <strong>and</strong><br />

optionally store the numeric value into Result.<br />

892 April, 2015 Version 6.0

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

Saved successfully!

Ooh no, something went wrong!