summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-07-01 23:39:57 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-07-01 23:39:57 +0000
commit293b499093baef544f7148a0fcfa18d28ed3d1ea (patch)
treed1b7dc73085f2d443a683cd40569ef3d9b558c6e /firmware/target/arm
parentccbd8f4f31ec7f2c2ca03d3ac57ccdb28afc132c (diff)
downloadrockbox-293b499093baef544f7148a0fcfa18d28ed3d1ea.tar.gz
rockbox-293b499093baef544f7148a0fcfa18d28ed3d1ea.zip
Move sd_get_info() into common sd code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21610 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/as3525/ata_sd_as3525.c14
-rw-r--r--firmware/target/arm/ata-sd-pp.c21
2 files changed, 0 insertions, 35 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c
index f32e527ff2..4ce14383f0 100644
--- a/firmware/target/arm/as3525/ata_sd_as3525.c
+++ b/firmware/target/arm/as3525/ata_sd_as3525.c
@@ -495,20 +495,6 @@ int sd_init(void)
return 0;
}
-#ifdef STORAGE_GET_INFO
-void sd_get_info(IF_MV2(int drive,) struct storage_info *info)
-{
-#ifndef HAVE_MULTIVOLUME
- const int drive=0;
-#endif
- info->sector_size=card_info[drive].blocksize;
- info->num_sectors=card_info[drive].numblocks;
- info->vendor="Rockbox";
- info->product = (drive == 0) ? "Internal Storage" : "SD Card Slot";
- info->revision="0.00";
-}
-#endif
-
#ifdef HAVE_HOTSWAP
bool sd_removable(IF_MV_NONVOID(int drive))
{
diff --git a/firmware/target/arm/ata-sd-pp.c b/firmware/target/arm/ata-sd-pp.c
index 9c89c78da8..e1e85b8a92 100644
--- a/firmware/target/arm/ata-sd-pp.c
+++ b/firmware/target/arm/ata-sd-pp.c
@@ -1334,27 +1334,6 @@ long sd_last_disk_activity(void)
return last_disk_activity;
}
-#ifdef STORAGE_GET_INFO
-void sd_get_info(IF_MV2(int drive,) struct storage_info *info)
-{
-#ifndef HAVE_MULTIVOLUME
- const int drive=0;
-#endif
- info->sector_size=card_info[drive].blocksize;
- info->num_sectors=card_info[drive].numblocks;
- info->vendor="Rockbox";
- if(drive==0)
- {
- info->product="Internal Storage";
- }
- else
- {
- info->product="SD Card Slot";
- }
- info->revision="0.00";
-}
-#endif
-
#ifdef HAVE_HOTSWAP
bool sd_removable(IF_MV_NONVOID(int drive))
{