]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Drivers/platform/drvAppleRootDomain/RootDomainUserClient.cpp
xnu-201.tar.gz
[apple/xnu.git] / iokit / Drivers / platform / drvAppleRootDomain / RootDomainUserClient.cpp
index 598cbaf9a58c3d697695db11cc0a69621104bbbd..35fd5aa28e62566d065a4758edc78ba04ed669a6 100644 (file)
@@ -91,6 +91,18 @@ bool RootDomainUserClient::start( IOService * provider )
     fMethods[kPMCancelPowerChange].count1 = 0;
     fMethods[kPMCancelPowerChange].flags = kIOUCScalarIScalarO;
 
+    fMethods[kPMShutdownSystem].object = provider;             // 5
+    fMethods[kPMShutdownSystem].func = (IOMethod)&IOPMrootDomain::shutdownSystem;
+    fMethods[kPMShutdownSystem].count0 = 0;
+    fMethods[kPMShutdownSystem].count1 = 0;
+    fMethods[kPMShutdownSystem].flags = kIOUCScalarIScalarO;
+
+    fMethods[kPMRestartSystem].object = provider;              // 6
+    fMethods[kPMRestartSystem].func = (IOMethod)&IOPMrootDomain::restartSystem;
+    fMethods[kPMRestartSystem].count0 = 0;
+    fMethods[kPMRestartSystem].count1 = 0;
+    fMethods[kPMRestartSystem].flags = kIOUCScalarIScalarO;
+
     return true;
 }