/*
- * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 1998-2007 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_END@
*/
+#ifndef _IOKIT_IOPMINFORMEE_H
+#define _IOKIT_IOPMINFORMEE_H
+
#include <IOKit/IOService.h>
#include <IOKit/IOReturn.h>
class IOPMinformee : public OSObject
{
-OSDeclareDefaultStructors(IOPMinformee)
+ OSDeclareDefaultStructors(IOPMinformee)
+ friend class IOPMinformeeList;
public:
+ static IOPMinformee * withObject( IOService * theObject );
-// points to interested driver or power domain child
-IOService * whatObject;
-
-// -1, 0, or positive number decrementing with each tick
- IOReturn timer;
+ void initialize( IOService * theObject );
-// next informee in the list
- IOPMinformee * nextInList;
+ void free( void ) APPLE_KEXT_OVERRIDE;
-
-void initialize ( IOService * theObject );
-void free ( void );
+public:
+ IOService * whatObject; // interested driver
+ int32_t timer; // -1, 0, or positive number of ticks
+ IOPMinformee * nextInList; // linkage pointer
+ AbsoluteTime startTime; // start time of last inform
+ bool active; // enable flag
};
+#endif /* !_IOKIT_IOPMINFORMEE_H */