X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=dma.h;h=3d8324bb54aa9c5cfc4d54456a10859c998ef64f;hb=6e1db57b2ac9025c2443c665a0d9e78748637b26;hp=f3bb27515952455b9ba29640c44340419c044502;hpb=c227f0995e1722a1abccc28cadf0664266bd8043;p=qemu.git diff --git a/dma.h b/dma.h index f3bb27515..3d8324bb5 100644 --- a/dma.h +++ b/dma.h @@ -32,6 +32,14 @@ void qemu_sglist_add(QEMUSGList *qsg, target_phys_addr_t base, target_phys_addr_t len); void qemu_sglist_destroy(QEMUSGList *qsg); +typedef BlockDriverAIOCB *DMAIOFunc(BlockDriverState *bs, int64_t sector_num, + QEMUIOVector *iov, int nb_sectors, + BlockDriverCompletionFunc *cb, void *opaque); + +BlockDriverAIOCB *dma_bdrv_io(BlockDriverState *bs, + QEMUSGList *sg, uint64_t sector_num, + DMAIOFunc *io_func, BlockDriverCompletionFunc *cb, + void *opaque, int is_write); BlockDriverAIOCB *dma_bdrv_read(BlockDriverState *bs, QEMUSGList *sg, uint64_t sector, BlockDriverCompletionFunc *cb, void *opaque);