summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/as3525/ata_sd_as3525.c14
-rw-r--r--firmware/target/arm/ata-sd-pp.c21
-rw-r--r--firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c18
3 files changed, 0 insertions, 53 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)
495 return 0; 495 return 0;
496} 496}
497 497
498#ifdef STORAGE_GET_INFO
499void sd_get_info(IF_MV2(int drive,) struct storage_info *info)
500{
501#ifndef HAVE_MULTIVOLUME
502 const int drive=0;
503#endif
504 info->sector_size=card_info[drive].blocksize;
505 info->num_sectors=card_info[drive].numblocks;
506 info->vendor="Rockbox";
507 info->product = (drive == 0) ? "Internal Storage" : "SD Card Slot";
508 info->revision="0.00";
509}
510#endif
511
512#ifdef HAVE_HOTSWAP 498#ifdef HAVE_HOTSWAP
513bool sd_removable(IF_MV_NONVOID(int drive)) 499bool sd_removable(IF_MV_NONVOID(int drive))
514{ 500{
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)
1334 return last_disk_activity; 1334 return last_disk_activity;
1335} 1335}
1336 1336
1337#ifdef STORAGE_GET_INFO
1338void sd_get_info(IF_MV2(int drive,) struct storage_info *info)
1339{
1340#ifndef HAVE_MULTIVOLUME
1341 const int drive=0;
1342#endif
1343 info->sector_size=card_info[drive].blocksize;
1344 info->num_sectors=card_info[drive].numblocks;
1345 info->vendor="Rockbox";
1346 if(drive==0)
1347 {
1348 info->product="Internal Storage";
1349 }
1350 else
1351 {
1352 info->product="SD Card Slot";
1353 }
1354 info->revision="0.00";
1355}
1356#endif
1357
1358#ifdef HAVE_HOTSWAP 1337#ifdef HAVE_HOTSWAP
1359bool sd_removable(IF_MV_NONVOID(int drive)) 1338bool sd_removable(IF_MV_NONVOID(int drive))
1360{ 1339{
diff --git a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c
index 957db2af0e..c48ee0be73 100644
--- a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c
@@ -1743,21 +1743,3 @@ bool sd_present(IF_MV_NONVOID(int drive))
1743#endif 1743#endif
1744 return (sdinfo.block_num > 0 && card_detect_target()); 1744 return (sdinfo.block_num > 0 && card_detect_target());
1745} 1745}
1746
1747#ifdef STORAGE_GET_INFO
1748void sd_get_info(IF_MV2(int drive,) struct storage_info *info)
1749{
1750#ifdef HAVE_MULTIVOLUME
1751 (void)drive;
1752#endif
1753 /* firmware version */
1754 info->revision="0.00";
1755
1756 info->vendor="Rockbox";
1757 info->product="SD Storage";
1758
1759 /* blocks count */
1760 info->num_sectors = sdinfo.block_num;
1761 info->sector_size = sdinfo.block_len;
1762}
1763#endif