]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/IOPolledInterface.h
xnu-4570.51.1.tar.gz
[apple/xnu.git] / iokit / IOKit / IOPolledInterface.h
index cd1ba59862f249139c714e78907a62cdc26e01f8..84d27043b03cc749c6142e06843c239bd499d9cf 100644 (file)
@@ -91,7 +91,9 @@ public:
 
     virtual IOReturn checkForWork(void) = 0;
 
-    OSMetaClassDeclareReservedUnused(IOPolledInterface, 0);
+    virtual IOReturn setEncryptionKey(const uint8_t * key, size_t keySize);
+
+    OSMetaClassDeclareReservedUsed(IOPolledInterface, 0);
     OSMetaClassDeclareReservedUnused(IOPolledInterface, 1);
     OSMetaClassDeclareReservedUnused(IOPolledInterface, 2);
     OSMetaClassDeclareReservedUnused(IOPolledInterface, 3);
@@ -177,7 +179,7 @@ IOReturn IOPolledFileOpen(const char * filename,
                          void * write_file_addr, size_t write_file_len,
                          IOPolledFileIOVars ** fileVars,
                          OSData ** imagePath,
-                         uint8_t * volumeCryptKey, size_t keySize);
+                         uint8_t * volumeCryptKey, size_t keySize);
 
 IOReturn IOPolledFileClose(IOPolledFileIOVars ** pVars,
                           off_t write_offset, void * addr, size_t write_length,
@@ -210,6 +212,9 @@ extern __C IOReturn IOPolledFilePollersOpen(IOPolledFileIOVars * vars, uint32_t
 
 extern __C IOReturn IOPolledFilePollersClose(IOPolledFileIOVars * vars, uint32_t state);
 
+extern __C IOReturn IOPolledFilePollersSetEncryptionKey(IOPolledFileIOVars * vars,
+                                   const uint8_t * key, size_t keySize);
+
 extern __C IOPolledFileIOVars * gCoreFileVars;
 
 #ifdef _SYS_CONF_H_