2823a4c8 |
1 | #ifndef GP2X_H |
2 | #define GP2X_H |
3 | |
638cc626 |
4 | #include "warm.h" |
5 | |
2823a4c8 |
6 | enum |
7 | { |
8 | GP2X_UP = 1 << 0, |
9 | GP2X_LEFT = 1 << 2, |
10 | GP2X_DOWN = 1 << 4, |
11 | GP2X_RIGHT = 1 << 6, |
12 | GP2X_START = 1 << 8, |
13 | GP2X_SELECT = 1 << 9, |
14 | GP2X_L = 1 << 10, |
15 | GP2X_R = 1 << 11, |
16 | GP2X_A = 1 << 12, |
17 | GP2X_B = 1 << 13, |
18 | GP2X_X = 1 << 14, |
19 | GP2X_Y = 1 << 15, |
4742480d |
20 | #ifdef WIZ_BUILD |
21 | GP2X_VOL_UP = 1 << 16, |
22 | GP2X_VOL_DOWN = 1 << 17, |
23 | GP2X_PUSH = 1 << 18, |
24 | #else |
2823a4c8 |
25 | GP2X_VOL_DOWN = 1 << 22, |
26 | GP2X_VOL_UP = 1 << 23, |
4742480d |
27 | GP2X_PUSH = 1 << 27, |
28 | #endif |
2823a4c8 |
29 | }; |
30 | |
31 | |
32 | extern u32 gpsp_gp2x_dev_audio; |
33 | extern u32 gpsp_gp2x_dev; |
2823a4c8 |
34 | |
35 | void gp2x_sound_volume(u32 volume_up); |
36 | void gp2x_quit(); |
37 | |
2823a4c8 |
38 | void set_FCLK(u32 MHZ); |
2823a4c8 |
39 | |
638cc626 |
40 | void upscale_aspect(u16 *dst, u16 *src); |
2823a4c8 |
41 | |
4cdfc0bc |
42 | /* wiz only */ |
43 | extern void *gpsp_gp2x_screen; |
44 | void fb_use_buffers(int count); |
45 | void pollux_video_flip(); |
42c81190 |
46 | void wiz_lcd_set_portrait(int y); |
47 | u32 wiz_load_gamepak(char *name); |
48 | |
49 | void do_rotated_blit(void *dst, void *linesx4, u32 y); |
50 | void upscale_aspect_row(void *dst, void *linesx3, u32 row); |
4cdfc0bc |
51 | |
2823a4c8 |
52 | #endif |