diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-10 13:48:53 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-10 13:48:53 +0000 |
commit | 8fc5b782000a4ce27af9b6594bfcdafd31d4b42a (patch) | |
tree | 8876264af60ae534a4716c180307af3b99218283 | |
parent | 183e1463bb31fc65f80f0dd3824e50cff87ee3f9 (diff) |
Added MAS read/write functions to the plugin API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4728 a1c6a512-1295-4272-9138-f99709370657
-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 = { mp3info, count_mp3_frames, create_xing_header, + +#ifndef SIMULATOR + mas_readmem, + mas_writemem, + mas_readreg, + mas_writereg, +#ifdef HAVE_MAS3587F + mas_codec_writereg, +#endif +#endif }; 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 { unsigned char *buf, int num_frames, unsigned long header_template, void (*progressfunc)(int), bool generate_toc); + +#ifndef SIMULATOR + int (*mas_readmem)(int bank, int addr, unsigned long* dest, int len); + int (*mas_writemem)(int bank, int addr, unsigned long* src, int len); + int (*mas_readreg)(int reg); + int (*mas_writereg)(int reg, unsigned int val); +#ifdef HAVE_MAS3587F + int (*mas_codec_writereg)(int reg, unsigned int val); +#endif +#endif }; /* defined by the plugin loader (plugin.c) */ |