]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/pwr_mgt/IOPMinformee.h
xnu-4570.51.1.tar.gz
[apple/xnu.git] / iokit / IOKit / pwr_mgt / IOPMinformee.h
index 8a164ac884a48797055154e284ed1830c6d5675d..9d4e0c3b91ca07e4a1379c23164aca3e61129b36 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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 */