mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-15 22:21:57 -06:00
dma-helpers: change interface to byte-based
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
20018e12cf
commit
cbe0ed6247
7 changed files with 27 additions and 21 deletions
|
@ -199,14 +199,14 @@ typedef BlockAIOCB *DMAIOFunc(BlockBackend *blk, int64_t offset,
|
|||
BlockCompletionFunc *cb, void *opaque);
|
||||
|
||||
BlockAIOCB *dma_blk_io(BlockBackend *blk,
|
||||
QEMUSGList *sg, uint64_t sector_num,
|
||||
QEMUSGList *sg, uint64_t offset,
|
||||
DMAIOFunc *io_func, BlockCompletionFunc *cb,
|
||||
void *opaque, DMADirection dir);
|
||||
BlockAIOCB *dma_blk_read(BlockBackend *blk,
|
||||
QEMUSGList *sg, uint64_t sector,
|
||||
QEMUSGList *sg, uint64_t offset,
|
||||
BlockCompletionFunc *cb, void *opaque);
|
||||
BlockAIOCB *dma_blk_write(BlockBackend *blk,
|
||||
QEMUSGList *sg, uint64_t sector,
|
||||
QEMUSGList *sg, uint64_t offset,
|
||||
BlockCompletionFunc *cb, void *opaque);
|
||||
uint64_t dma_buf_read(uint8_t *ptr, int32_t len, QEMUSGList *sg);
|
||||
uint64_t dma_buf_write(uint8_t *ptr, int32_t len, QEMUSGList *sg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue