diff options
Diffstat (limited to 'uisimulator/common/stubs.c')
-rw-r--r-- | uisimulator/common/stubs.c | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c index 7b630eb25b..169ce06067 100644 --- a/uisimulator/common/stubs.c +++ b/uisimulator/common/stubs.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include "ata.h" /* for volume definitions */ | 33 | #include "ata.h" /* for volume definitions */ |
34 | 34 | ||
35 | extern char having_new_lcd; | 35 | extern char having_new_lcd; |
36 | static bool ata_spinning = false; | 36 | static bool storage_spinning = false; |
37 | 37 | ||
38 | #if CONFIG_CODEC != SWCODEC | 38 | #if CONFIG_CODEC != SWCODEC |
39 | void audio_set_buffer_margin(int seconds) | 39 | void audio_set_buffer_margin(int seconds) |
@@ -53,7 +53,12 @@ bool fat_ismounted(int volume) | |||
53 | return true; | 53 | return true; |
54 | } | 54 | } |
55 | 55 | ||
56 | int ata_write_sectors(IF_MV2(int drive,) | 56 | int storage_init(void) |
57 | { | ||
58 | return 1; | ||
59 | } | ||
60 | |||
61 | int storage_write_sectors(IF_MV2(int drive,) | ||
57 | unsigned long start, | 62 | unsigned long start, |
58 | int count, | 63 | int count, |
59 | const void* buf) | 64 | const void* buf) |
@@ -75,7 +80,7 @@ int ata_write_sectors(IF_MV2(int drive,) | |||
75 | return 1; | 80 | return 1; |
76 | } | 81 | } |
77 | 82 | ||
78 | int ata_read_sectors(IF_MV2(int drive,) | 83 | int storage_read_sectors(IF_MV2(int drive,) |
79 | unsigned long start, | 84 | unsigned long start, |
80 | int count, | 85 | int count, |
81 | void* buf) | 86 | void* buf) |
@@ -98,34 +103,25 @@ int ata_read_sectors(IF_MV2(int drive,) | |||
98 | return 1; | 103 | return 1; |
99 | } | 104 | } |
100 | 105 | ||
101 | void ata_delayed_write(unsigned long sector, const void* buf) | 106 | void storage_spin(void) |
102 | { | ||
103 | ata_write_sectors(IF_MV2(0,) sector, 1, buf); | ||
104 | } | ||
105 | |||
106 | void ata_flush(void) | ||
107 | { | ||
108 | } | ||
109 | |||
110 | void ata_spin(void) | ||
111 | { | 107 | { |
112 | ata_spinning = true; | 108 | storage_spinning = true; |
113 | } | 109 | } |
114 | 110 | ||
115 | void ata_sleep(void) | 111 | void storage_sleep(void) |
116 | { | 112 | { |
117 | DEBUGF("ata_sleep()\n"); | 113 | DEBUGF("storage_sleep()\n"); |
118 | } | 114 | } |
119 | 115 | ||
120 | bool ata_disk_is_active(void) | 116 | bool storage_disk_is_active(void) |
121 | { | 117 | { |
122 | return ata_spinning; | 118 | return storage_spinning; |
123 | } | 119 | } |
124 | 120 | ||
125 | void ata_spindown(int s) | 121 | void storage_spindown(int s) |
126 | { | 122 | { |
127 | (void)s; | 123 | (void)s; |
128 | ata_spinning = false; | 124 | storage_spinning = false; |
129 | } | 125 | } |
130 | 126 | ||
131 | void rtc_init(void) | 127 | void rtc_init(void) |