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

Method (_SRS, 1, NotSerialized)<br />

{<br />

CreateWordField (Arg0, One, IRQW)<br />

Store (\_SB.PCI0.PID1.IENA, Local1)<br />

Or (IRQW, Local1, Local1)<br />

Store (Local1, \_SB.PCI0.PID1.IENA)<br />

FindSetRightBit (IRQW, Local0)<br />

If (Local0)<br />

{<br />

Decrement (Local0)<br />

Store (Local0, \_SB.PCI0.PID1.IN01)<br />

}<br />

}<br />

19.6.83 Mid (Extract Portion of Buffer or String)<br />

Syntax<br />

Mid (Source, Index, Length, Result) => Buffer or String<br />

Arguments<br />

Source is evaluated as either a Buffer or String. Index <strong>and</strong> Length are evaluated as Integers.<br />

Description<br />

If Source is a buffer, then Length bytes, starting with the Indexth byte (zero-based) are optionally<br />

copied into Result. If Index is greater than or equal to the length of the buffer, then the result is an<br />

empty buffer. Otherwise, if Index + Length is greater than or equal to the length of the buffer, then<br />

only bytes up to <strong>and</strong> including the last byte are included in the result.<br />

If Source is a string, then Length characters, starting with the Indexth character (zero-based) are<br />

optionally copied into Result. If Index is greater than or equal to the length of the buffer, then the<br />

result is an empty string. Otherwise, if Index + Length is greater than or equal to the length of the<br />

string, then only bytes up to an including the last character are included in the result.<br />

19.6.84 Mod (Integer Modulo)<br />

Syntax<br />

Mod (Dividend, Divisor, Result) => Integer<br />

Result = Dividend % Divisor => Integer<br />

Result %= Divisor => Integer<br />

Arguments<br />

Dividend <strong>and</strong> Divisor are evaluated as Integers.<br />

Description<br />

The Dividend is divided by Divisor, <strong>and</strong> then the resulting remainder is optionally stored into Result.<br />

If Divisor evaluates to zero, a fatal exception is generated.<br />

864 April, 2015 Version 6.0

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

Saved successfully!

Ooh no, something went wrong!