summaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-02-13 03:08:00 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-02-13 03:08:00 +0100
commitde7eafc05f1a830af3f722671d02a31bfc1b1f9c (patch)
tree461fa16b0dfae72fa840042bd8b569979a780d41 /driver
parentb72e8567723c30f0e5a83675743e9380c48e5d55 (diff)
downloadipecamera-de7eafc05f1a830af3f722671d02a31bfc1b1f9c.tar.gz
ipecamera-de7eafc05f1a830af3f722671d02a31bfc1b1f9c.tar.bz2
ipecamera-de7eafc05f1a830af3f722671d02a31bfc1b1f9c.tar.xz
ipecamera-de7eafc05f1a830af3f722671d02a31bfc1b1f9c.zip
Support Device ID of IPE camera
Diffstat (limited to 'driver')
-rw-r--r--driver/base.c6
-rw-r--r--driver/base.h1
-rw-r--r--driver/common.h3
3 files changed, 10 insertions, 0 deletions
diff --git a/driver/base.c b/driver/base.c
index ae77966..c740856 100644
--- a/driver/base.c
+++ b/driver/base.c
@@ -345,6 +345,12 @@ static int __devinit pcidriver_probe(struct pci_dev *pdev, const struct pci_devi
/* It is a PCI-E Xilinx ML605 evaluation board */
mod_info("Found ML605 board at %s\n", dev_name(&pdev->dev));
}
+ else if ((id->vendor == PCIE_XILINX_VENDOR_ID) &&
+ (id->device == PCIE_IPECAMERA_DEVICE_ID))
+ {
+ /* It is a PCI-E IPECamera based on Xilinx ML605 evaluation board */
+ mod_info("Found IPE Camera at %s\n", dev_name(&pdev->dev));
+ }
else
{
/* It is something else */
diff --git a/driver/base.h b/driver/base.h
index c0dacd0..c8787c9 100644
--- a/driver/base.h
+++ b/driver/base.h
@@ -52,6 +52,7 @@ static const __devinitdata struct pci_device_id pcidriver_ids[] = {
{ PCI_DEVICE( PCIXPG4_VENDOR_ID , PCIXPG4_DEVICE_ID ) }, // PCI-X PROGRAPE 4
{ PCI_DEVICE( PCI64PG4_VENDOR_ID , PCI64PG4_DEVICE_ID ) }, // PCI-64 PROGRAPE 4
{ PCI_DEVICE( PCIE_XILINX_VENDOR_ID, PCIE_ML605_DEVICE_ID ) }, // PCI-E Xilinx ML605
+ { PCI_DEVICE( PCIE_XILINX_VENDOR_ID, PCIE_IPECAMERA_DEVICE_ID ) }, // PCI-E IPE Camera
{0,0,0,0},
};
diff --git a/driver/common.h b/driver/common.h
index f386b49..c3f86a3 100644
--- a/driver/common.h
+++ b/driver/common.h
@@ -87,6 +87,9 @@ typedef struct {
#define PCIE_XILINX_VENDOR_ID 0x10ee
#define PCIE_ML605_DEVICE_ID 0x04a0
+/* Identifies the PCI-E IPE Camera */
+#define PCIE_IPECAMERA_DEVICE_ID 0x6018
+
/*************************************************************************/
/* Some nice defines that make code more readable */
/* This is to print nice info in the log */