From b9a1af8a3b03a5e8575d87c3593a5931cd0e7a8c Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 6 May 2015 05:46:01 +0200 Subject: Add fields reporting consumed buffers and space to the dma_engine_status and provide better ipedma benchmarking --- pcilib/dma.h | 1 + 1 file changed, 1 insertion(+) (limited to 'pcilib') 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 { -- cgit v1.2.3