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

Examples<br />

OperationRegion(TOP1, GenericSerialBus, 0x00, 0x100)// GenericSerialBus device at comm<strong>and</strong> value<br />

offset zero<br />

Name (I2C, ResourceTemplate(){<br />

I2CSerialBus(0x5a,,100000,, "\_SB.I2C",,,,RawDataBuffer(){1,6})<br />

})<br />

Field(TOP1, BufferAcc, NoLock, Preserve)<br />

{<br />

Connection(I2C)<br />

// Specify connection resource information<br />

AccessAs(BufferAcc, AttribWord)<br />

// Use the GenericSerialBus<br />

// Read/Write Word protocol<br />

FLD0, 8, // Virtual register at comm<strong>and</strong> value 0.<br />

FLD1, 8, // Virtual register at comm<strong>and</strong> value 1.<br />

Field(TOP1, BufferAcc, NoLock, Preserve)<br />

{<br />

Connection(I2CSerialBus(0x5b,,100000,, "\_SB.I2C",,,,RawDataBuffer(){3,9}))<br />

AccessAs(BufferAcc, AttribBytes (16))<br />

FLD2, 8 // Virtual register at comm<strong>and</strong> value 0.<br />

}<br />

// Create the GenericSerialBus data buffer<br />

Name(BUFF, Buffer(34){})<br />

CreateByteField(BUFF, 0x00, STAT)<br />

CreateWordField(BUFF, 0x02, DATA)<br />

// Create GenericSerialBus data buffer as BUFF<br />

// STAT = Status (Byte)<br />

// DATA = Data (Word)<br />

Description<br />

The Connection macro declares the connection attributes for subsequent fields defined within the<br />

Field declaration.<br />

19.6.16 Continue (Continue Innermost Enclosing While)<br />

Syntax<br />

Continue<br />

Description<br />

Continue causes execution to continue at the start of the innermost enclosing While scope, in the<br />

currently executing Control Method, at the point where the condition is evaluated. If there is no<br />

enclosing While within the current Method, a fatal error is generated.<br />

19.6.17 CopyObject (Copy <strong>and</strong> Store Object)<br />

Syntax<br />

CopyObject (Source, Destination) => DataRefObject<br />

Arguments<br />

Converts the contents of the Source to a DataRefObject using the conversion rules in 18.2.5 <strong>and</strong> then<br />

copies the results without conversion to the object referred to by Destination.<br />

816 April, 2015 Version 6.0

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

Saved successfully!

Ooh no, something went wrong!