summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2010-10-26 12:27:33 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2010-10-26 12:27:33 +0000
commit77b3529246da2107afd75f8aab4d652441035bf0 (patch)
tree1ea4a148e45a2bba181a96fc93de289de6cdaad1 /firmware
parenta900a29091deb5ac24abf70bed6292c9eb080fcf (diff)
downloadrockbox-77b3529246da2107afd75f8aab4d652441035bf0.tar.gz
rockbox-77b3529246da2107afd75f8aab4d652441035bf0.tar.bz2
rockbox-77b3529246da2107afd75f8aab4d652441035bf0.zip
Ramdisk: add hotswap support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28363 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/ramdisk.c19
-rw-r--r--firmware/export/ramdisk.h5
2 files changed, 24 insertions, 0 deletions
diff --git a/firmware/drivers/ramdisk.c b/firmware/drivers/ramdisk.c
index 661aa39695..7324af9f0a 100644
--- a/firmware/drivers/ramdisk.c
+++ b/firmware/drivers/ramdisk.c
@@ -139,4 +139,23 @@ int ramdisk_num_drives(int first_drive)
}
#endif
+#ifdef HAVE_HOTSWAP
+bool ramdisk_removable(IF_MD(int drive))
+{
+#ifdef HAVE_MULTIDRIVE
+ (void)drive; /* unused for now */
+#endif
+
+ return false;
+}
+
+bool ramdisk_present(IF_MD(int drive))
+{
+#ifdef HAVE_MULTIDRIVE
+ (void)drive; /* unused for now */
+#endif
+
+ return true;
+}
+#endif
diff --git a/firmware/export/ramdisk.h b/firmware/export/ramdisk.h
index 79551ca287..7a56e05989 100644
--- a/firmware/export/ramdisk.h
+++ b/firmware/export/ramdisk.h
@@ -50,4 +50,9 @@ long ramdisk_last_disk_activity(void);
int ramdisk_num_drives(int first_drive);
#endif
+#ifdef HAVE_HOTSWAP
+bool ramdisk_removable(IF_MD(int drive));
+bool ramdisk_present(IF_MD(int drive));
+#endif
+
#endif