summaryrefslogtreecommitdiff
path: root/firmware/export/disk.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/disk.h')
-rw-r--r--firmware/export/disk.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/export/disk.h b/firmware/export/disk.h
index e465552fdc..4f11438b1b 100644
--- a/firmware/export/disk.h
+++ b/firmware/export/disk.h
@@ -26,8 +26,8 @@
26 26
27struct partinfo 27struct partinfo
28{ 28{
29 unsigned long start; /* first sector (LBA) */ 29 sector_t start; /* first sector (LBA) */
30 unsigned long size; /* number of sectors */ 30 sector_t size; /* number of sectors */
31 unsigned char type; 31 unsigned char type;
32}; 32};
33 33
@@ -47,10 +47,12 @@ int disk_mount(int drive);
47int disk_unmount_all(void); 47int disk_unmount_all(void);
48int disk_unmount(int drive); 48int disk_unmount(int drive);
49 49
50/* The number of 512-byte sectors in a "logical" sector. Needed for ipod 5.5G */ 50/* Used when the drive's logical sector size is smaller than the sector size used by the partition table and filesystem. Notably needed for ipod 5.5G/6G. */
51#ifdef MAX_LOG_SECTOR_SIZE 51#ifdef MAX_LOG_SECTOR_SIZE
52int disk_get_sector_multiplier(IF_MD_NONVOID(int drive)); 52int disk_get_sector_multiplier(IF_MD_NONVOID(int drive));
53#endif 53#endif
54/* The size of the drive's smallest addressible unit */
55int disk_get_log_sector_size(IF_MD_NONVOID(int drive));
54 56
55bool disk_present(IF_MD_NONVOID(int drive)); 57bool disk_present(IF_MD_NONVOID(int drive));
56 58