summaryrefslogtreecommitdiffstats
path: root/pci.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2014-12-19 00:14:21 +0100
committerSuren A. Chilingaryan <csa@suren.me>2014-12-19 00:14:21 +0100
commita640c40c6bcf4bad0b78e0ea6ea04f2a5f3f877f (patch)
tree7a6b899c130510e3cca87c23b26a5a1ffc033f20 /pci.c
parent0e16eeef08ed9b27f0fbc7f02a562a81e10c4119 (diff)
downloadipecamera-a640c40c6bcf4bad0b78e0ea6ea04f2a5f3f877f.tar.gz
ipecamera-a640c40c6bcf4bad0b78e0ea6ea04f2a5f3f877f.tar.bz2
ipecamera-a640c40c6bcf4bad0b78e0ea6ea04f2a5f3f877f.tar.xz
ipecamera-a640c40c6bcf4bad0b78e0ea6ea04f2a5f3f877f.zip
Initial implementation of IPEDMA, dummy driver for KAPTURE, start of API changes
Diffstat (limited to 'pci.c')
-rw-r--r--pci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pci.c b/pci.c
index 62536ea..474e315 100644
--- a/pci.c
+++ b/pci.c
@@ -22,6 +22,7 @@
#include "error.h"
#include "ipecamera/model.h"
+#include "kapture/model.h"
pcilib_t *pcilib_open(const char *device, pcilib_model_t model) {
@@ -88,6 +89,8 @@ pcilib_model_t pcilib_get_model(pcilib_t *ctx) {
if ((board_info->vendor_id == PCIE_XILINX_VENDOR_ID)&&(board_info->device_id == PCIE_IPECAMERA_DEVICE_ID))
ctx->model = PCILIB_MODEL_IPECAMERA;
+ else if ((board_info->vendor_id == PCIE_XILINX_VENDOR_ID)&&(board_info->device_id == PCIE_KAPTURE_DEVICE_ID))
+ ctx->model = PCILIB_MODEL_KAPTURE;
else
ctx->model = PCILIB_MODEL_PCI;
}