aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mthca/mthca_dev.h
diff options
context:
space:
mode:
authorRoland Dreier <roland@topspin.com>2005-04-16 18:26:34 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:26:34 -0400
commit68a3c21203b73696769dfdceb68d2d7f5d3c20a0 (patch)
tree876aae59e6f49437b0388f9a95a708edc252bac4 /drivers/infiniband/hw/mthca/mthca_dev.h
parent08aeb14e5f6c28878266b01c87cc5ce31101afa8 (diff)
[PATCH] IB/mthca: add support for new MT25204 HCA
Decouple table of HCA features from exact HCA device type. Add a current FW version field so we can warn when someone is using old FW. Add support for new MT25204 HCA. Remove the warning about mem-free support, since it should be pretty solid at this point. Signed-off-by: Roland Dreier <roland@topspin.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_dev.h')
-rw-r--r--drivers/infiniband/hw/mthca/mthca_dev.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_dev.h b/drivers/infiniband/hw/mthca/mthca_dev.h
index d014b443dc3c..e3d79e267dc9 100644
--- a/drivers/infiniband/hw/mthca/mthca_dev.h
+++ b/drivers/infiniband/hw/mthca/mthca_dev.h
@@ -49,20 +49,15 @@
49#define DRV_VERSION "0.06-pre" 49#define DRV_VERSION "0.06-pre"
50#define DRV_RELDATE "November 8, 2004" 50#define DRV_RELDATE "November 8, 2004"
51 51
52/* Types of supported HCA */
53enum {
54 TAVOR, /* MT23108 */
55 ARBEL_COMPAT, /* MT25208 in Tavor compat mode */
56 ARBEL_NATIVE /* MT25208 with extended features */
57};
58
59enum { 52enum {
60 MTHCA_FLAG_DDR_HIDDEN = 1 << 1, 53 MTHCA_FLAG_DDR_HIDDEN = 1 << 1,
61 MTHCA_FLAG_SRQ = 1 << 2, 54 MTHCA_FLAG_SRQ = 1 << 2,
62 MTHCA_FLAG_MSI = 1 << 3, 55 MTHCA_FLAG_MSI = 1 << 3,
63 MTHCA_FLAG_MSI_X = 1 << 4, 56 MTHCA_FLAG_MSI_X = 1 << 4,
64 MTHCA_FLAG_NO_LAM = 1 << 5, 57 MTHCA_FLAG_NO_LAM = 1 << 5,
65 MTHCA_FLAG_FMR = 1 << 6 58 MTHCA_FLAG_FMR = 1 << 6,
59 MTHCA_FLAG_MEMFREE = 1 << 7,
60 MTHCA_FLAG_PCIE = 1 << 8
66}; 61};
67 62
68enum { 63enum {
@@ -473,7 +468,7 @@ static inline struct mthca_dev *to_mdev(struct ib_device *ibdev)
473 468
474static inline int mthca_is_memfree(struct mthca_dev *dev) 469static inline int mthca_is_memfree(struct mthca_dev *dev)
475{ 470{
476 return dev->hca_type == ARBEL_NATIVE; 471 return dev->mthca_flags & MTHCA_FLAG_MEMFREE;
477} 472}
478 473
479#endif /* MTHCA_DEV_H */ 474#endif /* MTHCA_DEV_H */