mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Implement iPod Nano 2G storage active indicator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23325 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
16a956c4f3
commit
49d4c428dc
2 changed files with 9 additions and 10 deletions
|
|
@ -23,7 +23,6 @@
|
|||
#include "system.h"
|
||||
#include <string.h>
|
||||
#include "thread.h"
|
||||
#include "led.h"
|
||||
#include "disk.h"
|
||||
#include "storage.h"
|
||||
#include "panic.h"
|
||||
|
|
@ -41,11 +40,6 @@ static long nand_stack[20];
|
|||
|
||||
/* API Functions */
|
||||
|
||||
void nand_led(bool onoff)
|
||||
{
|
||||
led(onoff);
|
||||
}
|
||||
|
||||
int nand_read_sectors(IF_MD2(int drive,) unsigned long start, int incount,
|
||||
void* inbuf)
|
||||
{
|
||||
|
|
@ -91,10 +85,10 @@ void nand_enable(bool on)
|
|||
void nand_get_info(IF_MD2(int drive,) struct storage_info *info)
|
||||
{
|
||||
uint32_t ppb = ftl_banks * (*ftl_nand_type).pagesperblock;
|
||||
(*info).sector_size = SECTOR_SIZE;
|
||||
(*info).num_sectors = (*ftl_nand_type).userblocks * ppb;
|
||||
(*info).vendor = "Apple";
|
||||
(*info).product = "iPod Nano 2G";
|
||||
(*info).sector_size = SECTOR_SIZE;
|
||||
(*info).num_sectors = (*ftl_nand_type).userblocks * ppb;
|
||||
(*info).vendor = "Apple";
|
||||
(*info).product = "iPod Nano 2G";
|
||||
(*info).revision = "1.0";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue