summaryrefslogtreecommitdiffstats
path: root/pci.h
diff options
context:
space:
mode:
authorroot <root@iss-tomyspiel-l>2011-06-17 23:40:33 +0200
committerroot <root@iss-tomyspiel-l>2011-06-17 23:40:33 +0200
commit4b5a2c9625acd583573005ef66d17d919469009d (patch)
treef88335fcc8339aae2e68c82a1dca501b154c0a95 /pci.h
parent7155e6c0dceb0b860bec6c0e428450137cad39a0 (diff)
downloadipecamera-4b5a2c9625acd583573005ef66d17d919469009d.tar.gz
ipecamera-4b5a2c9625acd583573005ef66d17d919469009d.tar.bz2
ipecamera-4b5a2c9625acd583573005ef66d17d919469009d.tar.xz
ipecamera-4b5a2c9625acd583573005ef66d17d919469009d.zip
Enumerate DMA engines
Diffstat (limited to 'pci.h')
-rw-r--r--pci.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/pci.h b/pci.h
index 0a7a55e..0785c5b 100644
--- a/pci.h
+++ b/pci.h
@@ -6,23 +6,22 @@
#include "driver/pciDriver.h"
-typedef void pcilib_event_context_t;
-typedef void pcilib_dma_context_t;
-
#include "pcilib.h"
+int pcilib_set_dma_engine_description(pcilib_t *ctx, pcilib_dma_t engine, pcilib_dma_engine_description_t *desc);
const pcilib_board_info_t *pcilib_get_board_info(pcilib_t *ctx);
const pcilib_dma_info_t *pcilib_get_dma_info(pcilib_t *ctx);
#ifdef _PCILIB_PCI_C
# include "ipecamera/model.h"
+# include "dma/nwl.h"
# include "default.h"
pcilib_model_description_t pcilib_model[3] = {
{ 4, PCILIB_HOST_ENDIAN, NULL, NULL, NULL, NULL, NULL },
{ 4, PCILIB_HOST_ENDIAN, NULL, NULL, NULL, NULL, NULL },
- { 4, PCILIB_BIG_ENDIAN, ipecamera_registers, ipecamera_register_banks, ipecamera_register_ranges, ipecamera_events, NULL, &ipecamera_image_api }
+ { 4, PCILIB_LITTLE_ENDIAN, ipecamera_registers, ipecamera_register_banks, ipecamera_register_ranges, ipecamera_events, &nwl_dma_api, &ipecamera_image_api }
};
pcilib_protocol_description_t pcilib_protocol[3] = {