diff options
Diffstat (limited to 'drivers/net/myri10ge/myri10ge_mcp.h')
-rw-r--r-- | drivers/net/myri10ge/myri10ge_mcp.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/drivers/net/myri10ge/myri10ge_mcp.h b/drivers/net/myri10ge/myri10ge_mcp.h index 29463b301a84..a1d2a22296a9 100644 --- a/drivers/net/myri10ge/myri10ge_mcp.h +++ b/drivers/net/myri10ge/myri10ge_mcp.h | |||
@@ -200,6 +200,13 @@ enum myri10ge_mcp_cmd_type { | |||
200 | /* data0, data1 = bus addr, | 200 | /* data0, data1 = bus addr, |
201 | * data2 = sizeof(struct mcp_irq_data) from driver point of view, allows | 201 | * data2 = sizeof(struct mcp_irq_data) from driver point of view, allows |
202 | * adding new stuff to mcp_irq_data without changing the ABI */ | 202 | * adding new stuff to mcp_irq_data without changing the ABI */ |
203 | |||
204 | MXGEFW_CMD_UNALIGNED_TEST, | ||
205 | /* same than DMA_TEST (same args) but abort with UNALIGNED on unaligned | ||
206 | * chipset */ | ||
207 | |||
208 | MXGEFW_CMD_UNALIGNED_STATUS | ||
209 | /* return data = boolean, true if the chipset is known to be unaligned */ | ||
203 | }; | 210 | }; |
204 | 211 | ||
205 | enum myri10ge_mcp_cmd_status { | 212 | enum myri10ge_mcp_cmd_status { |
@@ -212,18 +219,27 @@ enum myri10ge_mcp_cmd_status { | |||
212 | MXGEFW_CMD_ERROR_HASH_ERROR, | 219 | MXGEFW_CMD_ERROR_HASH_ERROR, |
213 | MXGEFW_CMD_ERROR_BAD_PORT, | 220 | MXGEFW_CMD_ERROR_BAD_PORT, |
214 | MXGEFW_CMD_ERROR_RESOURCES, | 221 | MXGEFW_CMD_ERROR_RESOURCES, |
215 | MXGEFW_CMD_ERROR_MULTICAST | 222 | MXGEFW_CMD_ERROR_MULTICAST, |
223 | MXGEFW_CMD_ERROR_UNALIGNED | ||
216 | }; | 224 | }; |
217 | 225 | ||
218 | #define MXGEFW_OLD_IRQ_DATA_LEN 40 | 226 | #define MXGEFW_OLD_IRQ_DATA_LEN 40 |
219 | 227 | ||
220 | struct mcp_irq_data { | 228 | struct mcp_irq_data { |
221 | /* add new counters at the beginning */ | 229 | /* add new counters at the beginning */ |
222 | __be32 future_use[5]; | 230 | __be32 future_use[1]; |
231 | __be32 dropped_pause; | ||
232 | __be32 dropped_unicast_filtered; | ||
233 | __be32 dropped_bad_crc32; | ||
234 | __be32 dropped_bad_phy; | ||
223 | __be32 dropped_multicast_filtered; | 235 | __be32 dropped_multicast_filtered; |
224 | /* 40 Bytes */ | 236 | /* 40 Bytes */ |
225 | __be32 send_done_count; | 237 | __be32 send_done_count; |
226 | 238 | ||
239 | #define MXGEFW_LINK_DOWN 0 | ||
240 | #define MXGEFW_LINK_UP 1 | ||
241 | #define MXGEFW_LINK_MYRINET 2 | ||
242 | #define MXGEFW_LINK_UNKNOWN 3 | ||
227 | __be32 link_up; | 243 | __be32 link_up; |
228 | __be32 dropped_link_overflow; | 244 | __be32 dropped_link_overflow; |
229 | __be32 dropped_link_error_or_filtered; | 245 | __be32 dropped_link_error_or_filtered; |