]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IOPMPowerStateQueue.h
xnu-3248.30.4.tar.gz
[apple/xnu.git] / iokit / Kernel / IOPMPowerStateQueue.h
index 713cb1afec0dcb70ccd1aad0d1bc681fc47acefa..bccf6f45f1df53e8f00064fa1fd82f34b3760ad9 100644 (file)
@@ -33,7 +33,7 @@
 #include <IOKit/IOLocks.h>
 #include <kern/queue.h>
 
-typedef void (*IOPMPowerStateQueueAction)(OSObject *, uint32_t event, void *, void *);
+typedef void (*IOPMPowerStateQueueAction)(OSObject *, uint32_t event, void *, uint64_t);
 
 class IOPMPowerStateQueue : public IOEventSource
 {
@@ -43,20 +43,21 @@ private:
     struct PowerEventEntry {
         queue_chain_t   chain;
         uint32_t        eventType;
-        void *          args[2];
+        void *          arg0;
+        uint64_t        arg1;
     };
 
     queue_head_t    queueHead;
     IOLock *        queueLock;
 
 protected:
-    virtual bool checkForWork( void );
-    virtual bool init( OSObject * owner, Action action );
+    virtual bool checkForWork( void ) APPLE_KEXT_OVERRIDE;
+    virtual bool init( OSObject * owner, Action action ) APPLE_KEXT_OVERRIDE;
 
 public:
     static IOPMPowerStateQueue * PMPowerStateQueue( OSObject * owner, Action action );
 
-    bool submitPowerEvent( uint32_t eventType, void * arg0 = 0, void * arg1 = 0 );
+    bool submitPowerEvent( uint32_t eventType, void * arg0 = 0, uint64_t arg1 = 0 );
 };
 
 #endif /* _IOPMPOWERSTATEQUEUE_H_ */