]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/IOPlatformExpert.h
xnu-1699.22.73.tar.gz
[apple/xnu.git] / iokit / IOKit / IOPlatformExpert.h
index f75a3e3ab834d388d0bcfbab6713be900327d8a6..a27cf64adb496cf602ac3c03f7c805f1ab5ac346 100644 (file)
@@ -57,7 +57,8 @@ enum {
   kPEHangCPU,
   kPEUPSDelayHaltCPU,
   kPEPanicRestartCPU,
-  kPEPanicSync
+  kPEPanicSync,
+  kPEPagingOff
 };
 extern int (*PE_halt_restart)(unsigned int type);
 extern int PEHaltRestart(unsigned int type);
@@ -68,6 +69,12 @@ extern UInt32 PESavePanicInfo(UInt8 *buffer, UInt32 length);
 extern long PEGetGMTTimeOfDay( void );
 extern void PESetGMTTimeOfDay( long secs );
   
+/* unless it's a "well-known" property, these will read/write out the value as raw data */
+
+extern boolean_t PEWriteNVRAMProperty(const char *symbol, const void *value, const unsigned int len);
+
+extern boolean_t PEReadNVRAMProperty(const char *symbol, void *value, unsigned int *len);
+
 #ifdef __cplusplus
 } /* extern "C" */