X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpu_neon%2Fgpu.h;h=f5cc63282fa1c9fae0c9219ec6c1dc0420dee231;hp=5ededcb3640b2a002e8217576e364abcc08896a8;hb=956f312925948e46da9c3596efadc4babc666a4d;hpb=24de2dd4dbdd50e44c91c40ebbc7d59ee1c0ac9b diff --git a/plugins/gpu_neon/gpu.h b/plugins/gpu_neon/gpu.h index 5ededcb3..f5cc6328 100644 --- a/plugins/gpu_neon/gpu.h +++ b/plugins/gpu_neon/gpu.h @@ -64,8 +64,8 @@ struct psx_gpu { uint32_t zero; struct { uint32_t fb_dirty:1; - uint32_t frame_count; - uint32_t *hcnt; + uint32_t *frame_count; + uint32_t *hcnt; /* hsync count */ struct { uint32_t addr; uint32_t words; @@ -76,9 +76,10 @@ struct psx_gpu { struct { int32_t set:3; /* -1 auto, 0 off, 1 fixed */ uint32_t active:1; + uint32_t allow:1; uint32_t frame_ready:1; - uint32_t skipped_blits:5; const int *advice; + uint32_t last_flip_frame; } frameskip; }; @@ -96,6 +97,25 @@ void renderer_flush_queues(void); int vout_init(void); int vout_finish(void); +/* listing these here for correct linkage if rasterizer uses c++ */ +struct GPUFreeze; +struct rearmed_cbs; + +long GPUinit(void); +long GPUshutdown(void); +void GPUwriteDataMem(uint32_t *mem, int count); +long GPUdmaChain(uint32_t *rambase, uint32_t addr); +void GPUwriteData(uint32_t data); +void GPUreadDataMem(uint32_t *mem, int count); +uint32_t GPUreadData(void); +uint32_t GPUreadStatus(void); +void GPUwriteStatus(uint32_t data); +long GPUfreeze(uint32_t type, struct GPUFreeze *freeze); +void GPUupdateLace(void); +long GPUopen(void **dpy); +long GPUclose(void); +void GPUrearmedCallbacks(const struct rearmed_cbs *cbs_); + #ifdef __cplusplus } #endif