#ifndef _IOKIT_IOSERVICEPM_H
#define _IOKIT_IOSERVICEPM_H
#include <IOKit/pwr_mgt/IOPM.h>
class IOService;
class IOServicePM;
class IOPowerConnection;
class IOWorkLoop;
class IOCommandGate;
class IOTimerEventSource;
class IOPlatformExpert;
#ifdef XNU_KERNEL_PRIVATE
class IOPMinformee;
class IOPMinformeeList;
class IOPMWorkQueue;
class IOPMRequest;
class IOPMRequestQueue;
class IOPMCompletionQueue;
typedef void (*IOPMCompletionAction)(void * target, void * param);
#ifndef kPMPowerStatesChID
#define kPMPowerStatesChID IOREPORT_MAKEID('P','M','S','t','H','i','s','t')
#endif
#ifndef kPMCurrStateChID
#define kPMCurrStateChID IOREPORT_MAKEID( 'P','M','C','u','r','S','t','\0' )
#endif
#define kPMReportPowerOn 0x01
#define kPMReportDeviceUsable 0x02
#define kPMReportLowPower 0x04
typedef unsigned long IOPMPowerStateIndex;
typedef uint32_t IOPMPowerChangeFlags;
typedef uint32_t IOPMRequestTag;
struct IOPMDriverCallEntry {
queue_chain_t link;
thread_t thread;
IOService * target;
const void *callMethod;
};
extern const OSSymbol * gIOPMPowerClientDevice;
extern const OSSymbol * gIOPMPowerClientDriver;
extern const OSSymbol * gIOPMPowerClientChildProxy;
extern const OSSymbol * gIOPMPowerClientChildren;
extern const OSSymbol * gIOPMPowerClientRootDomain;
#ifdef __LP64__
#define PM_VARS_SUPPORT 0
#else
#define PM_VARS_SUPPORT 1
#endif
#if PM_VARS_SUPPORT
class IOPMprot : public OSObject
{
friend class IOService;
OSDeclareDefaultStructors(IOPMprot);
public:
const char * ourName;
IOPlatformExpert * thePlatform;
unsigned long theNumberOfPowerStates;
IOPMPowerState thePowerStates[IOPMMaxPowerStates];
IOService * theControllingDriver;
unsigned long aggressiveness;
unsigned long current_aggressiveness_values[kMaxType + 1];
bool current_aggressiveness_valid[kMaxType + 1];
unsigned long myCurrentState;
};
#endif
#endif
#endif