diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-05-23 14:54:05 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-05-25 19:04:11 +0200 |
commit | cbe0ed6247a0589e4f72b25984b8afcfa9c26b1c (patch) | |
tree | a88e070cee3cc9ca866178ecf41bcedc6591a579 /include/sysemu | |
parent | 20018e12cfde4847a0e90f0f9942804c20c14894 (diff) | |
download | qemu-cbe0ed6247a0589e4f72b25984b8afcfa9c26b1c.tar.gz qemu-cbe0ed6247a0589e4f72b25984b8afcfa9c26b1c.tar.bz2 qemu-cbe0ed6247a0589e4f72b25984b8afcfa9c26b1c.zip |
dma-helpers: change interface to byte-based
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/dma.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sysemu/dma.h b/include/sysemu/dma.h index d6e96a4298..f0e0c30549 100644 --- a/include/sysemu/dma.h +++ b/include/sysemu/dma.h @@ -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); |