Move sd_get_info() into common sd code

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21610 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2009-07-01 23:39:57 +00:00
parent ccbd8f4f31
commit 293b499093
4 changed files with 23 additions and 53 deletions

View file

@ -1743,21 +1743,3 @@ bool sd_present(IF_MV_NONVOID(int drive))
#endif
return (sdinfo.block_num > 0 && card_detect_target());
}
#ifdef STORAGE_GET_INFO
void sd_get_info(IF_MV2(int drive,) struct storage_info *info)
{
#ifdef HAVE_MULTIVOLUME
(void)drive;
#endif
/* firmware version */
info->revision="0.00";
info->vendor="Rockbox";
info->product="SD Storage";
/* blocks count */
info->num_sectors = sdinfo.block_num;
info->sector_size = sdinfo.block_len;
}
#endif