X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/6d2010ae8f7a6078e10b361c6962983bab233e0f..bd504ef0e0b883cdd7917b73b3574eb9ce669905:/iokit/Kernel/IOHibernateInternal.h diff --git a/iokit/Kernel/IOHibernateInternal.h b/iokit/Kernel/IOHibernateInternal.h index 7e7e95fe6..23f875d18 100644 --- a/iokit/Kernel/IOHibernateInternal.h +++ b/iokit/Kernel/IOHibernateInternal.h @@ -46,6 +46,8 @@ struct IOHibernateVars OSObject * saveBootDevice; struct IOPolledFileIOVars * fileVars; + uint64_t fileMinSize; + uint64_t fileMaxSize; vm_offset_t videoMapping; vm_size_t videoAllocSize; vm_size_t videoMapSize; @@ -62,6 +64,7 @@ typedef struct IOHibernateVars IOHibernateVars; struct IOPolledFileIOVars { struct kern_direct_file_io_ref_t * fileRef; + IORegistryEntry * media; class OSArray * pollers; IOByteCount blockSize; uint8_t * buffer; @@ -73,6 +76,7 @@ struct IOPolledFileIOVars IOByteCount lastRead; IOByteCount readEnd; uint32_t flags; + uint64_t fileSize; uint64_t block0; uint64_t position; uint64_t extentPosition; @@ -101,13 +105,10 @@ extern "C" uint32_t hibernate_sum_page(uint8_t *buf, uint32_t ppnum); -extern vm_offset_t sectHIBB; -extern unsigned long sectSizeHIB; -extern vm_offset_t sectDATAB; -extern unsigned long sectSizeDATA; -#if defined(__i386__) || defined(__x86_64__) -extern vm_offset_t sectINITPTB; -#endif +extern vm_offset_t segHIBB; +extern unsigned long segSizeHIB; +extern vm_offset_t segDATAB; +extern unsigned long segSizeDATA; extern ppnum_t gIOHibernateHandoffPages[]; extern uint32_t gIOHibernateHandoffPageCount;