mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-01-22 01:30:35 -05:00
Add a dummy nand_get_info for ipodnano3g and ipodnano4g
All non-simulator and non-hostfs targets are required to implement storage_get_info() since 04dc052a
Change-Id: I87febd12e101797d9cbbffc0e2e46efc2dace9da
This commit is contained in:
parent
98a182a19f
commit
e3372f495e
2 changed files with 26 additions and 0 deletions
|
|
@ -20,6 +20,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include "mv.h"
|
||||
#include "storage.h"
|
||||
|
||||
int nand_init(void)
|
||||
{
|
||||
|
|
@ -61,3 +62,15 @@ int nand_event(long id, intptr_t data)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef STORAGE_GET_INFO
|
||||
void nand_get_info(IF_MD(int drive,) struct storage_info *info)
|
||||
{
|
||||
IF_MD((void)drive);
|
||||
info->sector_size = SECTOR_SIZE;
|
||||
info->num_sectors = 0;
|
||||
info->vendor = "";
|
||||
info->product = "";
|
||||
info->revision = "";
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include "mv.h"
|
||||
#include "storage.h"
|
||||
|
||||
int nand_init(void)
|
||||
{
|
||||
|
|
@ -61,3 +62,15 @@ int nand_event(long id, intptr_t data)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef STORAGE_GET_INFO
|
||||
void nand_get_info(IF_MD(int drive,) struct storage_info *info)
|
||||
{
|
||||
IF_MD((void)drive);
|
||||
info->sector_size = SECTOR_SIZE;
|
||||
info->num_sectors = 0;
|
||||
info->vendor = "";
|
||||
info->product = "";
|
||||
info->revision = "";
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue