| /* AXI DMA connection. Used until qdev provides a generic way. */ |
| typedef void (*DMAPushFn)(void *opaque, |
| unsigned char *buf, size_t len, uint32_t *app); |
| struct XilinxDMAConnection { |
| static inline void xlx_dma_connect_client(struct XilinxDMAConnection *dmach, |
| static inline void xlx_dma_connect_dma(struct XilinxDMAConnection *dmach, |
| void xlx_dma_push_to_dma(struct XilinxDMAConnection *dmach, |
| uint8_t *buf, size_t len, uint32_t *app) |
| dmach->to_dma(dmach->dma, buf, len, app); |
| void xlx_dma_push_to_client(struct XilinxDMAConnection *dmach, |
| uint8_t *buf, size_t len, uint32_t *app) |
| dmach->to_client(dmach->client, buf, len, app); |