fixed a possible deadlock in DrZ80
[picodrive.git] / platform / gp2x / gp2x.h
CommitLineData
cc68a136 1\r
2#ifndef __GP2X_H__\r
3#define __GP2X_H__\r
4\r
5\r
6void gp2x_init(void);\r
7void gp2x_deinit(void);\r
8\r
9/* video */\r
10void gp2x_video_flip(void);\r
e11c5548 11void gp2x_video_flip2(void);\r
cc68a136 12void gp2x_video_changemode(int bpp);\r
e11c5548 13void gp2x_video_changemode2(int bpp);\r
cc68a136 14void gp2x_video_setpalette(int *pal, int len);\r
2433f409 15void gp2x_video_RGB_setscaling(int ln_offs, int W, int H);\r
cc68a136 16void gp2x_video_wait_vsync(void);\r
a12e0116 17void gp2x_video_flush_cache(void);\r
860c6322 18void gp2x_memcpy_buffers(int buffers, void *data, int offset, int len);\r
cc68a136 19void gp2x_memcpy_all_buffers(void *data, int offset, int len);\r
20void gp2x_memset_all_buffers(int offset, int byte, int len);\r
e11c5548 21void gp2x_pd_clone_buffer2(void);\r
cc68a136 22\r
23/* sound */\r
24void gp2x_start_sound(int rate, int bits, int stereo);\r
25void gp2x_sound_write(void *buff, int len);\r
26void gp2x_sound_volume(int l, int r);\r
27\r
28/* joy */\r
29unsigned long gp2x_joystick_read(int allow_usb_joy);\r
30\r
31/* 940 core */\r
32void Pause940(int yes);\r
b837b69b 33void Reset940(int yes, int bank);\r
cc68a136 34\r
35\r
36extern void *gp2x_screen;\r
37extern int memdev;\r
38\r
39\r
40enum { GP2X_UP=0x1, GP2X_LEFT=0x4, GP2X_DOWN=0x10, GP2X_RIGHT=0x40,\r
41 GP2X_START=1<<8, GP2X_SELECT=1<<9, GP2X_L=1<<10, GP2X_R=1<<11,\r
42 GP2X_A=1<<12, GP2X_B=1<<13, GP2X_X=1<<14, GP2X_Y=1<<15,\r
43 GP2X_VOL_UP=1<<23, GP2X_VOL_DOWN=1<<22, GP2X_PUSH=1<<27 };\r
44\r
45#endif\r