summaryrefslogtreecommitdiffstats
path: root/pcilib/export.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-04-27 01:54:44 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-04-27 01:54:44 +0200
commit8d3ad26d8331c43659d0d4e77e8a50fbc3cfc1e4 (patch)
tree30c74c76115279cdc15437a07fabd8347ac1fdfd /pcilib/export.c
parentdcd8ad63316eac672492bc18112bbbb52811c3fc (diff)
downloadpcitool-8d3ad26d8331c43659d0d4e77e8a50fbc3cfc1e4.tar.gz
pcitool-8d3ad26d8331c43659d0d4e77e8a50fbc3cfc1e4.tar.bz2
pcitool-8d3ad26d8331c43659d0d4e77e8a50fbc3cfc1e4.tar.xz
pcitool-8d3ad26d8331c43659d0d4e77e8a50fbc3cfc1e4.zip
Further adjustments to get ready for independent event plugins
Diffstat (limited to 'pcilib/export.c')
-rw-r--r--pcilib/export.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/pcilib/export.c b/pcilib/export.c
new file mode 100644
index 0000000..2027870
--- /dev/null
+++ b/pcilib/export.c
@@ -0,0 +1,38 @@
+#define _PCILIB_EXPORT_C
+
+#include <stdio.h>
+
+#include "error.h"
+#include "export.h"
+
+#include "protocols/default.h"
+
+
+void (*pcilib_error)(const char *msg, ...) = pcilib_print_error;
+void (*pcilib_warning)(const char *msg, ...) = pcilib_print_error;
+
+
+const pcilib_register_protocol_description_t pcilib_protocols[] = {
+ { PCILIB_REGISTER_PROTOCOL_DEFAULT, &pcilib_default_protocol_api, NULL, NULL, "default", "" },
+ { 0 }
+};
+
+#include "dma/nwl.h"
+#include "dma/ipe.h"
+
+/*
+const pcilib_dma_description_t pcilib_ipedma =
+ { &ipe_dma_api, ipe_dma_banks, ipe_dma_registers, ipe_dma_engines, NULL, NULL, "ipedma", "DMA engine developed by M. Caselle" };
+
+const pcilib_dma_description_t pcilib_nwldma =
+ { &nwl_dma_api, nwl_dma_banks, nwl_dma_registers, NULL, NULL, NULL, "nwldma", "North West Logic DMA Engine" };
+*/
+
+const pcilib_dma_description_t pcilib_dma[] = {
+ { &ipe_dma_api, ipe_dma_banks, ipe_dma_registers, ipe_dma_engines, NULL, NULL, "ipedma", "DMA engine developed by M. Caselle" },
+ { &nwl_dma_api, nwl_dma_banks, nwl_dma_registers, NULL, NULL, NULL, "nwldma", "North West Logic DMA Engine" },
+ { &nwl_dma_api, nwl_dma_banks, nwl_dma_registers, NULL, "ipecamera", NULL, "nwldma-ipe", "North West Logic DMA Engine" },
+ { 0 }
+};
+
+