35#ifdef EVE_SUPPORT_MEDIAFIFO
51 eve_assert_ex(
false,
"EVE_MediaFifo_set is not available on the current graphics platform\n");
136 eve_assert(diff >= 0 && diff < phost->MediaFifoSize);
155 eve_assert_ex(
false,
"EVE_MediaFifo_wrMem is not available on the current graphics platform\n");
171 if (size <= phost->MediaFifoSize - 4)
213 uint32_t transfer = min(halfSize, remaining);
233 remaining -= transfer;
263 min(halfSize, remaining));
278 remaining -= transfer;
320 EVE_Hal_displayMessage(phost,
"Coprocessor fault in processing media FIFO ",
sizeof(
"Coprocessor fault in processing media FIFO "));
384 eve_assert_ex(
false,
"EVE_MediaFifo_waitSpace is not available on the current graphics platform\n");
390 eve_printf_debug(
"EVE Media FIFO has not been set, cannot wait for space\n");
421 }
while (space < size);
EVE_HAL_EXPORT uint32_t EVE_Cmd_waitSpace(EVE_HalContext *phost, uint32_t size)
EVE_HAL_EXPORT void EVE_Cmd_startFunc(EVE_HalContext *phost)
Begin writing a function, keeps the transfer open.
EVE_HAL_EXPORT uint16_t EVE_Cmd_rp(EVE_HalContext *phost)
Read from Coprocessor.
EVE_HAL_EXPORT void EVE_Cmd_endFunc(EVE_HalContext *phost)
End writing a function, closes the transfer.
EVE_HAL_EXPORT uint16_t EVE_Cmd_wp(EVE_HalContext *phost)
Write to Coprocessor.
EVE_HAL_EXPORT bool EVE_Cmd_wr32(EVE_HalContext *phost, uint32_t value)
Write 4 bytes to Coprocessor's command fifo.
#define EVE_CMD_FIFO_SIZE
#define REG_MEDIAFIFO_READ
#define EVE_CMD_FAULT(rp)
#define REG_MEDIAFIFO_WRITE
EVE_HAL_EXPORT uint32_t EVE_Hal_rd32(EVE_HalContext *phost, uint32_t addr)
Read 4 bytes from Coprocessor's memory.
EVE_HAL_EXPORT void EVE_Hal_rdMem(EVE_HalContext *phost, uint8_t *result, uint32_t addr, uint32_t size)
Read a block data from Coprocessor's memory.
void EVE_Hal_displayMessage(EVE_HalContext *phost, const char *str, uint16_t size)
Display a fullscreen debug message using TEXT8X8. Uses the back of RAM_G.
EVE_HAL_EXPORT void EVE_Hal_idle(EVE_HalContext *phost)
Idle handler for Eve_Hal framework.
EVE_HAL_EXPORT void EVE_Hal_wr32(EVE_HalContext *phost, uint32_t addr, uint32_t v)
Write 4 bytes to Coprocessor's memory.
EVE_HAL_EXPORT void EVE_Hal_wrMem(EVE_HalContext *phost, uint32_t addr, const uint8_t *buffer, uint32_t size)
Write a buffer to Coprocessor's memory.
static bool EVE_Hal_supportMediaFifo(EVE_HalContext *phost)
static ft_uint32_t ft_uint8_t * buffer
void EVE_Cmd_waitFlush(EVE_HalContext *host)
uint32_t MediaFifoAddress