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 />

SearchPackage is evaluated to a package object <strong>and</strong> is treated as a one-dimension array. Each<br />

package element must evaluate to either an integer, a string, or a buffer. Uninitialized package<br />

elements <strong>and</strong> elements that do not evaluate to integers, strings, or buffers are ignored. Op1 <strong>and</strong> Op2<br />

are match operators. MatchObject1 <strong>and</strong> MatchObject2 are the objects to be matched <strong>and</strong> must each<br />

evaluate to either an integer, a string, or a buffer. StartIndex is the starting index within the<br />

SearchPackage.<br />

Description<br />

A comparison is performed for each element of the package, starting with the index value indicated<br />

by StartIndex (0 is the first element). If the element of SearchPackage being compared against is<br />

called P[i], then the comparison is:<br />

If (P[i] Op1 MatchObject1) <strong>and</strong> (P[i] Op2 MatchObject2) then Match => i is returned.<br />

If the comparison succeeds, the index of the element that succeeded is returned; otherwise, the<br />

constant object Ones is returned. The data type of the MatchObject dictates the required type of the<br />

package element. If necessary, the package element is implicitly converted to match the type of the<br />

MatchObject. If the implicit conversion fails for any reason, the package element is ignored (no<br />

match.)<br />

Op1 <strong>and</strong> Op2 have the values <strong>and</strong> meanings listed in the following table.<br />

Table 19-369 Match Term Operator Meanings<br />

Operator Encoding Macro<br />

TRUE – A don’t care, always returns TRUE 0 MTR<br />

EQ – Returns TRUE if P[i] == MatchObject 1 MEQ<br />

LE – Returns TRUE if P[i] = MatchObject 4 MGE<br />

GT – Returns TRUE if P[i] > MatchObject 5 MGT<br />

Example<br />

Following are some example uses of Match:<br />

Version 6.0 859

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

Saved successfully!

Ooh no, something went wrong!