aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/myri10ge/myri10ge_mcp.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/net/myri10ge/myri10ge_mcp.h b/drivers/net/myri10ge/myri10ge_mcp.h
index ee6261db2a51..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
205enum myri10ge_mcp_cmd_status { 212enum myri10ge_mcp_cmd_status {
@@ -212,7 +219,8 @@ 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
@@ -228,6 +236,10 @@ struct mcp_irq_data {
228 /* 40 Bytes */ 236 /* 40 Bytes */
229 __be32 send_done_count; 237 __be32 send_done_count;
230 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
231 __be32 link_up; 243 __be32 link_up;
232 __be32 dropped_link_overflow; 244 __be32 dropped_link_overflow;
233 __be32 dropped_link_error_or_filtered; 245 __be32 dropped_link_error_or_filtered;