X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgp2x%2Fsoc.h;h=b645e8b999458b9a0414515afb6ba89f42c6b77b;hb=7c34867ab6109c47ad099e903a57af6d2699074f;hp=7f84e97e0f3428949b8a379c8689c56fb2433ac5;hpb=0d9bf4fcda2bf375a1fabd4a42e244701b8a185f;p=picodrive.git diff --git a/platform/gp2x/soc.h b/platform/gp2x/soc.h index 7f84e97..b645e8b 100644 --- a/platform/gp2x/soc.h +++ b/platform/gp2x/soc.h @@ -12,19 +12,24 @@ void pollux_init(void); void pollux_finish(void); /* SoC specific functions */ -void gp2x_video_flip(void); -void gp2x_video_flip2(void); -void gp2x_video_changemode_ll(int bpp); -void gp2x_video_setpalette(int *pal, int len); -void gp2x_video_RGB_setscaling(int ln_offs, int W, int H); -void gp2x_video_wait_vsync(void); - -void gp2x_set_cpuclk(unsigned int mhz); - -void set_lcd_custom_rate(int is_pal); -void unset_lcd_custom_rate(void); -void set_lcd_gamma(int g100, int A_SNs_curve); - -void set_ram_timings(int tCAS, int tRC, int tRAS, int tWR, int tMRD, int tRFC, int tRP, int tRCD); -void unset_ram_timings(void); - +extern void (*gp2x_video_flip)(void); +extern void (*gp2x_video_flip2)(void); +/* negative bpp means rotated mode (for Wiz) */ +extern void (*gp2x_video_changemode_ll)(int bpp); +extern void (*gp2x_video_setpalette)(int *pal, int len); +extern void (*gp2x_video_RGB_setscaling)(int ln_offs, int W, int H); +extern void (*gp2x_video_wait_vsync)(void); + +extern void (*gp2x_set_cpuclk)(unsigned int mhz); + +extern void (*set_lcd_custom_rate)(int is_pal); +extern void (*unset_lcd_custom_rate)(void); +extern void (*set_lcd_gamma)(int g100, int A_SNs_curve); + +extern void (*set_ram_timings)(void); +extern void (*unset_ram_timings)(void); +extern int (*gp2x_read_battery)(void); + +/* gettimeofday is not suitable for Wiz, at least fw 1.1 or lower */ +extern unsigned int (*gp2x_get_ticks_ms)(void); +extern unsigned int (*gp2x_get_ticks_us)(void);