diff options
author | Divy Le Ray <divy@chelsio.com> | 2007-01-30 22:43:45 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-05 16:58:49 -0500 |
commit | 4aac38990843b4f165ccf467b772e18827bff84c (patch) | |
tree | 0143837e7200c6e8243fb2da7adaeebd448aafc3 /drivers/net/cxgb3/firmware_exports.h | |
parent | b9662d0e9ca3092e1473f27628fd60fa33b1a97a (diff) |
cxgb3 - FW versioning
Clean up FW version checking.
The supported FW version is now 3.1.
Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/cxgb3/firmware_exports.h')
-rw-r--r-- | drivers/net/cxgb3/firmware_exports.h | 27 |
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_ */ |