summaryrefslogtreecommitdiffstats
path: root/dma.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-14 01:44:10 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-14 01:44:10 +0200
commitb492b1aac3d12683ccbc973b08b023ba0466cbec (patch)
tree09f6d3d0cc3725b62a5c9210220e14316b737622 /dma.h
parent9f17f71885344d93b16fdc17458aa28ba350a480 (diff)
downloadipecamera-b492b1aac3d12683ccbc973b08b023ba0466cbec.tar.gz
ipecamera-b492b1aac3d12683ccbc973b08b023ba0466cbec.tar.bz2
ipecamera-b492b1aac3d12683ccbc973b08b023ba0466cbec.tar.xz
ipecamera-b492b1aac3d12683ccbc973b08b023ba0466cbec.zip
Support modifications of DMA engine and allow DMA customizations by Event engine
Diffstat (limited to 'dma.h')
-rw-r--r--dma.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/dma.h b/dma.h
index 1685403..0260872 100644
--- a/dma.h
+++ b/dma.h
@@ -2,9 +2,13 @@
#define _PCILIB_DMA_H
#define PCILIB_DMA_BUFFER_INVALID ((size_t)-1)
+#define PCILIB_DMA_MODIFICATION_DEFAULT 0 /**< first 0x100 are reserved */
+
+typedef uint32_t pcilib_dma_modification_t;
+
struct pcilib_dma_api_description_s {
- pcilib_dma_context_t *(*init)(pcilib_t *ctx);
+ pcilib_dma_context_t *(*init)(pcilib_t *ctx, pcilib_dma_modification_t type, void *arg);
void (*free)(pcilib_dma_context_t *ctx);
int (*enable_irq)(pcilib_dma_context_t *ctx, pcilib_irq_type_t irq_type, pcilib_dma_flags_t flags);