ReactOS 0.4.16-dev-555-g690643f
|
Go to the source code of this file.
Classes | |
struct | _ACPI_BST_DATA |
struct | _ACPI_BIF_DATA |
struct | _ACPI_BIX_DATA |
struct | _ACPI_BATT_STATIC_INFO |
struct | _CMBATT_DEVICE_EXTENSION |
Typedefs | |
typedef enum _CMBATT_EXTENSION_TYPE | CMBATT_EXTENSION_TYPE |
typedef struct _ACPI_BST_DATA | ACPI_BST_DATA |
typedef struct _ACPI_BST_DATA * | PACPI_BST_DATA |
typedef struct _ACPI_BIF_DATA | ACPI_BIF_DATA |
typedef struct _ACPI_BIF_DATA * | PACPI_BIF_DATA |
typedef struct _ACPI_BIX_DATA | ACPI_BIX_DATA |
typedef struct _ACPI_BIX_DATA * | PACPI_BIX_DATA |
typedef struct _ACPI_BATT_STATIC_INFO | ACPI_BATT_STATIC_INFO |
typedef struct _ACPI_BATT_STATIC_INFO * | PACPI_BATT_STATIC_INFO |
typedef struct _CMBATT_DEVICE_EXTENSION | CMBATT_DEVICE_EXTENSION |
typedef struct _CMBATT_DEVICE_EXTENSION * | PCMBATT_DEVICE_EXTENSION |
Enumerations | |
enum | _CMBATT_EXTENSION_TYPE { CmBattAcAdapter , CmBattBattery } |
Variables | |
PDEVICE_OBJECT | AcAdapterPdo |
ULONG | CmBattDebug |
#define CONVERT_BATT_INFO | ( | Capacity, | |
DesignVoltage | |||
) |
#define CONVERT_MAH_TO_MWH | ( | mA, | |
Volts | |||
) | (((mA) * (Volts) + 500) / 1000) |
#define IOCTL_BATTERY_QUERY_BIF_BIX CTL_CODE(FILE_DEVICE_BATTERY, 0x105, METHOD_BUFFERED, FILE_READ_ACCESS) |
#define IOCTL_BATTERY_QUERY_BST CTL_CODE(FILE_DEVICE_BATTERY, 0x106, METHOD_BUFFERED, FILE_READ_ACCESS) |
#define IOCTL_BATTERY_QUERY_PSR CTL_CODE(FILE_DEVICE_BATTERY, 0x103, METHOD_BUFFERED, FILE_READ_ACCESS) |
#define IOCTL_BATTERY_QUERY_STA CTL_CODE(FILE_DEVICE_BATTERY, 0x102, METHOD_BUFFERED, FILE_READ_ACCESS) |
#define IOCTL_BATTERY_QUERY_UNIQUE_ID CTL_CODE(FILE_DEVICE_BATTERY, 0x101, METHOD_BUFFERED, FILE_READ_ACCESS) |
#define IOCTL_BATTERY_SET_TRIP_POINT CTL_CODE(FILE_DEVICE_BATTERY, 0x104, METHOD_BUFFERED, FILE_READ_ACCESS) |
typedef struct _ACPI_BIF_DATA ACPI_BIF_DATA |
typedef struct _ACPI_BIX_DATA ACPI_BIX_DATA |
typedef struct _ACPI_BST_DATA ACPI_BST_DATA |
typedef struct _ACPI_BIF_DATA * PACPI_BIF_DATA |
typedef struct _ACPI_BIX_DATA * PACPI_BIX_DATA |
typedef struct _ACPI_BST_DATA * PACPI_BST_DATA |
Enumerator | |
---|---|
CmBattAcAdapter | |
CmBattBattery |
NTSTATUS NTAPI CmBattAddDevice | ( | PDRIVER_OBJECT | DriverObject, |
PDEVICE_OBJECT | DeviceObject | ||
) |
Referenced by DriverEntry().
NTSTATUS NTAPI CmBattDisableStatusNotify | ( | IN PCMBATT_DEVICE_EXTENSION | DeviceExtension | ) |
Definition at line 884 of file cmbatt.c.
Referenced by CmBattAddBattery().
NTSTATUS NTAPI CmBattGetBifData | ( | PCMBATT_DEVICE_EXTENSION | DeviceExtension, |
PACPI_BIF_DATA | BifData | ||
) |
Definition at line 412 of file cmexec.c.
Referenced by CmBattGetBattStaticInfo(), and CmBattIoctl().
NTSTATUS NTAPI CmBattGetBixData | ( | _In_ PCMBATT_DEVICE_EXTENSION | DeviceExtension, |
_Out_ PACPI_BIX_DATA | BixData | ||
) |
Retrieves the eXtended static battery information from the ACPI _BIX method.
[in] | DeviceExtension | A pointer to a Control Method (CM) battery device extension. It is used to send the ACPI method evaluation operation to the ACPI driver of which it is attached to this CM battery. |
[out] | BixData | A pointer to a structure that contains the _BIX data fields, returned to caller. |
Definition at line 468 of file cmexec.c.
Referenced by CmBattGetBattStaticInfo(), and CmBattIoctl().
NTSTATUS NTAPI CmBattGetBstData | ( | PCMBATT_DEVICE_EXTENSION | DeviceExtension, |
PACPI_BST_DATA | BstData | ||
) |
Definition at line 514 of file cmexec.c.
Referenced by CmBattGetBatteryStatus(), CmBattIoctl(), and CmBattSetStatusNotify().
NTSTATUS NTAPI CmBattGetPsrData | ( | PDEVICE_OBJECT | DeviceObject, |
PULONG | PsrData | ||
) |
Referenced by CmBattGetBatteryStatus(), and CmBattIoctl().
NTSTATUS NTAPI CmBattGetStaData | ( | PDEVICE_OBJECT | DeviceObject, |
PULONG | StaData | ||
) |
Referenced by CmBattIoctl(), and CmBattQueryTag().
NTSTATUS NTAPI CmBattGetUniqueId | ( | PDEVICE_OBJECT | DeviceObject, |
PULONG | UniqueId | ||
) |
Referenced by CmBattCreateFdo(), and CmBattIoctl().
VOID NTAPI CmBattNotifyHandler | ( | IN PCMBATT_DEVICE_EXTENSION | DeviceExtension, |
IN ULONG | NotifyValue | ||
) |
Definition at line 142 of file cmbatt.c.
Referenced by CmBattAddAcAdapter(), CmBattAddBattery(), CmBattGetBatteryStatus(), CmBattRemoveDevice(), and CmBattSetStatusNotify().
NTSTATUS NTAPI CmBattPnpDispatch | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp | ||
) |
Referenced by DriverEntry().
NTSTATUS NTAPI CmBattPowerDispatch | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp | ||
) |
Referenced by DriverEntry().
NTSTATUS NTAPI CmBattQueryInformation | ( | IN PCMBATT_DEVICE_EXTENSION | FdoExtension, |
IN ULONG | Tag, | ||
IN BATTERY_QUERY_INFORMATION_LEVEL | InfoLevel, | ||
IN OPTIONAL LONG | AtRate, | ||
IN PVOID | Buffer, | ||
IN ULONG | BufferLength, | ||
OUT PULONG | ReturnedLength | ||
) |
Definition at line 1317 of file cmbatt.c.
Referenced by CmBattAddBattery().
NTSTATUS NTAPI CmBattQueryStatus | ( | IN PCMBATT_DEVICE_EXTENSION | DeviceExtension, |
IN ULONG | Tag, | ||
IN PBATTERY_STATUS | BatteryStatus | ||
) |
Definition at line 1573 of file cmbatt.c.
Referenced by CmBattAddBattery().
Definition at line 826 of file cmbatt.c.
Referenced by CmBattAddBattery().
NTSTATUS NTAPI CmBattSetStatusNotify | ( | IN PCMBATT_DEVICE_EXTENSION | DeviceExtension, |
IN ULONG | BatteryTag, | ||
IN PBATTERY_NOTIFY | BatteryNotify | ||
) |
Definition at line 925 of file cmbatt.c.
Referenced by CmBattAddBattery().
NTSTATUS NTAPI CmBattSetTripPpoint | ( | PCMBATT_DEVICE_EXTENSION | DeviceExtension, |
ULONG | AlarmValue | ||
) |
Referenced by CmBattAddBattery(), CmBattDisableStatusNotify(), CmBattIoctl(), and CmBattSetStatusNotify().
NTSTATUS NTAPI CmBattSystemControl | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp | ||
) |
Referenced by DriverEntry().
NTSTATUS NTAPI CmBattWmiDeRegistration | ( | PCMBATT_DEVICE_EXTENSION | DeviceExtension | ) |
Referenced by CmBattAddBattery(), and CmBattRemoveDevice().
NTSTATUS NTAPI CmBattWmiRegistration | ( | PCMBATT_DEVICE_EXTENSION | DeviceExtension | ) |
Referenced by CmBattAddAcAdapter(), and CmBattAddBattery().
|
extern |
Definition at line 23 of file cmbatt.c.
Referenced by CmBattAddAcAdapter(), CmBattGetBatteryStatus(), CmBattIoctl(), and CmBattRemoveDevice().
|
extern |
Definition at line 17 of file cmbatt.c.
Referenced by CmBattAddAcAdapter(), CmBattAddBattery(), CmBattAddDevice(), CmBattCallAcpiPackage(), CmBattCreateFdo(), CmBattDestroyFdo(), CmBattDisableStatusNotify(), CmBattGetAcpiInterfaces(), CmBattGetBatteryStatus(), CmBattGetBifData(), CmBattGetBixData(), CmBattGetBstData(), CmBattGetPsrData(), CmBattGetStaData(), CmBattGetUniqueId(), CmBattIoCompletion(), CmBattIoctl(), CmBattNotifyHandler(), CmBattOpenClose(), CmBattPnpDispatch(), CmBattPowerCallBack(), CmBattPowerDispatch(), CmBattQueryInformation(), CmBattQueryStatus(), CmBattQueryTag(), CmBattRemoveDevice(), CmBattSendDownStreamIrp(), CmBattSetStatusNotify(), CmBattSetTripPpoint(), CmBattSystemControl(), CmBattUnload(), CmBattWaitWakeLoop(), CmBattWakeDpc(), DriverEntry(), GetDwordElement(), and GetStringElement().