further prep for Wiz port. Cleanups, rm cpuctrl mmuhack; add warm
[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?
16
17void emu_noticeMsgUpdated(void);
18int emu_getMainDir(char *dst, int len);
19void menu_romload_prepare(const char *rom_name);
20void menu_romload_end(void);
24b24674 21
d572cbad 22void plat_init(void);
23void plat_finish(void);
24
24b24674 25/* menu: enter (switch bpp, etc), begin/end drawing */
26void plat_video_menu_enter(int is_rom_loaded);
27void plat_video_menu_begin(void);
28void plat_video_menu_end(void);
29
049a6b3e 30int plat_is_dir(const char *path);
4ab30ad4 31int plat_wait_event(int *fds_hnds, int count, int timeout_ms);
32void plat_sleep_ms(int ms);
049a6b3e 33
4ab30ad4 34/* ms counter, to be used for time diff */
35unsigned int plat_get_ticks_ms(void);
36
37const char *plat_get_credits(void);
049a6b3e 38
24b24674 39#ifdef __cplusplus
40} // extern "C"
41#endif
42