4 * Copyright (c) 2009 Red Hat
6 * This work is licensed under the terms of the GNU General Public License
7 * (GNU GPL), version 2 or later.
18 target_phys_addr_t base
;
19 target_phys_addr_t len
;
23 ScatterGatherEntry
*sg
;
26 target_phys_addr_t size
;
29 void qemu_sglist_init(QEMUSGList
*qsg
, int alloc_hint
);
30 void qemu_sglist_add(QEMUSGList
*qsg
, target_phys_addr_t base
,
31 target_phys_addr_t len
);
32 void qemu_sglist_destroy(QEMUSGList
*qsg
);
34 BlockDriverAIOCB
*dma_bdrv_read(BlockDriverState
*bs
,
35 QEMUSGList
*sg
, uint64_t sector
,
36 BlockDriverCompletionFunc
*cb
, void *opaque
);
37 BlockDriverAIOCB
*dma_bdrv_write(BlockDriverState
*bs
,
38 QEMUSGList
*sg
, uint64_t sector
,
39 BlockDriverCompletionFunc
*cb
, void *opaque
);