* DKIOCREQUESTIDLE idle media
* DKIOCUNMAP delete unused data
*
+ * DKIOCGETLOCATION get device's physical location
+ *
* DKIOCGETMAXBLOCKCOUNTREAD get maximum block count for reads
* DKIOCGETMAXBLOCKCOUNTWRITE get maximum block count for writes
* DKIOCGETMAXBYTECOUNTREAD get maximum byte count for reads
#endif /* !__LP64__ */
} dk_unmap_t;
-
typedef struct{
uint64_t flags;
uint64_t hotfile_size; /* in bytes */
char * description;
} dk_error_description_t;
+#define DK_LOCATION_INTERNAL 0x00000000
+#define DK_LOCATION_EXTERNAL 0x00000001
#ifdef KERNEL
#ifdef PRIVATE
#define DKIOCUNMAP _IOW('d', 31, dk_unmap_t)
#define DKIOCCORESTORAGE _IOR('d', 32, dk_corestorage_info_t)
+#define DKIOCGETLOCATION _IOR('d', 33, uint64_t)
+
#define DKIOCGETMAXBLOCKCOUNTREAD _IOR('d', 64, uint64_t)
#define DKIOCGETMAXBLOCKCOUNTWRITE _IOR('d', 65, uint64_t)
#define DKIOCGETMAXBYTECOUNTREAD _IOR('d', 70, uint64_t)
#endif /* KERNEL */
#ifdef PRIVATE
-#if TARGET_OS_EMBEDDED
+#if (TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR)
#define _DKIOCSETSTATIC _IO('d', 84)
-#endif /* TARGET_OS_EMBEDDED */
+#endif /* (TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR) */
#endif /* PRIVATE */
#endif /* _SYS_DISK_H_ */