forked from len0rd/rockbox
Added MAS read/write functions to the plugin API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4728 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
183e1463bb
commit
8fc5b78200
2 changed files with 20 additions and 0 deletions
|
@ -220,6 +220,16 @@ static struct plugin_api rockbox_api = {
|
||||||
mp3info,
|
mp3info,
|
||||||
count_mp3_frames,
|
count_mp3_frames,
|
||||||
create_xing_header,
|
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)
|
int plugin_load(char* plugin, void* parameter)
|
||||||
|
|
|
@ -255,6 +255,16 @@ struct plugin_api {
|
||||||
unsigned char *buf, int num_frames,
|
unsigned char *buf, int num_frames,
|
||||||
unsigned long header_template,
|
unsigned long header_template,
|
||||||
void (*progressfunc)(int), bool generate_toc);
|
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) */
|
/* defined by the plugin loader (plugin.c) */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue