1 /* AXI DMA connection. Used until qdev provides a generic way. */
2 typedef void (*DMAPushFn
)(void *opaque
,
3 unsigned char *buf
, size_t len
, uint32_t *app
);
5 struct XilinxDMAConnection
{
13 static inline void xlx_dma_connect_client(struct XilinxDMAConnection
*dmach
,
20 static inline void xlx_dma_connect_dma(struct XilinxDMAConnection
*dmach
,
28 void xlx_dma_push_to_dma(struct XilinxDMAConnection
*dmach
,
29 uint8_t *buf
, size_t len
, uint32_t *app
)
31 dmach
->to_dma(dmach
->dma
, buf
, len
, app
);
34 void xlx_dma_push_to_client(struct XilinxDMAConnection
*dmach
,
35 uint8_t *buf
, size_t len
, uint32_t *app
)
37 dmach
->to_client(dmach
->client
, buf
, len
, app
);