aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/enic/vnic_devcmd.h
diff options
context:
space:
mode:
authorScott Feldman <scofeldm@cisco.com>2009-02-10 02:25:33 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-10 02:25:33 -0500
commit4cdc44a231f906a6ec586637e6e4c4c216679da4 (patch)
tree3c9e54e57c82d2286e6327a428b8d58526f3993d /drivers/net/enic/vnic_devcmd.h
parent68f717089a62ee4c51933f4be43e4ef7b31539fd (diff)
enic: Add api for link down count and to get firmware notification status.
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.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/enic/vnic_devcmd.h b/drivers/net/enic/vnic_devcmd.h
index 8062c75154e6..2587f34fbfbd 100644
--- a/drivers/net/enic/vnic_devcmd.h
+++ b/drivers/net/enic/vnic_devcmd.h
@@ -191,7 +191,7 @@ enum vnic_devcmd_cmd {
191 CMD_INIT_STATUS = _CMDC(_CMD_DIR_READ, _CMD_VTYPE_ALL, 31), 191 CMD_INIT_STATUS = _CMDC(_CMD_DIR_READ, _CMD_VTYPE_ALL, 31),
192 192
193 /* INT13 API: (u64)a0=paddr to vnic_int13_params struct 193 /* INT13 API: (u64)a0=paddr to vnic_int13_params struct
194 * (u8)a1=INT13_CMD_xxx */ 194 * (u32)a1=INT13_CMD_xxx */
195 CMD_INT13 = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_FC, 32), 195 CMD_INT13 = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_FC, 32),
196 196
197 /* logical uplink enable/disable: (u64)a0: 0/1=disable/enable */ 197 /* logical uplink enable/disable: (u64)a0: 0/1=disable/enable */
@@ -207,6 +207,11 @@ enum vnic_devcmd_cmd {
207 * in: (u32)a0=cmd 207 * in: (u32)a0=cmd
208 * out: (u32)a0=errno, 0:valid cmd, a1=supported VNIC_STF_* bits */ 208 * out: (u32)a0=errno, 0:valid cmd, a1=supported VNIC_STF_* bits */
209 CMD_CAPABILITY = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_ALL, 36), 209 CMD_CAPABILITY = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_ALL, 36),
210
211 /* persistent binding info
212 * in: (u64)a0=paddr of arg
213 * (u32)a1=CMD_PERBI_XXX */
214 CMD_PERBI = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_FC, 37),
210}; 215};
211 216
212/* flags for CMD_OPEN */ 217/* flags for CMD_OPEN */
@@ -259,6 +264,7 @@ struct vnic_devcmd_notify {
259 u32 status; /* status bits (see VNIC_STF_*) */ 264 u32 status; /* status bits (see VNIC_STF_*) */
260 u32 error; /* error code (see ERR_*) for first ERR */ 265 u32 error; /* error code (see ERR_*) for first ERR */
261 u32 link_down_cnt; /* running count of link down transitions */ 266 u32 link_down_cnt; /* running count of link down transitions */
267 u32 perbi_rebuild_cnt; /* running count of perbi rebuilds */
262}; 268};
263#define VNIC_STF_FATAL_ERR 0x0001 /* fatal fw error */ 269#define VNIC_STF_FATAL_ERR 0x0001 /* fatal fw error */
264#define VNIC_STF_STD_PAUSE 0x0002 /* standard link-level pause on */ 270#define VNIC_STF_STD_PAUSE 0x0002 /* standard link-level pause on */