]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/page_decrypt.h
xnu-3789.1.32.tar.gz
[apple/xnu.git] / osfmk / kern / page_decrypt.h
index ad81beef37cc5af33295cfcd2465502835661f87..3860f9b39b64681ffc9d0b35298095ac12974153 100644 (file)
@@ -31,6 +31,8 @@
 #ifndef _KERN_PAGE_DECRYPT_H
 #define _KERN_PAGE_DECRYPT_H
 
+#include <mach/machine.h>
+
 /* 
  * Interface for DSMOS 
  */
@@ -51,9 +53,17 @@ struct pager_crypt_info {
         void    (*crypt_end)(void *crypt_ops);
         /* Private data for the crypter */
         void    *crypt_ops;
+       volatile int    crypt_refcnt;
 };
 typedef struct pager_crypt_info pager_crypt_info_t;
 
+struct crypt_file_data {
+       char          *filename;
+       cpu_type_t     cputype;
+       cpu_subtype_t  cpusubtype;
+};
+typedef struct crypt_file_data crypt_file_data_t;
+
 typedef int (*text_crypter_create_hook_t)(struct pager_crypt_info *crypt_info, 
                                                const char *id, void *crypt_data);
 extern void text_crypter_create_hook_set(text_crypter_create_hook_t hook);