diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.c | 10 | ||||
-rw-r--r-- | apps/plugin.h | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 8d8d25fc99..c950c665d0 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -220,6 +220,16 @@ static struct plugin_api rockbox_api = { | |||
220 | mp3info, | 220 | mp3info, |
221 | count_mp3_frames, | 221 | count_mp3_frames, |
222 | create_xing_header, | 222 | create_xing_header, |
223 | |||
224 | #ifndef SIMULATOR | ||
225 | mas_readmem, | ||
226 | mas_writemem, | ||
227 | mas_readreg, | ||
228 | mas_writereg, | ||
229 | #ifdef HAVE_MAS3587F | ||
230 | mas_codec_writereg, | ||
231 | #endif | ||
232 | #endif | ||
223 | }; | 233 | }; |
224 | 234 | ||
225 | int plugin_load(char* plugin, void* parameter) | 235 | int plugin_load(char* plugin, void* parameter) |
diff --git a/apps/plugin.h b/apps/plugin.h index c67f49ebda..e0a7b083b9 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -255,6 +255,16 @@ struct plugin_api { | |||
255 | unsigned char *buf, int num_frames, | 255 | unsigned char *buf, int num_frames, |
256 | unsigned long header_template, | 256 | unsigned long header_template, |
257 | void (*progressfunc)(int), bool generate_toc); | 257 | void (*progressfunc)(int), bool generate_toc); |
258 | |||
259 | #ifndef SIMULATOR | ||
260 | int (*mas_readmem)(int bank, int addr, unsigned long* dest, int len); | ||
261 | int (*mas_writemem)(int bank, int addr, unsigned long* src, int len); | ||
262 | int (*mas_readreg)(int reg); | ||
263 | int (*mas_writereg)(int reg, unsigned int val); | ||
264 | #ifdef HAVE_MAS3587F | ||
265 | int (*mas_codec_writereg)(int reg, unsigned int val); | ||
266 | #endif | ||
267 | #endif | ||
258 | }; | 268 | }; |
259 | 269 | ||
260 | /* defined by the plugin loader (plugin.c) */ | 270 | /* defined by the plugin loader (plugin.c) */ |