]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/IOPlatformExpert.h
xnu-1456.1.26.tar.gz
[apple/xnu.git] / iokit / IOKit / IOPlatformExpert.h
index ff951f4d6b664a1743866414254c3ff047439451..f75a3e3ab834d388d0bcfbab6713be900327d8a6 100644 (file)
@@ -45,6 +45,8 @@
 extern "C" {
 #endif
 
+#include <libkern/OSTypes.h>
+
 extern boolean_t PEGetMachineName( char * name, int maxLength );
 extern boolean_t PEGetModelName( char * name, int maxLength );
 extern int PEGetPlatformEpoch( void );
@@ -53,13 +55,15 @@ enum {
   kPEHaltCPU,
   kPERestartCPU,
   kPEHangCPU,
-  kPEUPSDelayHaltCPU
+  kPEUPSDelayHaltCPU,
+  kPEPanicRestartCPU,
+  kPEPanicSync
 };
 extern int (*PE_halt_restart)(unsigned int type);
 extern int PEHaltRestart(unsigned int type);
 
 // Save the Panic Info.  Returns the number of bytes saved.
-extern unsigned long PESavePanicInfo(unsigned char *buffer, unsigned long  length);
+extern UInt32 PESavePanicInfo(UInt8 *buffer, UInt32 length);
 
 extern long PEGetGMTTimeOfDay( void );
 extern void PESetGMTTimeOfDay( long secs );
@@ -69,7 +73,13 @@ extern void PESetGMTTimeOfDay( long secs );
 
 #define kIOPlatformMapperPresentKey "IOPlatformMapperPresent"
 
-extern OSSymbol * gPlatformInterruptControllerName;
+
+extern OSSymbol *               gPlatformInterruptControllerName;
+
+extern const OSSymbol *                gIOPlatformSleepActionKey;
+extern const OSSymbol *                gIOPlatformWakeActionKey;
+extern const OSSymbol *                gIOPlatformQuiesceActionKey;
+extern const OSSymbol *                gIOPlatformActiveActionKey;
 
 class IORangeAllocator;
 class IONVRAMController;
@@ -271,12 +281,10 @@ public:
     virtual bool compareName( OSString * name, OSString ** matched = 0 ) const;
 
     virtual IOWorkLoop *getWorkLoop() const;
+    virtual IOReturn setProperties( OSObject * properties );
 
     virtual void free();
 
-    virtual bool attachToChild( IORegistryEntry * child,
-                                const IORegistryPlane * plane );
-
     OSMetaClassDeclareReservedUnused(IOPlatformExpertDevice,  0);
     OSMetaClassDeclareReservedUnused(IOPlatformExpertDevice,  1);
     OSMetaClassDeclareReservedUnused(IOPlatformExpertDevice,  2);