summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-10-16 01:25:17 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-10-16 01:25:17 +0000
commita9b2fb5ee3114fe835f6515b6aeae7454f66d821 (patch)
treefc4e96d0c1f215565918406c8827b16b806c1345 /apps/plugin.c
parenta3fbbc9fa7e12fd3fce122bbd235dc362050e024 (diff)
downloadrockbox-a9b2fb5ee3114fe835f6515b6aeae7454f66d821.tar.gz
rockbox-a9b2fb5ee3114fe835f6515b6aeae7454f66d821.zip
Finally full multicore support for PortalPlayer 502x targets with an eye towards the possibility of other types. All SVN targets the low-lag code to speed up blocking operations. Most files are modified here simple due to a name change to actually support a real event object and a param change to create_thread. Add some use of new features but just sit on things for a bit and leave full integration for later. Work will continue on to address size on sensitive targets and simplify things if possible. Any PP target having problems with SWP can easily be changed to sw corelocks with one #define change in config.h though only PP5020 has shown an issue and seems to work without any difficulties.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15134 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 685dab960f..c06ae257e4 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -141,6 +141,7 @@ static const struct plugin_api rockbox_api = {
141 /* remote lcd */ 141 /* remote lcd */
142 lcd_remote_set_contrast, 142 lcd_remote_set_contrast,
143 lcd_remote_clear_display, 143 lcd_remote_clear_display,
144 lcd_remote_setmargins,
144 lcd_remote_puts, 145 lcd_remote_puts,
145 lcd_remote_puts_scroll, 146 lcd_remote_puts_scroll,
146 lcd_remote_stop_scroll, 147 lcd_remote_stop_scroll,
@@ -183,6 +184,9 @@ static const struct plugin_api rockbox_api = {
183#if defined(HAVE_LCD_COLOR) 184#if defined(HAVE_LCD_COLOR)
184 lcd_yuv_blit, 185 lcd_yuv_blit,
185#endif 186#endif
187#if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200)
188 lcd_yuv_set_options,
189#endif
186 /* list */ 190 /* list */
187 gui_synclist_init, 191 gui_synclist_init,
188 gui_synclist_set_nb_items, 192 gui_synclist_set_nb_items,
@@ -202,6 +206,7 @@ static const struct plugin_api rockbox_api = {
202 button_get_w_tmo, 206 button_get_w_tmo,
203 button_status, 207 button_status,
204 button_clear_queue, 208 button_clear_queue,
209 button_queue_count,
205#ifdef HAS_BUTTON_HOLD 210#ifdef HAS_BUTTON_HOLD
206 button_hold, 211 button_hold,
207#endif 212#endif
@@ -463,6 +468,13 @@ static const struct plugin_api rockbox_api = {
463#endif 468#endif
464 &global_settings, 469 &global_settings,
465 &global_status, 470 &global_status,
471 talk_disable_menus,
472 talk_enable_menus,
473#if CONFIG_CODEC == SWCODEC
474 codec_load_file,
475 get_codec_filename,
476 get_metadata,
477#endif
466 mp3info, 478 mp3info,
467 count_mp3_frames, 479 count_mp3_frames,
468 create_xing_header, 480 create_xing_header,
@@ -492,6 +504,11 @@ static const struct plugin_api rockbox_api = {
492 detect_flashed_ramimage, 504 detect_flashed_ramimage,
493 detect_flashed_romimage, 505 detect_flashed_romimage,
494#endif 506#endif
507 led,
508#ifdef CACHE_FUNCTIONS_AS_CALL
509 flush_icache,
510 invalidate_icache,
511#endif
495 /* new stuff at the end, sort into place next time 512 /* new stuff at the end, sort into place next time
496 the API gets incompatible */ 513 the API gets incompatible */
497 514
@@ -499,27 +516,6 @@ static const struct plugin_api rockbox_api = {
499 spinlock_init, 516 spinlock_init,
500 spinlock_lock, 517 spinlock_lock,
501 spinlock_unlock, 518 spinlock_unlock,
502
503 codec_load_file,
504 get_codec_filename,
505 get_metadata,
506#endif
507 led,
508
509#if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200)
510 lcd_yuv_set_options,
511#endif
512
513#ifdef CACHE_FUNCTIONS_AS_CALL
514 flush_icache,
515 invalidate_icache,
516#endif
517 talk_disable_menus,
518 talk_enable_menus,
519
520 button_queue_count,
521#ifdef HAVE_REMOTE_LCD
522 lcd_remote_setmargins,
523#endif 519#endif
524}; 520};
525 521
@@ -666,7 +662,11 @@ int plugin_load(const char* plugin, void* parameter)
666#endif 662#endif
667 lcd_remote_setmargins(rxm, rym); 663 lcd_remote_setmargins(rxm, rym);
668 lcd_remote_clear_display(); 664 lcd_remote_clear_display();
665
666
669 lcd_remote_update(); 667 lcd_remote_update();
668
669
670#endif 670#endif
671 671
672 if (pfn_tsr_exit == NULL) 672 if (pfn_tsr_exit == NULL)