plat_gp2x.h 586 B

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