diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-09-28 10:20:02 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-09-28 10:20:02 +0000 |
commit | 7914e90738ff37e6378b37632eb1f05bab7354d5 (patch) | |
tree | 6b3d6a6bac4c7a3f82fa212d5f3ed324d81dc8bb /apps/codecs.h | |
parent | edbf5d81f5a635a0db68039554b086f942b3e005 (diff) |
Commit a subset of the dual core changes that have to do with cache handling, stacks, firmware startup and thread startup. Tested on e200, H10-20GB, iPod Color and 5.5G. Thread function return implemented for all targets. Some changes to plugins to follow shortly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14879 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs.h')
-rw-r--r-- | apps/codecs.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/apps/codecs.h b/apps/codecs.h index 652ae7451a..50bc36baa2 100644 --- a/apps/codecs.h +++ b/apps/codecs.h @@ -80,7 +80,7 @@ #define CODEC_ENC_MAGIC 0x52454E43 /* RENC */ /* increase this every time the api struct changes */ -#define CODEC_API_VERSION 18 +#define CODEC_API_VERSION 19 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -230,6 +230,10 @@ struct codec_api { /* new stuff at the end, sort into place next time the API gets incompatible */ +#ifdef CACHE_FUNCTIONS_AS_CALL + void (*flush_icache)(void); + void (*invalidate_icache)(void); +#endif }; /* codec header */ @@ -286,4 +290,22 @@ int codec_load_file(const char* codec, struct codec_api *api); /* defined by the codec */ enum codec_status codec_start(struct codec_api* rockbox); +#ifndef CACHE_FUNCTION_WRAPPERS + +#ifdef CACHE_FUNCTIONS_AS_CALL +#define CACHE_FUNCTION_WRAPPERS(api) \ + void flush_icache(void) \ + { \ + (api)->flush_icache(); \ + } \ + void invalidate_icache(void) \ + { \ + (api)->invalidate_icache(); \ + } +#else +#define CACHE_FUNCTION_WRAPPERS(api) +#endif /* CACHE_FUNCTIONS_AS_CALL */ + +#endif /* CACHE_FUNCTION_WRAPPERS */ + #endif |