2010-03-08 21:09:25 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS Kernel
|
|
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
|
|
* FILE: drivers/battery/battc/battc.h
|
|
|
|
* PURPOSE: Battery Class Driver
|
|
|
|
* PROGRAMMERS: Cameron Gutman (cameron.gutman@reactos.org)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <ntddk.h>
|
2010-03-30 21:50:05 +00:00
|
|
|
#include <wmilib.h>
|
2010-03-08 21:09:25 +00:00
|
|
|
#include <initguid.h>
|
|
|
|
#include <batclass.h>
|
|
|
|
|
2019-01-01 11:58:53 +00:00
|
|
|
typedef struct _BATTERY_CLASS_DATA
|
|
|
|
{
|
|
|
|
BATTERY_MINIPORT_INFO MiniportInfo;
|
|
|
|
KEVENT WaitEvent;
|
|
|
|
BOOLEAN Waiting;
|
|
|
|
FAST_MUTEX Mutex;
|
|
|
|
UCHAR EventTrigger;
|
|
|
|
PVOID EventTriggerContext;
|
|
|
|
UNICODE_STRING InterfaceName;
|
2010-03-08 21:09:25 +00:00
|
|
|
} BATTERY_CLASS_DATA, *PBATTERY_CLASS_DATA;
|
|
|
|
|
|
|
|
/* Memory tags */
|
|
|
|
#define BATTERY_CLASS_DATA_TAG 'CtaB'
|
|
|
|
|
|
|
|
/* Event triggers */
|
|
|
|
#define EVENT_BATTERY_TAG 0x01
|
|
|
|
#define EVENT_BATTERY_STATUS 0x02
|