mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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:
parent
ccbd8f4f31
commit
293b499093
4 changed files with 23 additions and 53 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue