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.

<strong>Advanced</strong> <strong>Configuration</strong> <strong>and</strong> <strong>Power</strong> <strong>Interface</strong> <strong>Specification</strong><br />

• _HID with a value of PNP0C09 to associate this device with the ACPI’s embedded controller’s<br />

driver.<br />

• _CRS to return the resources being consumed by the embedded controller.<br />

• _GPE that returns the general-purpose event bit that this embedded controller is wired to.<br />

Additionally the embedded controller can support up to 255 generic events per embedded controller,<br />

referred to as query events. These query event h<strong>and</strong>les are defined within the embedded controller’s<br />

device as control methods. An example of defining an embedded controller device is shown below:<br />

Device(EC0) {<br />

// PnP ID<br />

Name(_HID, EISAID(“PNP0C09”))<br />

// Returns the “Current Resources” of EC<br />

Name(_CRS,<br />

ResourceTemplate(){<br />

IO(Decode16, 0x62, 0x62, 0, 1)<br />

IO(Decode16, 0x66, 0x66, 0, 1)<br />

})<br />

// Indicate that the EC SCI is bit 0 of the GP_STS register<br />

Name(_GPE, 0) // embedded controller is wired to bit 0 of GPE<br />

}<br />

OperationRegion(\EC0, EmbeddedControl, 0, 0xFF)<br />

Field(EC0, ByteAcc, Lock, Preserve) {<br />

// Field definitions<br />

}<br />

// Query methods<br />

Method(_Q00){...}<br />

Method(_QFF){...}<br />

For more information on the embedded controller, see Section 12, “ACPI Embedded Controller<br />

<strong>Interface</strong> <strong>Specification</strong>.”<br />

4.8.4.2.3 Fan<br />

ACPI has a device driver to control fans (active cooling devices) in platforms. A fan is defined as a<br />

device with the Plug <strong>and</strong> Play ID of “PNP0C0B.” It should then contain a list power resources used<br />

to control the fan.<br />

For more information, see Section 9, “ACPI-Defined Devices <strong>and</strong> Device Specific Objects.” .<br />

100 April, 2015 Version 6.0

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

Saved successfully!

Ooh no, something went wrong!