summaryrefslogtreecommitdiff
path: root/uisimulator/common/stubs.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/common/stubs.c')
-rw-r--r--uisimulator/common/stubs.c36
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
35extern char having_new_lcd; 35extern char having_new_lcd;
36static bool ata_spinning = false; 36static bool storage_spinning = false;
37 37
38#if CONFIG_CODEC != SWCODEC 38#if CONFIG_CODEC != SWCODEC
39void audio_set_buffer_margin(int seconds) 39void 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
56int ata_write_sectors(IF_MV2(int drive,) 56int storage_init(void)
57{
58 return 1;
59}
60
61int 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
78int ata_read_sectors(IF_MV2(int drive,) 83int 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
101void ata_delayed_write(unsigned long sector, const void* buf) 106void storage_spin(void)
102{
103 ata_write_sectors(IF_MV2(0,) sector, 1, buf);
104}
105
106void ata_flush(void)
107{
108}
109
110void ata_spin(void)
111{ 107{
112 ata_spinning = true; 108 storage_spinning = true;
113} 109}
114 110
115void ata_sleep(void) 111void storage_sleep(void)
116{ 112{
117 DEBUGF("ata_sleep()\n"); 113 DEBUGF("storage_sleep()\n");
118} 114}
119 115
120bool ata_disk_is_active(void) 116bool storage_disk_is_active(void)
121{ 117{
122 return ata_spinning; 118 return storage_spinning;
123} 119}
124 120
125void ata_spindown(int s) 121void storage_spindown(int s)
126{ 122{
127 (void)s; 123 (void)s;
128 ata_spinning = false; 124 storage_spinning = false;
129} 125}
130 126
131void rtc_init(void) 127void rtc_init(void)