From a640c40c6bcf4bad0b78e0ea6ea04f2a5f3f877f Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Fri, 19 Dec 2014 00:14:21 +0100 Subject: Initial implementation of IPEDMA, dummy driver for KAPTURE, start of API changes --- pci.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pci.c') 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; } -- cgit v1.2.3