51#define _COMPONENT ACPI_EXECUTER
59#define ACPI_INVALID_PROTOCOL_ID 0x80
60#define ACPI_MAX_PROTOCOL_ID 0x0F
82#define PCC_MASTER_SUBSPACE 3
90#define GENERIC_SUBSPACE_COMMAND(a) (4 == a || a == 5)
91#define MASTER_SUBSPACE_COMMAND(a) (12 <= a && a <= 15)
120 "Invalid Field/AccessAs protocol ID: 0x%4.4X",
ProtocolId));
214 ObjDesc->
Field.BitLength);
259 "PCC FieldRead bits %u\n", ObjDesc->
Field.BitLength));
263 ObjDesc->
Field.BitLength));
265 *RetBufferDesc = BufferDesc;
270 "FieldRead [TO]: Obj %p, Type %X, Buf %p, ByteLen %X\n",
273 "FieldRead [FROM]: BitLen %X, BitOff %X, ByteOff %X\n",
295 *RetBufferDesc = BufferDesc;
333 if (!SourceDesc || !ObjDesc)
384 ObjDesc->
Field.BitLength);
386 ObjDesc->
Field.BaseByteOffset,
394 "PCC COMD field has been written. Invoking PCC handler now.\n"));
407 switch (SourceDesc->
Common.Type)
432 "FieldWrite [FROM]: Obj %p (%s:%X), Buf %p, ByteLen %X\n",
437 "FieldWrite [TO]: Obj %p (%s:%X), BitLen %X, BitOff %X, ByteOff %X\n",
unsigned long long UINT64
#define AE_AML_NO_OPERAND
#define AE_AML_OPERAND_TYPE
#define ACPI_ROUND_BITS_UP_TO_BYTES(a)
#define AOPOBJ_DATA_VALID
#define ACPI_DEBUG_PRINT(pl)
#define ACPI_MODULE_NAME(Name)
#define ACPI_FUNCTION_TRACE_PTR(a, b)
#define return_ACPI_STATUS(s)
#define ACPI_ERROR(plist)
#define ACPI_ADR_SPACE_IPMI
#define ACPI_ADR_SPACE_PLATFORM_RT
#define ACPI_TYPE_BUFFER_FIELD
#define ACPI_ADR_SPACE_PLATFORM_COMM
#define ACPI_TYPE_INTEGER
#define ACPI_TYPE_LOCAL_REGION_FIELD
#define ACPI_ADR_SPACE_GSBUS
#define ACPI_ADR_SPACE_SMBUS
#define ACPI_ADR_SPACE_FIXED_HARDWARE
#define ACPI_ADR_SPACE_GPIO
const char * AcpiUtGetTypeName(ACPI_OBJECT_TYPE Type)
void AcpiUtRemoveReference(ACPI_OPERAND_OBJECT *Object)
ACPI_OPERAND_OBJECT * AcpiUtCreateIntegerObject(UINT64 Value)
ACPI_OPERAND_OBJECT * AcpiUtCreateBufferObject(ACPI_SIZE BufferSize)
_In_ ULONG _In_opt_ WDFREQUEST _In_opt_ PVOID _In_ size_t _In_ PVOID _In_ size_t _Out_ size_t * DataLength
ACPI_STATUS AcpiDsGetBufferFieldArguments(ACPI_OPERAND_OBJECT *ObjDesc)
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
#define ACPI_INVALID_PROTOCOL_ID
#define MASTER_SUBSPACE_COMMAND(a)
static const UINT8 AcpiProtocolLengths[]
#define ACPI_MAX_PROTOCOL_ID
ACPI_STATUS AcpiExReadDataFromField(ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **RetBufferDesc)
ACPI_STATUS AcpiExWriteDataToField(ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ResultDesc)
ACPI_STATUS AcpiExGetProtocolBufferLength(UINT32 ProtocolId, UINT32 *ReturnLength)
ACPI_STATUS AcpiExExtractFromField(ACPI_OPERAND_OBJECT *ObjDesc, void *Buffer, UINT32 BufferLength)
ACPI_STATUS AcpiExAccessRegion(ACPI_OPERAND_OBJECT *ObjDesc, UINT32 FieldDatumByteOffset, UINT64 *Value, UINT32 Function)
ACPI_STATUS AcpiExInsertIntoField(ACPI_OPERAND_OBJECT *ObjDesc, void *Buffer, UINT32 BufferLength)
ACPI_STATUS AcpiExWriteGpio(ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ReturnBuffer)
ACPI_STATUS AcpiExReadSerialBus(ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ReturnBuffer)
ACPI_STATUS AcpiExReadGpio(ACPI_OPERAND_OBJECT *ObjDesc, void *Buffer)
ACPI_STATUS AcpiExWriteSerialBus(ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ReturnBuffer)
void AcpiExAcquireGlobalLock(UINT32 FieldFlags)
void AcpiExReleaseGlobalLock(UINT32 FieldFlags)
#define memcpy(s1, s2, n)
ACPI_OBJECT_COMMON_HEADER ACPI_COMMON_FIELD_INFO BOOLEAN IsCreateField
UINT8 * InternalPccBuffer
union acpi_operand_object * RegionObj
ACPI_OBJECT_COMMON_HEADER UINT8 SpaceId
ACPI_OBJECT_REGION_FIELD Field
ACPI_OBJECT_BUFFER_FIELD BufferField
ACPI_OBJECT_REGION Region
ACPI_OBJECT_INTEGER Integer
ACPI_OBJECT_COMMON Common
ACPI_OBJECT_STRING String
ACPI_OBJECT_FIELD_COMMON CommonField
ACPI_OBJECT_BUFFER Buffer
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength