0d9bf4fc |
1 | #ifndef __GP2X_H__ |
2 | #define __GP2X_H__ |
3 | |
4 | extern int default_cpu_clock; |
5 | |
6 | /* video */ |
7 | void gp2x_video_changemode(int bpp); |
8 | void gp2x_memcpy_all_buffers(void *data, int offset, int len); |
9 | void gp2x_memset_all_buffers(int offset, int byte, int len); |
10 | void gp2x_make_fb_bufferable(int yes); |
11 | |
12 | /* input */ |
13 | int gp2x_touchpad_read(int *x, int *y); |
14 | |
f4750ee0 |
15 | /* misc */ |
16 | enum { |
17 | GP2X_DEV_GP2X = 1, |
18 | GP2X_DEV_WIZ, |
19 | GP2X_DEV_CAANOO, |
20 | }; |
21 | extern int gp2x_dev_id; |
22 | extern int gp2x_current_bpp; |
23 | |
24 | unsigned int plat_get_ticks_ms_good(void); |
25 | unsigned int plat_get_ticks_us_good(void); |
26 | |
27 | void gp2x_menu_init(void); |
28 | |
0d9bf4fc |
29 | #endif |