mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
etraxfs-dma: Model metadata and eop
- Send EOP flags to the out channels. - Send data descriptor metadata to the out channels. Signed-off-by: Lars Persson <larper@axis.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
9f6113c7e6
commit
73a511decc
3 changed files with 33 additions and 10 deletions
|
@ -1,3 +1,8 @@
|
|||
struct dma_context_metadata {
|
||||
/* data descriptor md */
|
||||
uint16_t metadata;
|
||||
};
|
||||
|
||||
struct etraxfs_dma_client
|
||||
{
|
||||
/* DMA controller. */
|
||||
|
@ -5,10 +10,12 @@ struct etraxfs_dma_client
|
|||
void *ctrl;
|
||||
|
||||
/* client. */
|
||||
struct
|
||||
{
|
||||
int (*push)(void *opaque, unsigned char *buf, int len);
|
||||
struct {
|
||||
int (*push)(void *opaque, unsigned char *buf,
|
||||
int len, bool eop);
|
||||
void (*pull)(void *opaque);
|
||||
void (*metadata_push)(void *opaque,
|
||||
const struct dma_context_metadata *md);
|
||||
void *opaque;
|
||||
} client;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue