[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>
This commit is contained in:
committed by
Linus Torvalds
parent
08aeb14e5f
commit
68a3c21203
@ -49,20 +49,15 @@
|
||||
#define DRV_VERSION "0.06-pre"
|
||||
#define DRV_RELDATE "November 8, 2004"
|
||||
|
||||
/* Types of supported HCA */
|
||||
enum {
|
||||
TAVOR, /* MT23108 */
|
||||
ARBEL_COMPAT, /* MT25208 in Tavor compat mode */
|
||||
ARBEL_NATIVE /* MT25208 with extended features */
|
||||
};
|
||||
|
||||
enum {
|
||||
MTHCA_FLAG_DDR_HIDDEN = 1 << 1,
|
||||
MTHCA_FLAG_SRQ = 1 << 2,
|
||||
MTHCA_FLAG_MSI = 1 << 3,
|
||||
MTHCA_FLAG_MSI_X = 1 << 4,
|
||||
MTHCA_FLAG_NO_LAM = 1 << 5,
|
||||
MTHCA_FLAG_FMR = 1 << 6
|
||||
MTHCA_FLAG_FMR = 1 << 6,
|
||||
MTHCA_FLAG_MEMFREE = 1 << 7,
|
||||
MTHCA_FLAG_PCIE = 1 << 8
|
||||
};
|
||||
|
||||
enum {
|
||||
@ -473,7 +468,7 @@ static inline struct mthca_dev *to_mdev(struct ib_device *ibdev)
|
||||
|
||||
static inline int mthca_is_memfree(struct mthca_dev *dev)
|
||||
{
|
||||
return dev->hca_type == ARBEL_NATIVE;
|
||||
return dev->mthca_flags & MTHCA_FLAG_MEMFREE;
|
||||
}
|
||||
|
||||
#endif /* MTHCA_DEV_H */
|
||||
|
Reference in New Issue
Block a user