aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/firmware_exports.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/cxgb3/firmware_exports.h')
-rw-r--r--drivers/net/cxgb3/firmware_exports.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/firmware_exports.h b/drivers/net/cxgb3/firmware_exports.h
index 3565f481801b..eea7d8940dc7 100644
--- a/drivers/net/cxgb3/firmware_exports.h
+++ b/drivers/net/cxgb3/firmware_exports.h
@@ -141,4 +141,31 @@
141#define FW_WRC_NUM \ 141#define FW_WRC_NUM \
142 (65536 + FW_TUNNEL_NUM + FW_CTRL_NUM + FW_RI_NUM + FW_RX_PKT_NUM) 142 (65536 + FW_TUNNEL_NUM + FW_CTRL_NUM + FW_RI_NUM + FW_RX_PKT_NUM)
143 143
144/*
145 * FW type and version.
146 */
147#define S_FW_VERSION_TYPE 28
148#define M_FW_VERSION_TYPE 0xF
149#define V_FW_VERSION_TYPE(x) ((x) << S_FW_VERSION_TYPE)
150#define G_FW_VERSION_TYPE(x) \
151 (((x) >> S_FW_VERSION_TYPE) & M_FW_VERSION_TYPE)
152
153#define S_FW_VERSION_MAJOR 16
154#define M_FW_VERSION_MAJOR 0xFFF
155#define V_FW_VERSION_MAJOR(x) ((x) << S_FW_VERSION_MAJOR)
156#define G_FW_VERSION_MAJOR(x) \
157 (((x) >> S_FW_VERSION_MAJOR) & M_FW_VERSION_MAJOR)
158
159#define S_FW_VERSION_MINOR 8
160#define M_FW_VERSION_MINOR 0xFF
161#define V_FW_VERSION_MINOR(x) ((x) << S_FW_VERSION_MINOR)
162#define G_FW_VERSION_MINOR(x) \
163 (((x) >> S_FW_VERSION_MINOR) & M_FW_VERSION_MINOR)
164
165#define S_FW_VERSION_MICRO 0
166#define M_FW_VERSION_MICRO 0xFF
167#define V_FW_VERSION_MICRO(x) ((x) << S_FW_VERSION_MICRO)
168#define G_FW_VERSION_MICRO(x) \
169 (((x) >> S_FW_VERSION_MICRO) & M_FW_VERSION_MICRO)
170
144#endif /* _FIRMWARE_EXPORTS_H_ */ 171#endif /* _FIRMWARE_EXPORTS_H_ */