38 DbgPrint(
"GetDwordElement: Object contained wrong data type - %d\n",
44 *
Value = Argument->Argument;
64 if (Argument->DataLength < 256)
75 DbgPrint(
"GetStringElement: return buffer not big enough - %d\n", Argument->DataLength);
83 DbgPrint(
"GetStringElement: Object contained wrong data type - %d\n", Argument->Type);
122 DbgPrint(
"CmBattSendDownStreamIrp: Failed to allocate Irp\n");
128 DbgPrint(
"CmBattSendDownStreamIrp: Irp %x [Tid] %x\n",
156 DbgPrint(
"CmBattSendDownStreamIrp: Irp %x completed %x! [Tid] %x\n",
205 DbgPrint(
"%s: Failed 0x%08x method on device %x - Status (0x%x)\n",
215 DbgPrint(
"%s: 0x%08x method returned %d elements (requires %d)\n",
224 if (PackageFields[
i].IsString)
251 DbgPrint(
"CmBattGetPsrData: Entered with Pdo %x Tid %x\n",
274 DbgPrint(
"CmBattGetPsrData: _PSR method returned %x \n", *PsrData);
279 DbgPrint(
"CmBattGetPsrData: Failed _PSR method - Status (0x%x)\n",
Status);
296 DbgPrint(
"CmBattGetStaData: Entered with Pdo %x Tid %x\n",
319 DbgPrint(
"CmBattGetStaData: _STA method returned %x \n", *StaData);
324 DbgPrint(
"CmBattGetStaData: Failed _STA method - Status (0x%x)\n",
Status);
342 DbgPrint(
"CmBattGetUniqueId: Entered with Pdo %x Tid %x\n",
365 DbgPrint(
"CmBattGetUniqueId: _UID method returned %x \n", *UniqueId);
370 DbgPrint(
"CmBattGetUniqueId: Failed _UID method - Status (0x%x)\n",
Status);
387 DbgPrint(
"CmBattSetTripPpoint: _BTP Alarm Value %x Device %x Tid %x\n",
403 DbgPrint(
"CmBattSetTripPpoint: Failed _BTP method on device %x - Status (0x%x)\n",
404 DeviceExtension->DeviceId,
Status);
433 DbgPrint(
"CmBattGetBifData: Buffer (0x%x) Device %x Tid %x\n",
462 DbgPrint(
"CmBattGetBstData: Buffer (0x%x) Device %x Tid %x\n",
ACPI_METHOD_ARGUMENT UNALIGNED * PACPI_METHOD_ARGUMENT
#define ACPI_METHOD_NEXT_ARGUMENT(Argument)
#define ACPI_METHOD_ARGUMENT_STRING
#define ACPI_METHOD_ARGUMENT_INTEGER
#define ACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER_SIGNATURE
#define ACPI_EVAL_INPUT_BUFFER_SIGNATURE
#define ACPI_METHOD_ARGUMENT_BUFFER
#define ACPI_EVAL_OUTPUT_BUFFER_SIGNATURE
#define IOCTL_ACPI_EVAL_METHOD
ACPI_EVAL_OUTPUT_BUFFER UNALIGNED * PACPI_EVAL_OUTPUT_BUFFER
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char * FunctionName
#define CMBATT_ACPI_WARNING
#define CMBATT_ACPI_ASSERT
#define CMBATT_GENERIC_WARNING
#define CMBATT_ACPI_ENTRY_EXIT
struct ACPI_PACKAGE_FIELD * PACPI_PACKAGE_FIELD
static NTSTATUS CmBattCallAcpiPackage(_In_ LPCSTR FunctionName, _In_ PCMBATT_DEVICE_EXTENSION DeviceExtension, _In_ ULONG PackageName, _In_ ULONG OutputBufferSize, _In_ PACPI_PACKAGE_FIELD PackageFields, _In_ ULONG PackageFieldCount)
NTSTATUS NTAPI CmBattSendDownStreamIrp(IN PDEVICE_OBJECT DeviceObject, IN ULONG IoControlCode, IN PVOID InputBuffer, IN ULONG InputBufferLength, IN PACPI_EVAL_OUTPUT_BUFFER OutputBuffer, IN ULONG OutputBufferLength)
NTSTATUS NTAPI GetDwordElement(IN PACPI_METHOD_ARGUMENT Argument, OUT PULONG Value)
NTSTATUS NTAPI CmBattGetBifData(PCMBATT_DEVICE_EXTENSION DeviceExtension, PACPI_BIF_DATA BifData)
NTSTATUS NTAPI CmBattGetUniqueId(IN PDEVICE_OBJECT DeviceObject, OUT PULONG UniqueId)
NTSTATUS NTAPI CmBattGetBstData(PCMBATT_DEVICE_EXTENSION DeviceExtension, PACPI_BST_DATA BstData)
NTSTATUS NTAPI CmBattSetTripPpoint(IN PCMBATT_DEVICE_EXTENSION DeviceExtension, IN ULONG AlarmValue)
NTSTATUS NTAPI CmBattGetStaData(IN PDEVICE_OBJECT DeviceObject, OUT PULONG StaData)
NTSTATUS NTAPI GetStringElement(IN PACPI_METHOD_ARGUMENT Argument, OUT PCHAR Value)
NTSTATUS NTAPI CmBattGetPsrData(IN PDEVICE_OBJECT DeviceObject, OUT PULONG PsrData)
#define NT_SUCCESS(StatCode)
#define ExAllocatePoolWithTag(hernya, size, tag)
#define KeWaitForSingleObject(pEvt, foo, a, b, c)
#define KeInitializeEvent(pEvt, foo, foo2)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define KeGetCurrentThread
#define ExFreePoolWithTag(_P, _T)
static OUT PIO_STATUS_BLOCK IoStatusBlock
PIRP NTAPI IoBuildDeviceIoControlRequest(IN ULONG IoControlCode, IN PDEVICE_OBJECT DeviceObject, IN PVOID InputBuffer, IN ULONG InputBufferLength, IN PVOID OutputBuffer, IN ULONG OutputBufferLength, IN BOOLEAN InternalDeviceIoControl, IN PKEVENT Event, IN PIO_STATUS_BLOCK IoStatusBlock)
#define STATUS_ACPI_INVALID_DATA
#define STATUS_BUFFER_TOO_SMALL
ULONG BatteryCapacityGranularity1
ULONG DesignCapacityWarning
ULONG BatteryCapacityGranularity2
#define RtlCopyMemory(Destination, Source, Length)
#define RtlZeroMemory(Destination, Length)
#define STATUS_NO_SUCH_DEVICE
#define STATUS_INSUFFICIENT_RESOURCES
_In_ PDEVICE_OBJECT DeviceObject
_In_ WDFREQUEST _In_ size_t _In_ size_t _In_ ULONG IoControlCode
_In_ WDFREQUEST _In_ size_t OutputBufferLength
_In_ WDFREQUEST _In_ size_t _In_ size_t InputBufferLength
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value