restore some hw regs on exit to startup values
[libpicofe.git] / common / plat.h
CommitLineData
24b24674 1#ifdef __cplusplus
2extern "C" {
3#endif
4
049a6b3e 5/* stuff to be implemented by platform code */
d572cbad 6extern char cpu_clk_name[];
049a6b3e 7/* TODO rename all these */
8extern const char * const keyNames[]; // TODO rm
24b24674 9void emu_prepareDefaultConfig(void);
10void emu_platformDebugCat(char *str);
11void emu_forcedFrame(int opts);
12void emu_startSound(void);
13void emu_endSound(void);
14void emu_waitSound(void);
049a6b3e 15void emu_ResetGame(void); // TODO mv rm?
046c4540 16void emu_Init(void);
17void emu_Deinit(void);
18void emu_Loop(void);
049a6b3e 19
049a6b3e 20int emu_getMainDir(char *dst, int len);
21void menu_romload_prepare(const char *rom_name);
22void menu_romload_end(void);
24b24674 23
fa8d1331 24void plat_early_init(void);
d572cbad 25void plat_init(void);
26void plat_finish(void);
27
388947f3 28/* to be used while emulation is starting or running */
29void plat_status_msg(const char *format, ...);
30
31/* used before things blocking for a while (these funcs redraw on return) */
32void plat_status_msg_busy_first(const char *msg);
33void plat_status_msg_busy_next(const char *msg);
34
24b24674 35/* menu: enter (switch bpp, etc), begin/end drawing */
36void plat_video_menu_enter(int is_rom_loaded);
37void plat_video_menu_begin(void);
38void plat_video_menu_end(void);
39
388947f3 40void plat_video_toggle_renderer(void);
fa8d1331 41void plat_validate_config(void);
388947f3 42void plat_update_volume(int has_changed, int is_up);
fa8d1331 43
049a6b3e 44int plat_is_dir(const char *path);
4ab30ad4 45int plat_wait_event(int *fds_hnds, int count, int timeout_ms);
46void plat_sleep_ms(int ms);
049a6b3e 47
4ab30ad4 48/* ms counter, to be used for time diff */
49unsigned int plat_get_ticks_ms(void);
50
51const char *plat_get_credits(void);
049a6b3e 52
24b24674 53#ifdef __cplusplus
54} // extern "C"
55#endif
56