Diff for /qemu/dma.h between versions 1.1.1.4 and 1.1.1.5

version 1.1.1.4, 2018/04/24 18:56:07 version 1.1.1.5, 2018/04/24 19:17:11
Line 15 Line 15
 #include "hw/hw.h"  #include "hw/hw.h"
 #include "block.h"  #include "block.h"
   
 typedef struct {  typedef struct ScatterGatherEntry ScatterGatherEntry;
     target_phys_addr_t base;  
     target_phys_addr_t len;  
 } ScatterGatherEntry;  
   
 typedef struct {  #if defined(TARGET_PHYS_ADDR_BITS)
   typedef target_phys_addr_t dma_addr_t;
   
   #define DMA_ADDR_FMT TARGET_FMT_plx
   
   typedef enum {
       DMA_DIRECTION_TO_DEVICE = 0,
       DMA_DIRECTION_FROM_DEVICE = 1,
   } DMADirection;
   
   struct ScatterGatherEntry {
       dma_addr_t base;
       dma_addr_t len;
   };
   
   struct QEMUSGList {
     ScatterGatherEntry *sg;      ScatterGatherEntry *sg;
     int nsg;      int nsg;
     int nalloc;      int nalloc;
     target_phys_addr_t size;      dma_addr_t size;
 } QEMUSGList;  };
   
 void qemu_sglist_init(QEMUSGList *qsg, int alloc_hint);  void qemu_sglist_init(QEMUSGList *qsg, int alloc_hint);
 void qemu_sglist_add(QEMUSGList *qsg, target_phys_addr_t base,  void qemu_sglist_add(QEMUSGList *qsg, dma_addr_t base, dma_addr_t len);
                      target_phys_addr_t len);  
 void qemu_sglist_destroy(QEMUSGList *qsg);  void qemu_sglist_destroy(QEMUSGList *qsg);
   #endif
   
 typedef BlockDriverAIOCB *DMAIOFunc(BlockDriverState *bs, int64_t sector_num,  typedef BlockDriverAIOCB *DMAIOFunc(BlockDriverState *bs, int64_t sector_num,
                                  QEMUIOVector *iov, int nb_sectors,                                   QEMUIOVector *iov, int nb_sectors,
Line 39  typedef BlockDriverAIOCB *DMAIOFunc(Bloc Line 51  typedef BlockDriverAIOCB *DMAIOFunc(Bloc
 BlockDriverAIOCB *dma_bdrv_io(BlockDriverState *bs,  BlockDriverAIOCB *dma_bdrv_io(BlockDriverState *bs,
                               QEMUSGList *sg, uint64_t sector_num,                                QEMUSGList *sg, uint64_t sector_num,
                               DMAIOFunc *io_func, BlockDriverCompletionFunc *cb,                                DMAIOFunc *io_func, BlockDriverCompletionFunc *cb,
                               void *opaque, int is_write);                                void *opaque, bool to_dev);
 BlockDriverAIOCB *dma_bdrv_read(BlockDriverState *bs,  BlockDriverAIOCB *dma_bdrv_read(BlockDriverState *bs,
                                 QEMUSGList *sg, uint64_t sector,                                  QEMUSGList *sg, uint64_t sector,
                                 BlockDriverCompletionFunc *cb, void *opaque);                                  BlockDriverCompletionFunc *cb, void *opaque);

Removed from v.1.1.1.4  
changed lines
  Added in v.1.1.1.5


unix.superglobalmegacorp.com