diff options
author | Scott Feldman <scofeldm@cisco.com> | 2008-11-22 00:28:18 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-22 00:28:18 -0500 |
commit | 27372bf5fa5ffc0fee3ddb486a0da942295fd8e0 (patch) | |
tree | 34a4e6f41057ff12f01a86d891c81023c3d45a8e /drivers/net/enic/vnic_devcmd.h | |
parent | 86ca9db794a285f18f31ed15601696b238ccb57a (diff) |
enic: driver/firmware API updates
Add driver/firmware compatibility check.
Update firmware notify cmd to honor notify area size.
Add new version of init cmd.
Add link_down_cnt to notify area to track link down count.
Signed-off-by: Scott Feldman <scofeldm@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/enic/vnic_devcmd.h')
-rw-r--r-- | drivers/net/enic/vnic_devcmd.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/drivers/net/enic/vnic_devcmd.h b/drivers/net/enic/vnic_devcmd.h index d8617a3373b1..8062c75154e6 100644 --- a/drivers/net/enic/vnic_devcmd.h +++ b/drivers/net/enic/vnic_devcmd.h | |||
@@ -168,7 +168,8 @@ enum vnic_devcmd_cmd { | |||
168 | CMD_CLOSE = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 25), | 168 | CMD_CLOSE = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 25), |
169 | 169 | ||
170 | /* initialize virtual link: (u32)a0=flags (see CMD_INITF_*) */ | 170 | /* initialize virtual link: (u32)a0=flags (see CMD_INITF_*) */ |
171 | CMD_INIT = _CMDCNW(_CMD_DIR_READ, _CMD_VTYPE_ALL, 26), | 171 | /***** Replaced by CMD_INIT *****/ |
172 | CMD_INIT_v1 = _CMDCNW(_CMD_DIR_READ, _CMD_VTYPE_ALL, 26), | ||
172 | 173 | ||
173 | /* variant of CMD_INIT, with provisioning info | 174 | /* variant of CMD_INIT, with provisioning info |
174 | * (u64)a0=paddr of vnic_devcmd_provinfo | 175 | * (u64)a0=paddr of vnic_devcmd_provinfo |
@@ -198,6 +199,14 @@ enum vnic_devcmd_cmd { | |||
198 | 199 | ||
199 | /* undo initialize of virtual link */ | 200 | /* undo initialize of virtual link */ |
200 | CMD_DEINIT = _CMDCNW(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 34), | 201 | CMD_DEINIT = _CMDCNW(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 34), |
202 | |||
203 | /* initialize virtual link: (u32)a0=flags (see CMD_INITF_*) */ | ||
204 | CMD_INIT = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 35), | ||
205 | |||
206 | /* check fw capability of a cmd: | ||
207 | * in: (u32)a0=cmd | ||
208 | * out: (u32)a0=errno, 0:valid cmd, a1=supported VNIC_STF_* bits */ | ||
209 | CMD_CAPABILITY = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_ALL, 36), | ||
201 | }; | 210 | }; |
202 | 211 | ||
203 | /* flags for CMD_OPEN */ | 212 | /* flags for CMD_OPEN */ |
@@ -249,8 +258,16 @@ struct vnic_devcmd_notify { | |||
249 | u32 uif; /* uplink interface */ | 258 | u32 uif; /* uplink interface */ |
250 | u32 status; /* status bits (see VNIC_STF_*) */ | 259 | u32 status; /* status bits (see VNIC_STF_*) */ |
251 | u32 error; /* error code (see ERR_*) for first ERR */ | 260 | u32 error; /* error code (see ERR_*) for first ERR */ |
261 | u32 link_down_cnt; /* running count of link down transitions */ | ||
252 | }; | 262 | }; |
253 | #define VNIC_STF_FATAL_ERR 0x0001 /* fatal fw error */ | 263 | #define VNIC_STF_FATAL_ERR 0x0001 /* fatal fw error */ |
264 | #define VNIC_STF_STD_PAUSE 0x0002 /* standard link-level pause on */ | ||
265 | #define VNIC_STF_PFC_PAUSE 0x0004 /* priority flow control pause on */ | ||
266 | /* all supported status flags */ | ||
267 | #define VNIC_STF_ALL (VNIC_STF_FATAL_ERR |\ | ||
268 | VNIC_STF_STD_PAUSE |\ | ||
269 | VNIC_STF_PFC_PAUSE |\ | ||
270 | 0) | ||
254 | 271 | ||
255 | struct vnic_devcmd_provinfo { | 272 | struct vnic_devcmd_provinfo { |
256 | u8 oui[3]; | 273 | u8 oui[3]; |