summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/storage.h3
-rw-r--r--firmware/target/hosted/sdl/button-sdl.c2
-rw-r--r--firmware/target/mips/ingenic_jz47xx/ata-nand-jz4760.c6
3 files changed, 7 insertions, 4 deletions
diff --git a/firmware/export/storage.h b/firmware/export/storage.h
index ee1423c93a..b87b7d001f 100644
--- a/firmware/export/storage.h
+++ b/firmware/export/storage.h
@@ -310,6 +310,9 @@ void storage_get_info(int drive, struct storage_info *info);
310#ifdef HAVE_HOTSWAP 310#ifdef HAVE_HOTSWAP
311bool storage_removable(int drive); 311bool storage_removable(int drive);
312bool storage_present(int drive); 312bool storage_present(int drive);
313#else
314#define storage_removable(x) 0
315#define storage_present(x) 1
313#endif 316#endif
314int storage_driver_type(int drive); 317int storage_driver_type(int drive);
315 318
diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c
index 1055d7e0b9..b5f3720a3b 100644
--- a/firmware/target/hosted/sdl/button-sdl.c
+++ b/firmware/target/hosted/sdl/button-sdl.c
@@ -340,7 +340,7 @@ static void button_event(int key, bool pressed)
340 } 340 }
341 return; 341 return;
342#endif 342#endif
343#ifdef HAVE_MULTIDRIVE 343#ifdef HAVE_HOTSWAP
344 case EXT_KEY: 344 case EXT_KEY:
345 if (!pressed) 345 if (!pressed)
346 sim_trigger_external(!storage_present(1)); 346 sim_trigger_external(!storage_present(1));
diff --git a/firmware/target/mips/ingenic_jz47xx/ata-nand-jz4760.c b/firmware/target/mips/ingenic_jz47xx/ata-nand-jz4760.c
index 1c9fe4300b..914cd6d9d3 100644
--- a/firmware/target/mips/ingenic_jz47xx/ata-nand-jz4760.c
+++ b/firmware/target/mips/ingenic_jz47xx/ata-nand-jz4760.c
@@ -565,7 +565,7 @@ static inline int write_sector(unsigned long start, unsigned int count,
565 565
566int nand_read_sectors(IF_MD(int drive,) unsigned long start, int count, void* buf) 566int nand_read_sectors(IF_MD(int drive,) unsigned long start, int count, void* buf)
567{ 567{
568#ifdef HAVE_MULTIVOLUME 568#ifdef HAVE_MULTIDRIVE
569 (void)drive; 569 (void)drive;
570#endif 570#endif
571 int ret = 0; 571 int ret = 0;
@@ -592,7 +592,7 @@ int nand_read_sectors(IF_MD(int drive,) unsigned long start, int count, void* bu
592 592
593int nand_write_sectors(IF_MD(int drive,) unsigned long start, int count, const void* buf) 593int nand_write_sectors(IF_MD(int drive,) unsigned long start, int count, const void* buf)
594{ 594{
595#ifdef HAVE_MULTIVOLUME 595#ifdef HAVE_MULTIDRIVE
596 (void)drive; 596 (void)drive;
597#endif 597#endif
598 int ret = 0; 598 int ret = 0;
@@ -664,7 +664,7 @@ void nand_sleepnow(void)
664#ifdef STORAGE_GET_INFO 664#ifdef STORAGE_GET_INFO
665void nand_get_info(IF_MD(int drive,) struct storage_info *info) 665void nand_get_info(IF_MD(int drive,) struct storage_info *info)
666{ 666{
667#ifdef HAVE_MULTIVOLUME 667#ifdef HAVE_MULTIDRIVE
668 (void)drive; 668 (void)drive;
669#endif 669#endif
670 670