65#ifndef EVE_COMPAT_COCMD__H
66#define EVE_COMPAT_COCMD__H
67#define Cmd_Getimage EVE_CoCmd_getImage
68#define Gpu_CoCmd_Getimage EVE_CoCmd_getImage
70#define Gpu_CoCmd_ClearCache EVE_CoCmd_clearCache
71#define Gpu_CoCmd_FlashAttach EVE_CoCmd_flashAttach
72#define Gpu_CoCmd_FlashDetach EVE_CoCmd_flashDetach
73#define Gpu_CoCmd_FlashErase EVE_CoCmd_flashErase
74#define Gpu_CoCmd_FlashFast EVE_CoCmd_flashFast
75#define Gpu_CoCmd_FlashRead EVE_CoCmd_flashRead
76#define Gpu_CoCmd_FlashUpdate EVE_CoCmd_flashUpdate
77#define Gpu_CoCmd_Fontcache EVE_CoCmd_fontCache
78#define Gpu_CoCmd_Fontcachequery EVE_CoCmd_fontCacheQuery
79#define Gpu_CoCmd_VideoStartF EVE_CoCmd_videoStartF
80#define Gpu_CoCmd_FlashSource EVE_CoCmd_flashSource
81#define Gpu_CoCmd_Nop EVE_CoCmd_nop
82#define Gpu_CoCmd_GradientA EVE_CoCmd_gradientA
83#define Gpu_CoCmd_RotateAround EVE_CoCmd_rotateAround
84#define Gpu_CoCmd_Inflate2 EVE_CoCmd_inflate2
85#define Gpu_CoCmd_ResetFonts EVE_CoCmd_resetFonts
86#define Gpu_CoCmd_Wait EVE_CoCmd_wait
87#define Gpu_CoCmd_RunAnim EVE_CoCmd_runAnim
88#define Gpu_CoCmd_AnimFrameRam EVE_CoCmd_animFrameRam
89#define Gpu_CoCmd_AnimStartRam EVE_CoCmd_animStartRam
90#define Gpu_CoCmd_Calllist EVE_CoCmd_callList
91#define Gpu_CoCmd_Newlist EVE_CoCmd_newList
92#define Gpu_CoCmd_Endlist EVE_CoCmd_endList
94#define Ft_Gpu_CoCmd_AnimDraw EVE_CoCmd_animDraw
95#define Ft_Gpu_CoCmd_AnimFrame EVE_CoCmd_animFrame
96#define Ft_Gpu_CoCmd_AnimFrameRam EVE_CoCmd_animFrameRam
97#define Ft_Gpu_CoCmd_AnimStart EVE_CoCmd_animStart
98#define Ft_Gpu_CoCmd_AnimStop EVE_CoCmd_animStop
99#define Ft_Gpu_CoCmd_AnimStartRam EVE_CoCmd_animStartRam
100#define Ft_Gpu_CoCmd_AnimXY EVE_CoCmd_animXY
101#define Ft_Gpu_CoCmd_Apilevel EVE_CoCmd_apiLevel
102#define Ft_Gpu_CoCmd_Append EVE_CoCmd_append
103#define Ft_Gpu_CoCmd_AppendF EVE_CoCmd_appendF
104#define Ft_Gpu_CoCmd_BgColor EVE_CoCmd_bgColor
105#define Ft_Gpu_CoCmd_Bitmap_Transform EVE_CoCmd_bitmapTransform
106#define Ft_Gpu_CoCmd_BitmapTransform EVE_CoCmd_bitmapTransform
107#define Ft_Gpu_CoCmd_Button EVE_CoCmd_button
108#define Ft_Gpu_CoCmd_Calibrate EVE_CoCmd_calibrate
109#define Ft_Gpu_CoCmd_Calibratesub EVE_CoCmd_calibrateSub
110#define Ft_Gpu_CoCmd_Calllist EVE_CoCmd_callList
111#define Ft_Gpu_CoCmd_ClearCache EVE_CoCmd_clearCache
112#define Ft_Gpu_CoCmd_Clock EVE_CoCmd_clock
113#define Ft_Gpu_CoCmd_ColdStart EVE_CoCmd_coldStart
115#define Ft_Gpu_CoCmd_CSketch EVE_CoCmd_cSketch
116#define Ft_Gpu_CoCmd_Dial EVE_CoCmd_dial
117#define Ft_Gpu_CoCmd_DlStart EVE_CoCmd_dlStart
118#define Ft_Gpu_CoCmd_Endlist EVE_CoCmd_endList
119#define Ft_Gpu_CoCmd_FgColor EVE_CoCmd_fgColor
120#define Ft_Gpu_CoCmd_FillWidth EVE_CoCmd_fillWidth
121#define Ft_Gpu_CoCmd_FlashAttach EVE_CoCmd_flashAttach
122#define Ft_Gpu_CoCmd_FlashDetach EVE_CoCmd_flashDetach
123#define Ft_Gpu_CoCmd_FlashErase EVE_CoCmd_flashErase
124#define Ft_Gpu_CoCmd_FlashFast EVE_CoCmd_flashFast
131#define Ft_Gpu_CoCmd_FlashSource EVE_CoCmd_flashSource
132#define Ft_Gpu_CoCmd_FlashSpiDesel EVE_CoCmd_flashSpiDesel
133#define Ft_Gpu_CoCmd_FlashSpiRx EVE_CoCmd_flashSpiRx
134#define Ft_Gpu_CoCmd_FlashSpiTx EVE_CoCmd_flashSpiTx
135#define Ft_Gpu_CoCmd_FlashUpdate EVE_CoCmd_flashUpdate
136#define Ft_Gpu_CoCmd_FlashWrite EVE_CoCmd_flashWrite
137#define Ft_Gpu_CoCmd_Fontcache EVE_CoCmd_fontCache
138#define Ft_Gpu_CoCmd_Fontcachequery EVE_CoCmd_fontCacheQuery
139#define Ft_Gpu_CoCmd_Gauge EVE_CoCmd_gauge
140#define Ft_Gpu_CoCmd_GetMatrix EVE_CoCmd_getMatrix
141#define Ft_Gpu_CoCmd_Getpoint EVE_CoCmd_getpoint
142#define Ft_Gpu_CoCmd_GetPtr EVE_CoCmd_getPtr
143#define Ft_Gpu_CoCmd_GradColor EVE_CoCmd_gradColor
144#define Ft_Gpu_CoCmd_Gradient EVE_CoCmd_gradient
145#define Ft_Gpu_CoCmd_GradientA EVE_CoCmd_gradientA
146#define Ft_Gpu_CoCmd_Hsf EVE_CoCmd_hsf
147#define Ft_Gpu_CoCmd_Inflate EVE_CoCmd_inflate
148#define Ft_Gpu_CoCmd_Inflate2 EVE_CoCmd_inflate2
149#define Ft_Gpu_CoCmd_Interrupt EVE_CoCmd_interrupt
150#define Ft_Gpu_CoCmd_Keys EVE_CoCmd_keys
151#define Ft_Gpu_CoCmd_LoadIdentity EVE_CoCmd_loadIdentity
152#define Ft_Gpu_CoCmd_LoadImage EVE_CoCmd_loadImage
153#define Ft_Gpu_CoCmd_Logo EVE_CoCmd_logo
154#define Ft_Gpu_CoCmd_MediaFifo EVE_CoCmd_mediaFifo
155#define Ft_Gpu_CoCmd_MemCpy EVE_CoCmd_memCpy
156#define Ft_Gpu_CoCmd_MemCrc EVE_CoCmd_memCrc
157#define Ft_Gpu_CoCmd_MemSet EVE_CoCmd_memSet
158#define Ft_Gpu_CoCmd_MemWrite EVE_CoCmd_memWrite
159#define Ft_Gpu_CoCmd_MemZero EVE_CoCmd_memZero
160#define Ft_Gpu_CoCmd_Newlist EVE_CoCmd_newList
161#define Ft_Gpu_CoCmd_Nop EVE_CoCmd_nop
162#define Ft_Gpu_CoCmd_Number EVE_CoCmd_number
163#define Ft_Gpu_CoCmd_PlayVideo EVE_CoCmd_playVideo
164#define Ft_Gpu_CoCmd_Progress EVE_CoCmd_progress
165#define Ft_Gpu_CoCmd_RegRead EVE_CoCmd_regRead
166#define Ft_Gpu_CoCmd_ResetFonts EVE_CoCmd_resetFonts
167#define Ft_Gpu_CoCmd_RomFont EVE_CoCmd_romFont
168#define Ft_Gpu_CoCmd_Rotate EVE_CoCmd_rotate
169#define Ft_Gpu_CoCmd_RotateAround EVE_CoCmd_rotateAround
170#define Ft_Gpu_CoCmd_RunAnim EVE_CoCmd_runAnim
171#define Ft_Gpu_CoCmd_Scale EVE_CoCmd_scale
172#define Ft_Gpu_CoCmd_ScreenSaver EVE_CoCmd_screenSaver
173#define Ft_Gpu_CoCmd_Scrollbar EVE_CoCmd_scrollbar
174#define Ft_Gpu_CoCmd_SetBase EVE_CoCmd_setBase
175#define Ft_Gpu_CoCmd_SetBitmap EVE_CoCmd_setBitmap
176#define Ft_Gpu_CoCmd_SetFont EVE_CoCmd_setFont
177#define Ft_Gpu_CoCmd_SetFont2 EVE_CoCmd_setFont2
178#define Ft_Gpu_CoCmd_SetMatrix EVE_CoCmd_setMatrix
179#define Ft_Gpu_CoCmd_SetRotate EVE_CoCmd_setRotate
180#define Ft_Gpu_CoCmd_SetScratch EVE_CoCmd_setScratch
181#define Ft_Gpu_CoCmd_Sketch EVE_CoCmd_sketch
182#define Ft_Gpu_CoCmd_Slider EVE_CoCmd_slider
183#define Ft_Gpu_CoCmd_Snapshot EVE_CoCmd_snapshot
184#define Ft_Gpu_CoCmd_Snapshot2 EVE_CoCmd_snapshot2
185#define Ft_Gpu_CoCmd_Spinner EVE_CoCmd_spinner
186#define Ft_Gpu_CoCmd_Stop EVE_CoCmd_stop
187#define Ft_Gpu_CoCmd_Swap EVE_CoCmd_swap
188#define Ft_Gpu_CoCmd_Sync EVE_CoCmd_sync
189#define Ft_Gpu_CoCmd_Pclkfreq EVE_CoCmd_pclkFreq
190#define Ft_Gpu_CoCmd_Testcard EVE_CoCmd_testCard
191#define Ft_Gpu_CoCmd_Text EVE_CoCmd_text
192#define Ft_Gpu_CoCmd_Toggle EVE_CoCmd_toggle
193#define Ft_Gpu_CoCmd_Touch_Transform EVE_CoCmd_touchTransform
194#define Ft_Gpu_CoCmd_Track EVE_CoCmd_track
195#define Ft_Gpu_CoCmd_Translate EVE_CoCmd_translate
196#define Ft_Gpu_CoCmd_VideoFrame EVE_CoCmd_videoFrame
197#define Ft_Gpu_CoCmd_VideoStart EVE_CoCmd_videoStart
198#define Ft_Gpu_CoCmd_VideoStartF EVE_CoCmd_videoStartF
199#define Ft_Gpu_CoCmd_Wait EVE_CoCmd_wait
200#define Ft_Gpu_CoCmd_Text_S EVE_CoCmd_text_s
201#define Ft_Gpu_CoCmd_Text_Ex EVE_CoCmd_text_ex
202#define Ft_Gpu_CoCmd_LoadImage_Flash EVE_CoCmd_loadImage_flash
203#define Ft_Gpu_CoCmd_Inflate_Flash EVE_CoCmd_inflate_flash
204#define Ft_Gpu_CoCmd_LoadImage_ProgMem EVE_CoCmd_loadImage_progMem
205#define Ft_Gpu_CoCmd_Inflate_ProgMem EVE_CoCmd_inflate_progMem
207#define Gpu_CoCmd_SetBitmap Ft_Gpu_CoCmd_SetBitmap
208#define Gpu_CoCmd_SetScratch Ft_Gpu_CoCmd_SetScratch
209#define Gpu_CoCmd_RomFont Ft_Gpu_CoCmd_RomFont
210#define Gpu_CoCmd_Text Ft_Gpu_CoCmd_Text
211#define Gpu_CoCmd_Number Ft_Gpu_CoCmd_Number
212#define Gpu_CoCmd_LoadIdentity Ft_Gpu_CoCmd_LoadIdentity
213#define Gpu_CoCmd_Toggle Ft_Gpu_CoCmd_Toggle
214#define Gpu_CoCmd_Gauge Ft_Gpu_CoCmd_Gauge
215#define Gpu_CoCmd_FillWidth Ft_Gpu_CoCmd_FillWidth
216#define Gpu_CoCmd_RegRead Ft_Gpu_CoCmd_RegRead
217#define Gpu_CoCmd_VideoStart Ft_Gpu_CoCmd_VideoStart
218#define Gpu_CoCmd_GetProps EVE_CoCmd_getProps
219#define Gpu_CoCmd_Memcpy Ft_Gpu_CoCmd_MemCpy
220#define Gpu_CoCmd_Spinner Ft_Gpu_CoCmd_Spinner
221#define Gpu_CoCmd_BgColor Ft_Gpu_CoCmd_BgColor
222#define Gpu_CoCmd_Swap Ft_Gpu_CoCmd_Swap
223#define Gpu_CoCmd_Inflate Ft_Gpu_CoCmd_Inflate
224#define Gpu_CoCmd_Translate Ft_Gpu_CoCmd_Translate
225#define Gpu_CoCmd_Stop Ft_Gpu_CoCmd_Stop
226#define Gpu_CoCmd_SetBase Ft_Gpu_CoCmd_SetBase
227#define Gpu_CoCmd_Slider Ft_Gpu_CoCmd_Slider
228#define Gpu_CoCmd_VideoFrame Ft_Gpu_CoCmd_VideoFrame
229#define Gpu_CoCmd_Interrupt Ft_Gpu_CoCmd_Interrupt
230#define Gpu_CoCmd_FgColor Ft_Gpu_CoCmd_FgColor
231#define Gpu_CoCmd_Rotate Ft_Gpu_CoCmd_Rotate
232#define Gpu_CoCmd_Button Ft_Gpu_CoCmd_Button
233#define Gpu_CoCmd_MemWrite Ft_Gpu_CoCmd_MemWrite
234#define Gpu_CoCmd_Scrollbar Ft_Gpu_CoCmd_Scrollbar
235#define Gpu_CoCmd_GetMatrix Ft_Gpu_CoCmd_GetMatrix
236#define Gpu_CoCmd_Sketch Ft_Gpu_CoCmd_Sketch
237#define Gpu_CoCmd_CSketch Ft_Gpu_CoCmd_CSketch
238#define Gpu_CoCmd_PlayVideo Ft_Gpu_CoCmd_PlayVideo
239#define Gpu_CoCmd_MemSet Ft_Gpu_CoCmd_MemSet
240#define Gpu_CoCmd_Calibrate(phost, r) Ft_Gpu_CoCmd_Calibrate((phost))
241#define Gpu_CoCmd_SetFont Ft_Gpu_CoCmd_SetFont
242#define Gpu_CoCmd_Bitmap_Transform Ft_Gpu_CoCmd_Bitmap_Transform
243#define Gpu_CoCmd_BitmapTransform Ft_Gpu_CoCmd_Bitmap_Transform
244#define Gpu_CoCmd_GradColor Ft_Gpu_CoCmd_GradColor
245#define Gpu_CoCmd_Append Ft_Gpu_CoCmd_Append
246#define Gpu_CoCmd_MemZero Ft_Gpu_CoCmd_MemZero
247#define Gpu_CoCmd_Scale Ft_Gpu_CoCmd_Scale
248#define Gpu_CoCmd_Clock Ft_Gpu_CoCmd_Clock
249#define Gpu_CoCmd_Gradient Ft_Gpu_CoCmd_Gradient
250#define Gpu_CoCmd_SetMatrix Ft_Gpu_CoCmd_SetMatrix
251#define Gpu_CoCmd_Track Ft_Gpu_CoCmd_Track
252#define Gpu_CoCmd_GetPtr Ft_Gpu_CoCmd_GetPtr
253#define Gpu_CoCmd_Progress Ft_Gpu_CoCmd_Progress
254#define Gpu_CoCmd_ColdStart Ft_Gpu_CoCmd_ColdStart
255#define Gpu_CoCmd_MediaFifo Ft_Gpu_CoCmd_MediaFifo
256#define Gpu_CoCmd_Keys Ft_Gpu_CoCmd_Keys
257#define Gpu_CoCmd_Dial Ft_Gpu_CoCmd_Dial
258#define Gpu_CoCmd_Snapshot2 Ft_Gpu_CoCmd_Snapshot2
259#define Gpu_CoCmd_LoadImage Ft_Gpu_CoCmd_LoadImage
260#define Gpu_CoCmd_SetFont2 Ft_Gpu_CoCmd_SetFont2
261#define Gpu_CoCmd_SetRotate Ft_Gpu_CoCmd_SetRotate
262#define Gpu_CoCmd_Dlstart Ft_Gpu_CoCmd_DlStart
263#define Gpu_CoCmd_Snapshot Ft_Gpu_CoCmd_Snapshot
264#define Gpu_CoCmd_ScreenSaver Ft_Gpu_CoCmd_ScreenSaver
265#define Gpu_CoCmd_MemCrc Ft_Gpu_CoCmd_MemCrc
266#define Gpu_CoCmd_Logo Ft_Gpu_CoCmd_Logo
267#define Gpu_CoCmd_Sync Ft_Gpu_CoCmd_Sync
268#define Gpu_CoCmd_Pclkfreq Ft_Gpu_CoCmd_Pclkfreq
270#define Gpu_CoCmd_AnimStart Ft_Gpu_CoCmd_AnimStart
271#define Gpu_CoCmd_AnimStop Ft_Gpu_CoCmd_AnimStop
272#define Gpu_CoCmd_AnimXY Ft_Gpu_CoCmd_AnimXY
273#define Gpu_CoCmd_AnimDraw Ft_Gpu_CoCmd_AnimDraw
274#define Gpu_CoCmd_AnimFrame Ft_Gpu_CoCmd_AnimFrame
276#define Gpu_CoCmd_FlashWrite EVE_CoCmd_flashWrite
277#define Gpu_CoCmd_FlashSpiTx EVE_CoCmd_flashSpiTx
278#define Gpu_CoCmd_FlashSpiRx EVE_CoCmd_flashSpiRx
279#define Gpu_CoCmd_FlashSpiDesel EVE_CoCmd_flashSpiDesel
281#define Gpu_CoCmd_AppendF EVE_CoCmd_appendF
static void EVE_CoCmd_flashRead(EVE_HalContext *phost, uint32_t dest, uint32_t src, uint32_t num)
Read from Flash to RAM_G. Call EVE_Cmd_waitFlush to wait for completion.
static bool Ft_Gpu_CoCmd_FlashRead(EVE_HalContext *phost, uint32_t dest, uint32_t src, uint32_t num)
void EVE_Cmd_waitFlush(EVE_HalContext *host)