diff options
author | Scott Feldman <scofeldm@cisco.com> | 2009-09-03 13:02:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-03 23:19:23 -0400 |
commit | d73149f51e165f5872bc431ae181650396145265 (patch) | |
tree | f737b65590919989546fdea996e76407e67b14d8 /drivers/net/enic/vnic_devcmd.h | |
parent | 9f63a7c6aef00a8eafa7521342099f199f68c575 (diff) |
enic: changes to driver/firmware interface
Deprecate some old APIa; change arguments to stats dump all API; add new
interrupt assert API
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 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/enic/vnic_devcmd.h b/drivers/net/enic/vnic_devcmd.h index 2587f34fbfbd..d78bbcc1fdf9 100644 --- a/drivers/net/enic/vnic_devcmd.h +++ b/drivers/net/enic/vnic_devcmd.h | |||
@@ -105,14 +105,6 @@ enum vnic_devcmd_cmd { | |||
105 | CMD_MAC_ADDR = _CMDC(_CMD_DIR_READ, | 105 | CMD_MAC_ADDR = _CMDC(_CMD_DIR_READ, |
106 | _CMD_VTYPE_ENET | _CMD_VTYPE_FC, 9), | 106 | _CMD_VTYPE_ENET | _CMD_VTYPE_FC, 9), |
107 | 107 | ||
108 | /* disable/enable promisc mode: (u8)a0=0/1 */ | ||
109 | /***** XXX DEPRECATED *****/ | ||
110 | CMD_PROMISC_MODE = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 10), | ||
111 | |||
112 | /* disable/enable all-multi mode: (u8)a0=0/1 */ | ||
113 | /***** XXX DEPRECATED *****/ | ||
114 | CMD_ALLMULTI_MODE = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ENET, 11), | ||
115 | |||
116 | /* add addr from (u48)a0 */ | 108 | /* add addr from (u48)a0 */ |
117 | CMD_ADDR_ADD = _CMDCNW(_CMD_DIR_WRITE, | 109 | CMD_ADDR_ADD = _CMDCNW(_CMD_DIR_WRITE, |
118 | _CMD_VTYPE_ENET | _CMD_VTYPE_FC, 12), | 110 | _CMD_VTYPE_ENET | _CMD_VTYPE_FC, 12), |
@@ -182,7 +174,9 @@ enum vnic_devcmd_cmd { | |||
182 | /* disable virtual link */ | 174 | /* disable virtual link */ |
183 | CMD_DISABLE = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 29), | 175 | CMD_DISABLE = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 29), |
184 | 176 | ||
185 | /* stats dump all vnics on uplink in mem: (u64)a0=paddr (u32)a1=uif */ | 177 | /* stats dump sum of all vnic stats on same uplink in mem: |
178 | * (u64)a0=paddr | ||
179 | * (u16)a1=sizeof stats area */ | ||
186 | CMD_STATS_DUMP_ALL = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 30), | 180 | CMD_STATS_DUMP_ALL = _CMDC(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 30), |
187 | 181 | ||
188 | /* init status: | 182 | /* init status: |
@@ -211,7 +205,12 @@ enum vnic_devcmd_cmd { | |||
211 | /* persistent binding info | 205 | /* persistent binding info |
212 | * in: (u64)a0=paddr of arg | 206 | * in: (u64)a0=paddr of arg |
213 | * (u32)a1=CMD_PERBI_XXX */ | 207 | * (u32)a1=CMD_PERBI_XXX */ |
214 | CMD_PERBI = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_FC, 37), | 208 | CMD_PERBI = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_FC, 37), |
209 | |||
210 | /* Interrupt Assert Register functionality | ||
211 | * in: (u16)a0=interrupt number to assert | ||
212 | */ | ||
213 | CMD_IAR = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 38), | ||
215 | }; | 214 | }; |
216 | 215 | ||
217 | /* flags for CMD_OPEN */ | 216 | /* flags for CMD_OPEN */ |
@@ -244,6 +243,7 @@ enum vnic_devcmd_error { | |||
244 | ERR_ENOMEM = 7, | 243 | ERR_ENOMEM = 7, |
245 | ERR_ETIMEDOUT = 8, | 244 | ERR_ETIMEDOUT = 8, |
246 | ERR_ELINKDOWN = 9, | 245 | ERR_ELINKDOWN = 9, |
246 | ERR_EMAXRES = 10, | ||
247 | }; | 247 | }; |
248 | 248 | ||
249 | struct vnic_devcmd_fw_info { | 249 | struct vnic_devcmd_fw_info { |