ReactOS 0.4.16-dev-226-g79f2289
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
#define | AcpiVerifyInBuffer(Stack, Length) ((Stack)->Parameters.DeviceIoControl.InputBufferLength >= Length) |
#define | AcpiVerifyOutBuffer(Stack, Length) ((Stack)->Parameters.DeviceIoControl.OutputBufferLength >= Length) |
#define | TAG_ACPI_PARAMETERS_LIST 'OpcA' |
#define | TAG_ACPI_PACKAGE_LIST 'PpcA' |
#define | ACPI_OBJECT_NAME_LENGTH (4 + 1) |
#define | ACPI_MAX_PACKAGE_DEPTH 5 |
Functions | |
static NTSTATUS | EvalConvertObjectReference (_Out_ PACPI_METHOD_ARGUMENT Argument, _In_ ACPI_OBJECT *Reference) |
Performs translation from the supplied object reference into a string method argument. | |
static NTSTATUS | EvalGetElementSize (_In_ ACPI_OBJECT *Obj, _In_ ULONG Depth, _Out_opt_ PULONG Count, _Out_ PULONG Size) |
Calculates the number of bytes needed for returned method argument based on the type of an ACPI_OBJECT structure. | |
static NTSTATUS | EvalConvertEvaluationResults (_Out_ ACPI_METHOD_ARGUMENT *Argument, _In_ ULONG Depth, _In_ ACPI_OBJECT *Obj) |
Performs translation from the supplied ACPI_OBJECT structure into a method argument. | |
static ULONG | EvalGetPackageCount (_In_ PACPI_METHOD_ARGUMENT Package, _In_ PACPI_METHOD_ARGUMENT PackageArgument, _In_ ULONG DataLength) |
Returns the number of sub-objects (elements) in a package. | |
static NTSTATUS | EvalConvertParameterObjects (_Out_ ACPI_OBJECT *Arg, _In_ ULONG Depth, _In_ PACPI_METHOD_ARGUMENT Argument, _In_ PIO_STACK_LOCATION IoStack, _In_ ULONG Offset) |
Performs translation from the supplied method argument into an ACPI_OBJECT structure. | |
static NTSTATUS | EvalCreateParametersList (_In_ PIRP Irp, _In_ PIO_STACK_LOCATION IoStack, _In_ PACPI_EVAL_INPUT_BUFFER EvalInputBuffer, _Out_ ACPI_OBJECT_LIST *ParamList) |
Creates a counted array of ACPI_OBJECTs from the given input buffer. | |
static VOID | EvalFreeParameterArgument (_In_ ACPI_OBJECT *Arg, _In_ ULONG Depth) |
Deallocates the memory for all sub-objects (elements) in a package. | |
static VOID | EvalFreeParametersList (_In_ ACPI_OBJECT_LIST *ParamList) |
Deallocates the given array of ACPI_OBJECTs. | |
static NTSTATUS | EvalAcpiStatusToNtStatus (_In_ ACPI_STATUS AcpiStatus) |
Converts the provided value of ACPI_STATUS to NTSTATUS return value. | |
static ACPI_STATUS | EvalEvaluateObject (_In_ PPDO_DEVICE_DATA DeviceData, _In_ PACPI_EVAL_INPUT_BUFFER EvalInputBuffer, _In_ ACPI_OBJECT_LIST *ParamList, _In_ ACPI_BUFFER *ReturnBuffer) |
Evaluates an ACPI namespace object. | |
static NTSTATUS | EvalCreateOutputArguments (_In_ PIRP Irp, _In_ PIO_STACK_LOCATION IoStack, _In_ ACPI_BUFFER *ReturnBuffer) |
Writes the results from the evaluation into the output IRP buffer. | |
NTSTATUS NTAPI | Bus_PDO_EvalMethod (_In_ PPDO_DEVICE_DATA DeviceData, _Inout_ PIRP Irp) |
VOID NTAPI | Bus_PDO_EvalMethodWorker (_In_ PVOID Parameter) |
#define ACPI_MAX_PACKAGE_DEPTH 5 |
#define ACPI_OBJECT_NAME_LENGTH (4 + 1) |
Definition at line 796 of file eval.c.
Referenced by ACPIDispatchDeviceControl(), Bus_PDO_EvalMethodWorker(), and DrvCallAcpiDriver().
Definition at line 843 of file eval.c.
|
static |
Converts the provided value of ACPI_STATUS to NTSTATUS return value.
Definition at line 654 of file eval.c.
Referenced by Bus_PDO_EvalMethod().
|
static |
Performs translation from the supplied ACPI_OBJECT structure into a method argument.
Definition at line 172 of file eval.c.
Referenced by EvalConvertEvaluationResults(), and EvalCreateOutputArguments().
|
static |
Performs translation from the supplied object reference into a string method argument.
Definition at line 36 of file eval.c.
Referenced by EvalConvertEvaluationResults().
|
static |
Performs translation from the supplied method argument into an ACPI_OBJECT structure.
Definition at line 308 of file eval.c.
Referenced by EvalConvertParameterObjects(), and EvalCreateParametersList().
|
static |
Writes the results from the evaluation into the output IRP buffer.
Definition at line 730 of file eval.c.
Referenced by Bus_PDO_EvalMethod().
|
static |
Creates a counted array of ACPI_OBJECTs from the given input buffer.
Definition at line 436 of file eval.c.
Referenced by Bus_PDO_EvalMethod().
|
static |
Evaluates an ACPI namespace object.
Definition at line 708 of file eval.c.
Referenced by Bus_PDO_EvalMethod().
|
static |
Deallocates the memory for all sub-objects (elements) in a package.
Definition at line 598 of file eval.c.
Referenced by EvalFreeParameterArgument(), and EvalFreeParametersList().
|
static |
Deallocates the given array of ACPI_OBJECTs.
Definition at line 631 of file eval.c.
Referenced by Bus_PDO_EvalMethod().
|
static |
Calculates the number of bytes needed for returned method argument based on the type of an ACPI_OBJECT structure.
Definition at line 73 of file eval.c.
Referenced by EvalConvertEvaluationResults(), EvalCreateOutputArguments(), and EvalGetElementSize().
|
static |
Returns the number of sub-objects (elements) in a package.
Definition at line 276 of file eval.c.
Referenced by EvalConvertParameterObjects().