diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-12-28 22:38:47 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-12-28 22:38:47 +0000 |
commit | c540e82ffbe583d5fe221c9788ce5a9bc2c73de7 (patch) | |
tree | 1e108f291fc2d9aab8235db361dd75144cbaa036 /uisimulator | |
parent | 19934a1110331cea23fde6583b5695245e16046b (diff) | |
download | rockbox-c540e82ffbe583d5fe221c9788ce5a9bc2c73de7.tar.gz rockbox-c540e82ffbe583d5fe221c9788ce5a9bc2c73de7.zip |
sim fix for ATA stubs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5516 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/common/stubs.c | 17 |
1 files changed, 10 insertions, 7 deletions
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 @@ | |||
29 | #include "string.h" | 29 | #include "string.h" |
30 | #include "lcd.h" | 30 | #include "lcd.h" |
31 | #include "settings.h" | 31 | #include "settings.h" |
32 | #include "ata.h" /* for volume definitions */ | ||
32 | 33 | ||
33 | extern char having_new_lcd; | 34 | extern char having_new_lcd; |
34 | 35 | ||
@@ -53,9 +54,10 @@ int fat_startsector(void) | |||
53 | return 63; | 54 | return 63; |
54 | } | 55 | } |
55 | 56 | ||
56 | int ata_write_sectors(unsigned long start, | 57 | int ata_write_sectors(IF_MV2(int drive,) |
57 | unsigned char count, | 58 | unsigned long start, |
58 | void* buf) | 59 | int count, |
60 | const void* buf) | ||
59 | { | 61 | { |
60 | int i; | 62 | int i; |
61 | 63 | ||
@@ -74,8 +76,9 @@ int ata_write_sectors(unsigned long start, | |||
74 | return 1; | 76 | return 1; |
75 | } | 77 | } |
76 | 78 | ||
77 | int ata_read_sectors(unsigned long start, | 79 | int ata_read_sectors(IF_MV2(int drive,) |
78 | unsigned char count, | 80 | unsigned long start, |
81 | int count, | ||
79 | void* buf) | 82 | void* buf) |
80 | { | 83 | { |
81 | int i; | 84 | int i; |
@@ -95,9 +98,9 @@ int ata_read_sectors(unsigned long start, | |||
95 | return 1; | 98 | return 1; |
96 | } | 99 | } |
97 | 100 | ||
98 | void ata_delayed_write(unsigned long sector, void* buf) | 101 | void ata_delayed_write(unsigned long sector, const void* buf) |
99 | { | 102 | { |
100 | ata_write_sectors(sector,1,buf); | 103 | ata_write_sectors(IF_MV2(0,) sector, 1, buf); |
101 | } | 104 | } |
102 | 105 | ||
103 | void ata_flush(void) | 106 | void ata_flush(void) |