summaryrefslogtreecommitdiffstats
path: root/dma.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-10-26 07:12:31 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-10-26 07:12:31 +0200
commit32c2f2c589c1a3ccf5dd9117538aafc6f3e0194e (patch)
tree7cf6cf29b564505655db004d5df11fa28c687278 /dma.h
parent39125f647c27a19abf85b25c753fc97832708d38 (diff)
downloadpcitool-32c2f2c589c1a3ccf5dd9117538aafc6f3e0194e.tar.gz
pcitool-32c2f2c589c1a3ccf5dd9117538aafc6f3e0194e.tar.bz2
pcitool-32c2f2c589c1a3ccf5dd9117538aafc6f3e0194e.tar.xz
pcitool-32c2f2c589c1a3ccf5dd9117538aafc6f3e0194e.zip
Improvements of DMA engine
Diffstat (limited to 'dma.h')
-rw-r--r--dma.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/dma.h b/dma.h
index 8da1c96..375763f 100644
--- a/dma.h
+++ b/dma.h
@@ -6,7 +6,6 @@
typedef uint32_t pcilib_dma_modification_t;
-
typedef struct {
int started;
size_t ring_size, buffer_size;
@@ -25,7 +24,7 @@ struct pcilib_dma_api_description_s {
pcilib_dma_context_t *(*init)(pcilib_t *ctx, pcilib_dma_modification_t type, void *arg);
void (*free)(pcilib_dma_context_t *ctx);
- int (*status)(pcilib_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_engine_status_t *status, size_t n_buffers, pcilib_dma_buffer_status_t *buffers);
+ int (*status)(pcilib_dma_context_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_engine_status_t *status, size_t n_buffers, pcilib_dma_buffer_status_t *buffers);
int (*enable_irq)(pcilib_dma_context_t *ctx, pcilib_irq_type_t irq_type, pcilib_dma_flags_t flags);
int (*disable_irq)(pcilib_dma_context_t *ctx, pcilib_dma_flags_t flags);
@@ -40,6 +39,11 @@ struct pcilib_dma_api_description_s {
double (*benchmark)(pcilib_dma_context_t *ctx, pcilib_dma_engine_addr_t dma, uintptr_t addr, size_t size, size_t iterations, pcilib_dma_direction_t direction);
};
+struct pcilib_dma_context_s {
+ int ignore_eop;
+};
+
+
int pcilib_set_dma_engine_description(pcilib_t *ctx, pcilib_dma_engine_t engine, pcilib_dma_engine_description_t *desc);
int pcilib_get_dma_status(pcilib_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_engine_status_t *status, size_t n_buffers, pcilib_dma_buffer_status_t *buffers);