diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-05-06 05:46:01 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-05-06 05:46:01 +0200 |
commit | b9a1af8a3b03a5e8575d87c3593a5931cd0e7a8c (patch) | |
tree | a0e73734d597ab1ab4a1d8a6393923d7e8b0914b /pcilib | |
parent | 53582e958d727e06648743e505862f9df11bbb35 (diff) | |
download | pcitool-b9a1af8a3b03a5e8575d87c3593a5931cd0e7a8c.tar.gz pcitool-b9a1af8a3b03a5e8575d87c3593a5931cd0e7a8c.tar.bz2 pcitool-b9a1af8a3b03a5e8575d87c3593a5931cd0e7a8c.tar.xz pcitool-b9a1af8a3b03a5e8575d87c3593a5931cd0e7a8c.zip |
Add fields reporting consumed buffers and space to the dma_engine_status and provide better ipedma benchmarking
Diffstat (limited to 'pcilib')
-rw-r--r-- | pcilib/dma.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pcilib/dma.h b/pcilib/dma.h index 85eb943..36ead8d 100644 --- a/pcilib/dma.h +++ b/pcilib/dma.h @@ -19,6 +19,7 @@ typedef struct { int started; /**< Informs if the engine is currently started or not */ size_t ring_size, buffer_size; /**< The number of allocated DMA buffers and size of each buffer in bytes */ size_t ring_head, ring_tail; /**< The first and the last buffer containing the data */ + size_t written_buffers, written_bytes; /**< Number of pending buffers and total number of written bytes */ } pcilib_dma_engine_status_t; typedef enum { |