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.

ACPI Source Language (ASL)Reference<br />

DriveStrength is an optional argument specifying the output drive capability of the pin, in<br />

hundredths of milliamperes. The bit field name _DRS is automatically created to refer to this portion<br />

of the resource descriptor.<br />

IORestriction is an optional argument <strong>and</strong> can be IoRestrictionInputOnly,<br />

IoRestrictionOutputOnly, IoRestrictionNone, or IORestrictionNoneAndPreserve.<br />

IORestrictions limit the mode in which the pin can be accessed (Input or Output). They also ensure<br />

that the pin configuration is preserved during periods when the driver is unloaded or the resource has<br />

been disconnected by the driver. If not specified, IoRestrictionNone is assumed. The bit field name<br />

_IOR is automatically created to refer to this portion of the resource descriptor.<br />

ResourceSource is a string which uniquely identifies the GPIO controller referred to by this<br />

descriptor. ResourceSource can be a fully-qualified name, a relative name or a name segment that<br />

utilizes the namespace search rules.<br />

ResourceSourceIndex is an optional argument <strong>and</strong> is always 0 for this revision.<br />

ResourceUsage is an optional argument <strong>and</strong> is always ResourceConsumer for this revision.<br />

DescriptorName is an optional argument that specifies a name for an integer constant that will be<br />

created in the current scope that contains the offset of this resource descriptor within the current<br />

resource template buffer. The predefined descriptor field names may be appended to this name to<br />

access individual fields within the descriptor via the Buffer Field operators.<br />

VendorData is an optional argument that specifies a RawDataBuffer containing vendor-defined byte<br />

data to be decoded by the OS driver. The bit field name _VEN is automatically created to refer to<br />

this portion of the resource descriptor.<br />

PinList is a list of pin numbers on the ResourceSource that are described by this descriptor. The bit<br />

field name _PIN is automatically created to refer to this portion of the resource descriptor.<br />

Description<br />

The GpioIo macro evaluates to a buffer that contains a GPIO IO Connection resource descriptor.<br />

The format of the GPIO IO Connection resource descriptor can be found in "GPIO Connection<br />

Descriptor" (Section 6.4.3.8.1). The macro is designed to be used inside of a Resource Template<br />

(Section 19.3.3).<br />

19.6.56 I2CSerialBusV2 (I2C Serial Bus Connection Resource<br />

Descriptor (Version 2) Macro)<br />

Syntax<br />

I2CSerialBusV2 (SlaveAddress, SlaveMode, ConnectionSpeed, AddressingMode, ResourceSource,<br />

ResourceSourceIndex, ResourceUsage, DescriptorName, Shared, VendorData)<br />

Arguments<br />

SlaveAddress is the I2C bus address for this connection. The bit field name _ADR is automatically<br />

created to refer to this portion of the resource descriptor.<br />

SlaveMode is an optional argument <strong>and</strong> can be either ControllerInitiated or DeviceInitiated.<br />

ControllerInitiated is the default. The bit field name _SLV is automatically created to refer to this<br />

portion of the resource descriptor.<br />

Version 6.0 845

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

Saved successfully!

Ooh no, something went wrong!