1 /* 2 * PROJECT: ReactOS Kernel 3 * LICENSE: GPL - See COPYING in the top level directory 4 * FILE: drivers/battery/battc/battc.h 5 * PURPOSE: Battery Class Driver 6 * PROGRAMMERS: Cameron Gutman (cameron.gutman@reactos.org) 7 */ 8 9 #pragma once 10 11 #include <ntddk.h> 12 #include <wmilib.h> 13 #include <initguid.h> 14 #include <batclass.h> 15 16 typedef struct _BATTERY_CLASS_DATA 17 { 18 BATTERY_MINIPORT_INFO MiniportInfo; 19 KEVENT WaitEvent; 20 BOOLEAN Waiting; 21 FAST_MUTEX Mutex; 22 UCHAR EventTrigger; 23 PVOID EventTriggerContext; 24 UNICODE_STRING InterfaceName; 25 } BATTERY_CLASS_DATA, *PBATTERY_CLASS_DATA; 26 27 /* Memory tags */ 28 #define BATTERY_CLASS_DATA_TAG 'CtaB' 29 30 /* Event triggers */ 31 #define EVENT_BATTERY_TAG 0x01 32 #define EVENT_BATTERY_STATUS 0x02 33