From c540e82ffbe583d5fe221c9788ce5a9bc2c73de7 Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Tue, 28 Dec 2004 22:38:47 +0000 Subject: sim fix for ATA stubs git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5516 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/common/stubs.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'uisimulator') diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c index bf39b70ef9..caf9dbc3be 100644 --- a/uisimulator/common/stubs.c +++ b/uisimulator/common/stubs.c @@ -29,6 +29,7 @@ #include "string.h" #include "lcd.h" #include "settings.h" +#include "ata.h" /* for volume definitions */ extern char having_new_lcd; @@ -53,9 +54,10 @@ int fat_startsector(void) return 63; } -int ata_write_sectors(unsigned long start, - unsigned char count, - void* buf) +int ata_write_sectors(IF_MV2(int drive,) + unsigned long start, + int count, + const void* buf) { int i; @@ -74,8 +76,9 @@ int ata_write_sectors(unsigned long start, return 1; } -int ata_read_sectors(unsigned long start, - unsigned char count, +int ata_read_sectors(IF_MV2(int drive,) + unsigned long start, + int count, void* buf) { int i; @@ -95,9 +98,9 @@ int ata_read_sectors(unsigned long start, 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) -- cgit v1.2.3