[openib-general] [PATCH][MTHCA] add in SINAI defines into mtcha code WAS: [openib-commits] r2101 - gen2/trunk/src/linux-kernel/patches
Tom Duffy
tduffy at sun.com
Fri Apr 1 10:24:13 PST 2005
On Thu, 2005-03-31 at 12:43 -0800, roland at openib.org wrote:
> Author: roland
> Date: 2005-03-31 12:43:29 -0800 (Thu, 31 Mar 2005)
> New Revision: 2101
>
> Added:
> gen2/trunk/src/linux-kernel/patches/linux-2.6.11-sinai.diff
> Log:
> Add patch adding Sinai device IDs for 2.6.11 kernel.
Roland, please consider applying this for svn ease of use:
Signed-off-by: Tom Duffy <tduffy at sun.com>
Index: drivers/infiniband/hw/mthca/mthca_dev.h
===================================================================
--- drivers/infiniband/hw/mthca/mthca_dev.h (revision 2102)
+++ drivers/infiniband/hw/mthca/mthca_dev.h (working copy)
@@ -49,6 +49,14 @@
#define DRV_VERSION "0.06-pre"
#define DRV_RELDATE "November 8, 2004"
+/* XXX remove once SINAI defines make it into kernel.org */
+#ifndef PCI_DEVICE_ID_MELLANOX_SINAI_OLD
+#define PCI_DEVICE_ID_MELLANOX_SINAI_OLD 0x5e8c
+#endif
+#ifndef PCI_DEVICE_ID_MELLANOX_SINAI
+#define PCI_DEVICE_ID_MELLANOX_SINAI 0x6274
+#endif
+
enum {
MTHCA_FLAG_DDR_HIDDEN = 1 << 1,
MTHCA_FLAG_SRQ = 1 << 2,
More information about the general
mailing list