]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IOHibernateInternal.h
xnu-2050.48.11.tar.gz
[apple/xnu.git] / iokit / Kernel / IOHibernateInternal.h
index 7e7e95fe6787578f35c9b5dac6be80cdff6db2f7..23f875d18e5428b467ef326ec3205f67f3eb1074 100644 (file)
@@ -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;