forked from len0rd/rockbox
sim fix for ATA stubs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5516 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
19934a1110
commit
c540e82ffb
1 changed files with 10 additions and 7 deletions
|
|
@ -29,6 +29,7 @@
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
#include "ata.h" /* for volume definitions */
|
||||||
|
|
||||||
extern char having_new_lcd;
|
extern char having_new_lcd;
|
||||||
|
|
||||||
|
|
@ -53,9 +54,10 @@ int fat_startsector(void)
|
||||||
return 63;
|
return 63;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ata_write_sectors(unsigned long start,
|
int ata_write_sectors(IF_MV2(int drive,)
|
||||||
unsigned char count,
|
unsigned long start,
|
||||||
void* buf)
|
int count,
|
||||||
|
const void* buf)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
@ -74,8 +76,9 @@ int ata_write_sectors(unsigned long start,
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ata_read_sectors(unsigned long start,
|
int ata_read_sectors(IF_MV2(int drive,)
|
||||||
unsigned char count,
|
unsigned long start,
|
||||||
|
int count,
|
||||||
void* buf)
|
void* buf)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
@ -95,9 +98,9 @@ int ata_read_sectors(unsigned long start,
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ata_delayed_write(unsigned long sector, void* buf)
|
void ata_delayed_write(unsigned long sector, const void* buf)
|
||||||
{
|
{
|
||||||
ata_write_sectors(sector,1,buf);
|
ata_write_sectors(IF_MV2(0,) sector, 1, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ata_flush(void)
|
void ata_flush(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue