summaryrefslogtreecommitdiffstats
path: root/pcilib.h
diff options
context:
space:
mode:
authorroot <root@iss-tomyspiel-l>2011-06-18 06:37:00 +0200
committerroot <root@iss-tomyspiel-l>2011-06-18 06:37:00 +0200
commit70937611e34577151a6607640050e8b164a54e70 (patch)
tree23cc1c9573dafd8584e0f0697f79fde3dad49258 /pcilib.h
parent4b5a2c9625acd583573005ef66d17d919469009d (diff)
downloadipecamera-70937611e34577151a6607640050e8b164a54e70.tar.gz
ipecamera-70937611e34577151a6607640050e8b164a54e70.tar.bz2
ipecamera-70937611e34577151a6607640050e8b164a54e70.tar.xz
ipecamera-70937611e34577151a6607640050e8b164a54e70.zip
DMA engine initialization and basic intrastructure for DMA read/write
Diffstat (limited to 'pcilib.h')
-rw-r--r--pcilib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pcilib.h b/pcilib.h
index f0e0746..88f3bfd 100644
--- a/pcilib.h
+++ b/pcilib.h
@@ -66,6 +66,7 @@ typedef enum {
#define PCILIB_BAR_INVALID ((pcilib_bar_t)-1)
#define PCILIB_BAR0 0
#define PCILIB_BAR1 1
+#define PCILIB_DMA_INVALID ((pcilib_dma_t)-1)
#define PCILIB_REGISTER_INVALID ((pcilib_register_t)-1)
#define PCILIB_ADDRESS_INVALID ((uintptr_t)-1)
#define PCILIB_REGISTER_BANK_INVALID ((pcilib_register_bank_t)-1)
@@ -163,7 +164,7 @@ typedef struct {
pcilib_dma_context_t *(*init)(pcilib_t *ctx);
void (*free)(pcilib_dma_context_t *ctx);
-// int (*read)(pcilib_dma_context_t *ctx, pcilib_event_t event_mask, pcilib_callback_t callback, void *user);
+ int (*read)(pcilib_dma_context_t *ctx, pcilib_dma_t dma, size_t size, void *buf);
// int (*write)(pcilib_dma_context_t *ctx);
} pcilib_dma_api_description_t;