aboutsummaryrefslogtreecommitdiff
path: root/contrib/ofed/libcxgb4/libcxgb4.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ofed/libcxgb4/libcxgb4.h')
-rw-r--r--contrib/ofed/libcxgb4/libcxgb4.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/ofed/libcxgb4/libcxgb4.h b/contrib/ofed/libcxgb4/libcxgb4.h
index b891e8b1df97..216eee05a9d8 100644
--- a/contrib/ofed/libcxgb4/libcxgb4.h
+++ b/contrib/ofed/libcxgb4/libcxgb4.h
@@ -64,6 +64,11 @@ struct c4iw_dev {
int abi_version;
};
+static inline int dev_is_t7(struct c4iw_dev *dev)
+{
+ return dev->chip_version == CHELSIO_T7;
+}
+
static inline int dev_is_t6(struct c4iw_dev *dev)
{
return dev->chip_version == CHELSIO_T6;