]> 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 3b3a663ecc5aa14aace07060be5cc7197a40973c..84d27043b03cc749c6142e06843c239bd499d9cf 100644 (file)
@@ -54,7 +54,8 @@ enum
 enum
 {
     kIOPolledWrite = 1,
-    kIOPolledRead  = 2
+    kIOPolledRead  = 2,
+    kIOPolledFlush = 3
 };
 
 typedef void (*IOPolledCompletionAction)( void *   target,
@@ -90,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);
@@ -176,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,
@@ -203,10 +206,15 @@ extern __C IOReturn IOPolledFileRead(IOPolledFileIOVars * vars,
                          uint8_t * bytes, IOByteCount size,
                          IOPolledFileCryptVars * cryptvars);
 
+extern __C IOReturn IOPolledFileFlush(IOPolledFileIOVars * vars);
+
 extern __C IOReturn IOPolledFilePollersOpen(IOPolledFileIOVars * vars, uint32_t state, bool abortable);
 
 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_