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.

ACPI Source Language (ASL)Reference<br />

Name (SIZE, 4)<br />

Package (SIZE) {}<br />

Package (1024) {}<br />

Package (256) {}<br />

19.6.100 <strong>Power</strong>Resource (Declare <strong>Power</strong> Resource)<br />

Syntax<br />

<strong>Power</strong>Resource (ResourceName, SystemLevel, ResourceOrder) {ObjectList}<br />

Arguments<br />

Declares a power resource named ResourceName. <strong>Power</strong>Resource opens a name scope.<br />

Description<br />

For a definition of the <strong>Power</strong>Resource term, see Section 7.2, “Declaring a <strong>Power</strong> Resource Object.”<br />

19.6.101 Printf (Create <strong>and</strong> Store formatted string)<br />

Syntax<br />

Printf (FormatString, FormatArgs) => String<br />

Arguments<br />

Printf is a macro that converts the evaluated FormatString into a series of string Concatenate<br />

operations, storing the result in the Debug object.<br />

FormatString is a string literal which may contain one or more uses of the format specifier, %o, to<br />

indicate locations in the string where an object may be inserted. %o is the only format specifier<br />

supported since the resulting object is a string <strong>and</strong> type conversion is h<strong>and</strong>led automatically by<br />

Concatenate.<br />

FormatArgs is a comma separated list of Named Objects, Locals, or Args that can be evaluated to a<br />

string. Each argument is added to the FormatString using the Concatenate operation at the location<br />

specified by %o in order of appearance.<br />

Description<br />

The Printf macro converts a format string into a series of cascading string Concatenate operations,<br />

<strong>and</strong> stores the result in the Debug object<br />

Example<br />

The following ASL example uses Printf to write a formatted string with the values of Arg0, Arg1,<br />

Arg2, <strong>and</strong> Arg3 to the Debug Object.<br />

Printf ("%o: Unexpected value for %o, %o at line %o",<br />

Arg0, Arg1, Arg2, Arg3)<br />

This Printf macro expression evaluates to the following ASL operation.<br />

Version 6.0 873

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

Saved successfully!

Ooh no, something went wrong!