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

Note: In the absence of an explicit Return () statement, the return value to the caller is undefined.<br />

19.6.113 Revision (Constant Revision Integer)<br />

Syntax<br />

Revision => Integer<br />

Description<br />

The Revision operator returns an Integer containing the current revision of the AML interpreter.<br />

Writes to this object are not allowed.<br />

19.6.114 Scope (Open Named Scope)<br />

Syntax<br />

Scope (Location) {ObjectList}<br />

Arguments<br />

Opens <strong>and</strong> assigns a base namespace scope to a collection of objects. All object names defined<br />

within the scope are created relative to Location. Note that Location does not have to be below the<br />

surrounding scope, but can refer to any location within the namespace. The Scope term itself does<br />

not create objects, but only locates objects within the namespace; the actual objects are created by<br />

other ASL terms.<br />

Description<br />

The object referred to by Location must already exist in the namespace <strong>and</strong> be one of the following<br />

object types that has a namespace scope associated with it:<br />

• A predefined scope such as: \ (root), \_SB, \GPE, \_PR, \_TZ, etc.<br />

• Device<br />

• Processor<br />

• Thermal Zone<br />

• <strong>Power</strong> Resource<br />

The Scope term alters the current namespace location to the existing Location. This causes the<br />

defined objects within ObjectList to be created relative to this new location in the namespace.<br />

Note: When creating secondary SSDTs, it is often required to use the Scope operator to change the<br />

namespace location in order create objects within some part of the namespace that has been defined<br />

by the main DSDT. Use the External operator to declare the scope location so that the ASL<br />

compiler will not issue an error for an undefined Location.<br />

Examples<br />

The following example ASL code uses the Scope operator <strong>and</strong> creates several objects:<br />

Version 6.0 883

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

Saved successfully!

Ooh no, something went wrong!