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

However, only one operator currently supports UTF-8 strings: Unicode. Since string literals are<br />

defined to contain only non-null character values, both Hex <strong>and</strong> Octal escape sequence values must<br />

be non-null values in the ASCII range 0x01 through 0xFF. For arbitrary byte data (outside the range<br />

of ASCII values), the Buffer object should be used instead.<br />

Since the backslash is used as the escape character <strong>and</strong> also the namespace root prefix, any string<br />

literals that are to contain a fully qualified namepath from the root of the namespace must use the<br />

double backslash to indicate this:<br />

Name (_EJD, ”\\_SB.PCI0.DOCK1”)<br />

The double backslash is only required within quoted string literals.<br />

Since double quotation marks are used close a string, a special escape sequence (\") is used to allow<br />

quotation marks within strings. Other escape sequences are listed in the table below:<br />

Table 19-353 ASL Escape Sequences<br />

Escape Sequence<br />

ASCII Character<br />

\a 0x07 (BEL)<br />

\b 0x08 (BS)<br />

\f 0x0C (FF)<br />

\n 0x0A (LF)<br />

\r 0x0D (CR)<br />

\t 0x09 (TAB)<br />

\v 0x0B (VT)<br />

\" 0x22 (")<br />

\'<br />

0x27 (')<br />

\\ 0x5C (\)<br />

Since literal strings are read-only constants, the following ASL statement (for example) is not<br />

supported:<br />

Store (“ABC”, ”DEF”)<br />

However, the following sequence of statements is supported:<br />

Name (STR, ”DEF”)<br />

...<br />

Store (“ABC”, STR)<br />

19.3.3 ASL Resource Templates<br />

ASL includes some macros for creating resource descriptors. The ResourceTemplate macro creates a<br />

Buffer in which resource descriptor macros can be listed. The ResourceTemplate macro<br />

automatically generates an End descriptor <strong>and</strong> calculates the checksum for the resource template.<br />

The format for the ResourceTemplate macro is as follows:<br />

Version 6.0 787

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

Saved successfully!

Ooh no, something went wrong!