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 System Management Bus <strong>Interface</strong> <strong>Specification</strong><br />

OperationRegion (<br />

RegionName,<br />

RegionSpace,<br />

Offset,<br />

Length<br />

)<br />

// NameString<br />

// RegionSpaceKeyword<br />

// TermArg=>Integer<br />

// TermArg=>Integer<br />

Where:<br />

• RegionName specifies a name for this slave device (for example, “SBD0”).<br />

• RegionSpace must be set to SMBus (operation region type value 0x04).<br />

• Offset is a word-sized value specifying the slave address <strong>and</strong> initial comm<strong>and</strong> value offset for<br />

the target device. The slave address is stored in the high byte <strong>and</strong> the comm<strong>and</strong> value offset is<br />

stored in the low byte. For example, the value 0x4200 would be used for an SMBus device<br />

residing at slave address 0x42 with an initial comm<strong>and</strong> value offset of zero (0).<br />

• Length is set to the 0x100 (256), representing the maximum number of possible comm<strong>and</strong><br />

values, for regions with an initial comm<strong>and</strong> value offset of zero (0). The difference of these two<br />

values is used for regions with non-zero offsets. For example, a region with an Offset value of<br />

0x4210 would have a corresponding Length of 0xF0 (0x100 minus 0x10).<br />

For example, the Smart Battery Subsystem (illustrated below) consists of the Smart Battery Charger<br />

at slave address 0x09, the Smart Battery System Manager at slave address 0x0A, <strong>and</strong> one or more<br />

batteries (multiplexed) at slave address 0x0B. (Notice that Figure 13-2 represents the logical<br />

connection of a Smart Battery Subsystem. The actual physical connections of the Smart Battery(s)<br />

<strong>and</strong> the Smart Battery Charger are made through the Smart Battery System Manager.) All devices<br />

support the Read/Write Word protocol. Batteries also support the Read/Write Block protocol.<br />

EC<br />

Smart Battery<br />

System Manager<br />

[0x0A]<br />

'SMB0'<br />

[0x09]<br />

Smart Battery<br />

Charger<br />

[0x0B]<br />

Smart Battery<br />

Device(s)<br />

Figure 13-74 Smart Battery Subsystem Devices<br />

The following ASL code shows the use of the OperationRegion term to describe these SMBus<br />

devices:<br />

Version 6.0 665

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

Saved successfully!

Ooh no, something went wrong!