class IOBufferMemoryDescriptor * handoffBuffer;
class IOMemoryDescriptor * previewBuffer;
OSData * previewData;
- OSData * fileExtents;
OSObject * saveBootDevice;
struct IOPolledFileIOVars * fileVars;
uint8_t * consoleMapping;
uint8_t haveFastBoot;
uint8_t saveBootAudioVolume;
+ uint8_t hwEncrypt;
uint8_t wiredCryptKey[kIOHibernateAESKeySize / 8];
uint8_t cryptKey[kIOHibernateAESKeySize / 8];
- uint8_t volumeCryptKey[kIOHibernateAESKeySize / 8];
+ size_t volumeCryptKeySize;
+ uint8_t volumeCryptKey[64];
};
typedef struct IOHibernateVars IOHibernateVars;
-
-struct IOPolledFileIOVars
-{
- struct kern_direct_file_io_ref_t * fileRef;
- IORegistryEntry * media;
- class OSArray * pollers;
- IOByteCount blockSize;
- uint8_t * buffer;
- IOByteCount bufferSize;
- IOByteCount bufferLimit;
- IOByteCount bufferOffset;
- IOByteCount bufferHalf;
- IOByteCount extentRemaining;
- IOByteCount lastRead;
- IOByteCount readEnd;
- uint32_t flags;
- uint64_t fileSize;
- uint64_t block0;
- uint64_t position;
- uint64_t extentPosition;
- uint64_t encryptStart;
- uint64_t encryptEnd;
- uint64_t cryptBytes;
- AbsoluteTime cryptTime;
- IOPolledFileExtent * extentMap;
- IOPolledFileExtent * currentExtent;
- bool io;
- IOReturn ioStatus;
-};
-typedef struct IOPolledFileIOVars IOPolledFileIOVars;
-
#endif /* __cplusplus */
enum