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.

ACPI Source Language (ASL)Reference<br />

Arguments<br />

The EisaIdString must be a String object of the form “UUUNNNN”, where “U” is an uppercase<br />

letter <strong>and</strong> “N” is a hexadecimal digit. No asterisks or other characters are allowed in the string.<br />

Description<br />

Converts EisaIdString, a 7-character text string argument, into its corresponding 4-byte numeric<br />

EISA ID encoding. It can be used when declaring IDs for devices that have EISA IDs.<br />

Example<br />

EISAID (“PNP0C09”)<br />

// This is a valid invocation of the macro.<br />

19.6.37 Else (Alternate Execution)<br />

Syntax<br />

Else {TermList}<br />

Arguments<br />

TermList is a sequence of executable ASL statements.<br />

Description<br />

If Predicate evaluates to 0 in an If statement, then control is transferred to the Else portion, which<br />

can consist of zero or more ElseIf statements followed by zero or one Else statements. If the<br />

Predicate of any ElseIf statement evaluates to non-zero, the statements in its term list are executed<br />

<strong>and</strong> then control is transferred past the end of the final Else term. If no Predicate evaluates to nonzero,<br />

then the statements in the Else term list are executed.<br />

Example<br />

The following example checks Local0 to be zero or non-zero. On non-zero, CNT is incremented;<br />

otherwise, CNT is decremented.<br />

If (LGreater (Local0, 5)<br />

{<br />

Increment (CNT)<br />

} Else If (Local0) {<br />

Add (CNT, 5, CNT)<br />

}<br />

Else<br />

{<br />

Decrement (CNT)<br />

}<br />

19.6.38 ElseIf (Alternate/Conditional Execution)<br />

Syntax<br />

ElseIf (Predicate)<br />

Version 6.0 829

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

Saved successfully!

Ooh no, something went wrong!