diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2016-03-02 19:37:30 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2016-03-02 19:37:30 +0100 |
commit | 1120e8745ccd3e512fe2016c9e5092fcd378490a (patch) | |
tree | 0e89ac6cd82c213a78d79d10d3fecff06f21127d /driver/config.h | |
parent | 01e857cca352e73243d00b62a0c248a35cea6b71 (diff) | |
download | pcitool-1120e8745ccd3e512fe2016c9e5092fcd378490a.tar.gz pcitool-1120e8745ccd3e512fe2016c9e5092fcd378490a.tar.bz2 pcitool-1120e8745ccd3e512fe2016c9e5092fcd378490a.tar.xz pcitool-1120e8745ccd3e512fe2016c9e5092fcd378490a.zip |
Restructure driver headers
Diffstat (limited to 'driver/config.h')
-rw-r--r-- | driver/config.h | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/driver/config.h b/driver/config.h index c217afd..abf8011 100644 --- a/driver/config.h +++ b/driver/config.h @@ -1,6 +1,5 @@ -/*******************************/ -/* Configuration of the driver */ -/*******************************/ +#ifndef _PCIDRIVER_CONFIG_H +#define _PCIDRIVER_CONFIG_H /* Debug messages */ //#define DEBUG @@ -8,16 +7,29 @@ /* Enable/disable IRQ handling */ #define ENABLE_IRQ -/* The name of the module */ -#define MODNAME "pciDriver" +/* Maximum number of interrupt sources */ +#define PCIDRIVER_INT_MAXSOURCES 16 + +/* Maximum number of devices*/ +#define MAXDEVICES 4 -/* Major number is allocated dynamically */ /* Minor number */ -#define MINORNR 0 +#define MINORNR 0 + +/* The name of the module */ +#define MODNAME "pciDriver" /* Node name of the char device */ -#define NODENAME "fpga" -#define NODENAMEFMT "fpga%d" +#define NODENAME "fpga" +#define NODENAMEFMT "fpga%d" -/* Maximum number of devices*/ -#define MAXDEVICES 4 +/* Identifies the PCI-E Xilinx ML605 */ +#define PCIE_XILINX_VENDOR_ID 0x10ee +#define PCIE_ML605_DEVICE_ID 0x6024 + +/* Identifies the PCI-E IPE Hardware */ +#define PCIE_IPECAMERA_DEVICE_ID 0x6081 +#define PCIE_KAPTURE_DEVICE_ID 0x6028 + + +#endif /* _PCIDRIVER_CONFIG_H */ |