diff options
Diffstat (limited to 'firmware/export/storage.h')
-rw-r--r-- | firmware/export/storage.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/export/storage.h b/firmware/export/storage.h index b72cccc257..f97cbf34d5 100644 --- a/firmware/export/storage.h +++ b/firmware/export/storage.h | |||
@@ -107,7 +107,7 @@ int ramdisk_event(long id, intptr_t data); | |||
107 | struct storage_info | 107 | struct storage_info |
108 | { | 108 | { |
109 | unsigned int sector_size; | 109 | unsigned int sector_size; |
110 | unsigned int num_sectors; | 110 | sector_t num_sectors; |
111 | char *vendor; | 111 | char *vendor; |
112 | char *product; | 112 | char *product; |
113 | char *revision; | 113 | char *revision; |
@@ -174,7 +174,7 @@ static inline void storage_sleep(void) {}; | |||
174 | #define storage_disk_is_active() ata_disk_is_active() | 174 | #define storage_disk_is_active() ata_disk_is_active() |
175 | #define storage_soft_reset() ata_soft_reset() | 175 | #define storage_soft_reset() ata_soft_reset() |
176 | #ifdef HAVE_STORAGE_FLUSH | 176 | #ifdef HAVE_STORAGE_FLUSH |
177 | #define storage_flush() (void)0 | 177 | #define storage_flush() ata_flush() |
178 | #endif | 178 | #endif |
179 | #define storage_last_disk_activity() ata_last_disk_activity() | 179 | #define storage_last_disk_activity() ata_last_disk_activity() |
180 | #define storage_spinup_time() ata_spinup_time() | 180 | #define storage_spinup_time() ata_spinup_time() |
@@ -318,6 +318,6 @@ int storage_driver_type(int drive); | |||
318 | 318 | ||
319 | #endif /* NOT CONFIG_STORAGE_MULTI and NOT SIMULATOR*/ | 319 | #endif /* NOT CONFIG_STORAGE_MULTI and NOT SIMULATOR*/ |
320 | 320 | ||
321 | int storage_read_sectors(IF_MD(int drive,) unsigned long start, int count, void* buf); | 321 | int storage_read_sectors(IF_MD(int drive,) sector_t start, int count, void* buf); |
322 | int storage_write_sectors(IF_MD(int drive,) unsigned long start, int count, const void* buf); | 322 | int storage_write_sectors(IF_MD(int drive,) sector_t start, int count, const void* buf); |
323 | #endif | 323 | #endif |