You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

myri10ge_mcp.h 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. /************************************************* -*- linux-c -*-
  2. * Myricom 10Gb Network Interface Card Software
  3. * Copyright 2005-2010, Myricom, Inc.
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License,
  7. * version 2, as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  17. * 02110-1301, USA.
  18. ****************************************************************/
  19. FILE_LICENCE ( GPL2_ONLY );
  20. #ifndef _myri10ge_mcp_h
  21. #define _myri10ge_mcp_h
  22. #define MXGEFW_VERSION_MAJOR 1
  23. #define MXGEFW_VERSION_MINOR 4
  24. #ifdef MXGEFW
  25. #ifndef _stdint_h_
  26. typedef signed char int8_t;
  27. typedef signed short int16_t;
  28. typedef signed int int32_t;
  29. typedef signed long long int64_t;
  30. typedef unsigned char uint8_t;
  31. typedef unsigned short uint16_t;
  32. typedef unsigned int uint32_t;
  33. typedef unsigned long long uint64_t;
  34. #endif
  35. #endif
  36. /* 8 Bytes */
  37. struct mcp_dma_addr {
  38. uint32_t high;
  39. uint32_t low;
  40. };
  41. typedef struct mcp_dma_addr mcp_dma_addr_t;
  42. /* 4 Bytes */
  43. struct mcp_slot {
  44. uint16_t checksum;
  45. uint16_t length;
  46. };
  47. typedef struct mcp_slot mcp_slot_t;
  48. #ifdef MXGEFW_NDIS
  49. /* 8-byte descriptor, exclusively used by NDIS drivers. */
  50. struct mcp_slot_8 {
  51. /* Place hash value at the top so it gets written before length.
  52. * The driver polls length.
  53. */
  54. uint32_t hash;
  55. uint16_t checksum;
  56. uint16_t length;
  57. };
  58. typedef struct mcp_slot_8 mcp_slot_8_t;
  59. /* Two bits of length in mcp_slot are used to indicate hash type. */
  60. #define MXGEFW_RSS_HASH_NULL (0 << 14) /* bit 15:14 = 00 */
  61. #define MXGEFW_RSS_HASH_IPV4 (1 << 14) /* bit 15:14 = 01 */
  62. #define MXGEFW_RSS_HASH_TCP_IPV4 (2 << 14) /* bit 15:14 = 10 */
  63. #define MXGEFW_RSS_HASH_MASK (3 << 14) /* bit 15:14 = 11 */
  64. #endif
  65. /* 64 Bytes */
  66. struct mcp_cmd {
  67. uint32_t cmd;
  68. uint32_t data0; /* will be low portion if data > 32 bits */
  69. /* 8 */
  70. uint32_t data1; /* will be high portion if data > 32 bits */
  71. uint32_t data2; /* currently unused.. */
  72. /* 16 */
  73. struct mcp_dma_addr response_addr;
  74. /* 24 */
  75. uint32_t pad[10];
  76. };
  77. typedef struct mcp_cmd mcp_cmd_t;
  78. /* 8 Bytes */
  79. struct mcp_cmd_response {
  80. uint32_t data;
  81. uint32_t result;
  82. };
  83. typedef struct mcp_cmd_response mcp_cmd_response_t;
  84. /*
  85. flags used in mcp_kreq_ether_send_t:
  86. The SMALL flag is only needed in the first segment. It is raised
  87. for packets that are total less or equal 512 bytes.
  88. The CKSUM flag must be set in all segments.
  89. The PADDED flags is set if the packet needs to be padded, and it
  90. must be set for all segments.
  91. The MXGEFW_FLAGS_ALIGN_ODD must be set if the cumulative
  92. length of all previous segments was odd.
  93. */
  94. #define MXGEFW_FLAGS_SMALL 0x1
  95. #define MXGEFW_FLAGS_TSO_HDR 0x1
  96. #define MXGEFW_FLAGS_FIRST 0x2
  97. #define MXGEFW_FLAGS_ALIGN_ODD 0x4
  98. #define MXGEFW_FLAGS_CKSUM 0x8
  99. #define MXGEFW_FLAGS_TSO_LAST 0x8
  100. #define MXGEFW_FLAGS_NO_TSO 0x10
  101. #define MXGEFW_FLAGS_TSO_CHOP 0x10
  102. #define MXGEFW_FLAGS_TSO_PLD 0x20
  103. #define MXGEFW_SEND_SMALL_SIZE 1520
  104. #define MXGEFW_MAX_MTU 9400
  105. union mcp_pso_or_cumlen {
  106. uint16_t pseudo_hdr_offset;
  107. uint16_t cum_len;
  108. };
  109. typedef union mcp_pso_or_cumlen mcp_pso_or_cumlen_t;
  110. #define MXGEFW_MAX_SEND_DESC 12
  111. #define MXGEFW_PAD 2
  112. /* 16 Bytes */
  113. struct mcp_kreq_ether_send {
  114. uint32_t addr_high;
  115. uint32_t addr_low;
  116. uint16_t pseudo_hdr_offset;
  117. uint16_t length;
  118. uint8_t pad;
  119. uint8_t rdma_count;
  120. uint8_t cksum_offset; /* where to start computing cksum */
  121. uint8_t flags; /* as defined above */
  122. };
  123. typedef struct mcp_kreq_ether_send mcp_kreq_ether_send_t;
  124. /* 8 Bytes */
  125. struct mcp_kreq_ether_recv {
  126. uint32_t addr_high;
  127. uint32_t addr_low;
  128. };
  129. typedef struct mcp_kreq_ether_recv mcp_kreq_ether_recv_t;
  130. /* Commands */
  131. #define MXGEFW_BOOT_HANDOFF 0xfc0000
  132. #define MXGEFW_BOOT_DUMMY_RDMA 0xfc01c0
  133. #define MXGEFW_ETH_CMD 0xf80000
  134. #define MXGEFW_ETH_SEND_4 0x200000
  135. #define MXGEFW_ETH_SEND_1 0x240000
  136. #define MXGEFW_ETH_SEND_2 0x280000
  137. #define MXGEFW_ETH_SEND_3 0x2c0000
  138. #define MXGEFW_ETH_RECV_SMALL 0x300000
  139. #define MXGEFW_ETH_RECV_BIG 0x340000
  140. #define MXGEFW_ETH_SEND_GO 0x380000
  141. #define MXGEFW_ETH_SEND_STOP 0x3C0000
  142. #define MXGEFW_ETH_SEND(n) (0x200000 + (((n) & 0x03) * 0x40000))
  143. #define MXGEFW_ETH_SEND_OFFSET(n) (MXGEFW_ETH_SEND(n) - MXGEFW_ETH_SEND_4)
  144. enum myri10ge_mcp_cmd_type {
  145. MXGEFW_CMD_NONE = 0,
  146. /* Reset the mcp, it is left in a safe state, waiting
  147. for the driver to set all its parameters */
  148. MXGEFW_CMD_RESET = 1,
  149. /* get the version number of the current firmware..
  150. (may be available in the eeprom strings..? */
  151. MXGEFW_GET_MCP_VERSION = 2,
  152. /* Parameters which must be set by the driver before it can
  153. issue MXGEFW_CMD_ETHERNET_UP. They persist until the next
  154. MXGEFW_CMD_RESET is issued */
  155. MXGEFW_CMD_SET_INTRQ_DMA = 3,
  156. /* data0 = LSW of the host address
  157. * data1 = MSW of the host address
  158. * data2 = slice number if multiple slices are used
  159. */
  160. MXGEFW_CMD_SET_BIG_BUFFER_SIZE = 4, /* in bytes, power of 2 */
  161. MXGEFW_CMD_SET_SMALL_BUFFER_SIZE = 5, /* in bytes */
  162. /* Parameters which refer to lanai SRAM addresses where the
  163. driver must issue PIO writes for various things */
  164. MXGEFW_CMD_GET_SEND_OFFSET = 6,
  165. MXGEFW_CMD_GET_SMALL_RX_OFFSET = 7,
  166. MXGEFW_CMD_GET_BIG_RX_OFFSET = 8,
  167. /* data0 = slice number if multiple slices are used */
  168. MXGEFW_CMD_GET_IRQ_ACK_OFFSET = 9,
  169. MXGEFW_CMD_GET_IRQ_DEASSERT_OFFSET = 10,
  170. /* Parameters which refer to rings stored on the MCP,
  171. and whose size is controlled by the mcp */
  172. MXGEFW_CMD_GET_SEND_RING_SIZE = 11, /* in bytes */
  173. MXGEFW_CMD_GET_RX_RING_SIZE = 12, /* in bytes */
  174. /* Parameters which refer to rings stored in the host,
  175. and whose size is controlled by the host. Note that
  176. all must be physically contiguous and must contain
  177. a power of 2 number of entries. */
  178. MXGEFW_CMD_SET_INTRQ_SIZE = 13, /* in bytes */
  179. #define MXGEFW_CMD_SET_INTRQ_SIZE_FLAG_NO_STRICT_SIZE_CHECK (1 << 31)
  180. /* command to bring ethernet interface up. Above parameters
  181. (plus mtu & mac address) must have been exchanged prior
  182. to issuing this command */
  183. MXGEFW_CMD_ETHERNET_UP = 14,
  184. /* command to bring ethernet interface down. No further sends
  185. or receives may be processed until an MXGEFW_CMD_ETHERNET_UP
  186. is issued, and all interrupt queues must be flushed prior
  187. to ack'ing this command */
  188. MXGEFW_CMD_ETHERNET_DOWN = 15,
  189. /* commands the driver may issue live, without resetting
  190. the nic. Note that increasing the mtu "live" should
  191. only be done if the driver has already supplied buffers
  192. sufficiently large to handle the new mtu. Decreasing
  193. the mtu live is safe */
  194. MXGEFW_CMD_SET_MTU = 16,
  195. MXGEFW_CMD_GET_INTR_COAL_DELAY_OFFSET = 17, /* in microseconds */
  196. MXGEFW_CMD_SET_STATS_INTERVAL = 18, /* in microseconds */
  197. MXGEFW_CMD_SET_STATS_DMA_OBSOLETE = 19, /* replaced by SET_STATS_DMA_V2 */
  198. MXGEFW_ENABLE_PROMISC = 20,
  199. MXGEFW_DISABLE_PROMISC = 21,
  200. MXGEFW_SET_MAC_ADDRESS = 22,
  201. MXGEFW_ENABLE_FLOW_CONTROL = 23,
  202. MXGEFW_DISABLE_FLOW_CONTROL = 24,
  203. /* do a DMA test
  204. data0,data1 = DMA address
  205. data2 = RDMA length (MSH), WDMA length (LSH)
  206. command return data = repetitions (MSH), 0.5-ms ticks (LSH)
  207. */
  208. MXGEFW_DMA_TEST = 25,
  209. MXGEFW_ENABLE_ALLMULTI = 26,
  210. MXGEFW_DISABLE_ALLMULTI = 27,
  211. /* returns MXGEFW_CMD_ERROR_MULTICAST
  212. if there is no room in the cache
  213. data0,MSH(data1) = multicast group address */
  214. MXGEFW_JOIN_MULTICAST_GROUP = 28,
  215. /* returns MXGEFW_CMD_ERROR_MULTICAST
  216. if the address is not in the cache,
  217. or is equal to FF-FF-FF-FF-FF-FF
  218. data0,MSH(data1) = multicast group address */
  219. MXGEFW_LEAVE_MULTICAST_GROUP = 29,
  220. MXGEFW_LEAVE_ALL_MULTICAST_GROUPS = 30,
  221. MXGEFW_CMD_SET_STATS_DMA_V2 = 31,
  222. /* data0, data1 = bus addr,
  223. * data2 = sizeof(struct mcp_irq_data) from driver point of view, allows
  224. * adding new stuff to mcp_irq_data without changing the ABI
  225. *
  226. * If multiple slices are used, data2 contains both the size of the
  227. * structure (in the lower 16 bits) and the slice number
  228. * (in the upper 16 bits).
  229. */
  230. MXGEFW_CMD_UNALIGNED_TEST = 32,
  231. /* same than DMA_TEST (same args) but abort with UNALIGNED on unaligned
  232. chipset */
  233. MXGEFW_CMD_UNALIGNED_STATUS = 33,
  234. /* return data = boolean, true if the chipset is known to be unaligned */
  235. MXGEFW_CMD_ALWAYS_USE_N_BIG_BUFFERS = 34,
  236. /* data0 = number of big buffers to use. It must be 0 or a power of 2.
  237. * 0 indicates that the NIC consumes as many buffers as they are required
  238. * for packet. This is the default behavior.
  239. * A power of 2 number indicates that the NIC always uses the specified
  240. * number of buffers for each big receive packet.
  241. * It is up to the driver to ensure that this value is big enough for
  242. * the NIC to be able to receive maximum-sized packets.
  243. */
  244. MXGEFW_CMD_GET_MAX_RSS_QUEUES = 35,
  245. MXGEFW_CMD_ENABLE_RSS_QUEUES = 36,
  246. /* data0 = number of slices n (0, 1, ..., n-1) to enable
  247. * data1 = interrupt mode | use of multiple transmit queues.
  248. * 0=share one INTx/MSI.
  249. * 1=use one MSI-X per queue.
  250. * If all queues share one interrupt, the driver must have set
  251. * RSS_SHARED_INTERRUPT_DMA before enabling queues.
  252. * 2=enable both receive and send queues.
  253. * Without this bit set, only one send queue (slice 0's send queue)
  254. * is enabled. The receive queues are always enabled.
  255. */
  256. #define MXGEFW_SLICE_INTR_MODE_SHARED 0x0
  257. #define MXGEFW_SLICE_INTR_MODE_ONE_PER_SLICE 0x1
  258. #define MXGEFW_SLICE_ENABLE_MULTIPLE_TX_QUEUES 0x2
  259. MXGEFW_CMD_GET_RSS_SHARED_INTERRUPT_MASK_OFFSET = 37,
  260. MXGEFW_CMD_SET_RSS_SHARED_INTERRUPT_DMA = 38,
  261. /* data0, data1 = bus address lsw, msw */
  262. MXGEFW_CMD_GET_RSS_TABLE_OFFSET = 39,
  263. /* get the offset of the indirection table */
  264. MXGEFW_CMD_SET_RSS_TABLE_SIZE = 40,
  265. /* set the size of the indirection table */
  266. MXGEFW_CMD_GET_RSS_KEY_OFFSET = 41,
  267. /* get the offset of the secret key */
  268. MXGEFW_CMD_RSS_KEY_UPDATED = 42,
  269. /* tell nic that the secret key's been updated */
  270. MXGEFW_CMD_SET_RSS_ENABLE = 43,
  271. /* data0 = enable/disable rss
  272. * 0: disable rss. nic does not distribute receive packets.
  273. * 1: enable rss. nic distributes receive packets among queues.
  274. * data1 = hash type
  275. * 1: IPV4 (required by RSS)
  276. * 2: TCP_IPV4 (required by RSS)
  277. * 3: IPV4 | TCP_IPV4 (required by RSS)
  278. * 4: source port
  279. * 5: source port + destination port
  280. */
  281. #define MXGEFW_RSS_HASH_TYPE_IPV4 0x1
  282. #define MXGEFW_RSS_HASH_TYPE_TCP_IPV4 0x2
  283. #define MXGEFW_RSS_HASH_TYPE_SRC_PORT 0x4
  284. #define MXGEFW_RSS_HASH_TYPE_SRC_DST_PORT 0x5
  285. #define MXGEFW_RSS_HASH_TYPE_MAX 0x5
  286. MXGEFW_CMD_GET_MAX_TSO6_HDR_SIZE = 44,
  287. /* Return data = the max. size of the entire headers of a IPv6 TSO packet.
  288. * If the header size of a IPv6 TSO packet is larger than the specified
  289. * value, then the driver must not use TSO.
  290. * This size restriction only applies to IPv6 TSO.
  291. * For IPv4 TSO, the maximum size of the headers is fixed, and the NIC
  292. * always has enough header buffer to store maximum-sized headers.
  293. */
  294. MXGEFW_CMD_SET_TSO_MODE = 45,
  295. /* data0 = TSO mode.
  296. * 0: Linux/FreeBSD style (NIC default)
  297. * 1: NDIS/NetBSD style
  298. */
  299. #define MXGEFW_TSO_MODE_LINUX 0
  300. #define MXGEFW_TSO_MODE_NDIS 1
  301. MXGEFW_CMD_MDIO_READ = 46,
  302. /* data0 = dev_addr (PMA/PMD or PCS ...), data1 = register/addr */
  303. MXGEFW_CMD_MDIO_WRITE = 47,
  304. /* data0 = dev_addr, data1 = register/addr, data2 = value */
  305. MXGEFW_CMD_I2C_READ = 48,
  306. /* Starts to get a fresh copy of one byte or of the module i2c table, the
  307. * obtained data is cached inside the xaui-xfi chip :
  308. * data0 : 0 => get one byte, 1=> get 256 bytes
  309. * data1 : If data0 == 0: location to refresh
  310. * bit 7:0 register location
  311. * bit 8:15 is the i2c slave addr (0 is interpreted as 0xA1)
  312. * bit 23:16 is the i2c bus number (for multi-port NICs)
  313. * If data0 == 1: unused
  314. * The operation might take ~1ms for a single byte or ~65ms when refreshing all 256 bytes
  315. * During the i2c operation, MXGEFW_CMD_I2C_READ or MXGEFW_CMD_I2C_BYTE attempts
  316. * will return MXGEFW_CMD_ERROR_BUSY
  317. */
  318. MXGEFW_CMD_I2C_BYTE = 49,
  319. /* Return the last obtained copy of a given byte in the xfp i2c table
  320. * (copy cached during the last relevant MXGEFW_CMD_I2C_READ)
  321. * data0 : index of the desired table entry
  322. * Return data = the byte stored at the requested index in the table
  323. */
  324. MXGEFW_CMD_GET_VPUMP_OFFSET = 50,
  325. /* Return data = NIC memory offset of mcp_vpump_public_global */
  326. MXGEFW_CMD_RESET_VPUMP = 51,
  327. /* Resets the VPUMP state */
  328. MXGEFW_CMD_SET_RSS_MCP_SLOT_TYPE = 52,
  329. /* data0 = mcp_slot type to use.
  330. * 0 = the default 4B mcp_slot
  331. * 1 = 8B mcp_slot_8
  332. */
  333. #define MXGEFW_RSS_MCP_SLOT_TYPE_MIN 0
  334. #define MXGEFW_RSS_MCP_SLOT_TYPE_WITH_HASH 1
  335. MXGEFW_CMD_SET_THROTTLE_FACTOR = 53,
  336. /* set the throttle factor for ethp_z8e
  337. data0 = throttle_factor
  338. throttle_factor = 256 * pcie-raw-speed / tx_speed
  339. tx_speed = 256 * pcie-raw-speed / throttle_factor
  340. For PCI-E x8: pcie-raw-speed == 16Gb/s
  341. For PCI-E x4: pcie-raw-speed == 8Gb/s
  342. ex1: throttle_factor == 0x1a0 (416), tx_speed == 1.23GB/s == 9.846 Gb/s
  343. ex2: throttle_factor == 0x200 (512), tx_speed == 1.0GB/s == 8 Gb/s
  344. with tx_boundary == 2048, max-throttle-factor == 8191 => min-speed == 500Mb/s
  345. with tx_boundary == 4096, max-throttle-factor == 4095 => min-speed == 1Gb/s
  346. */
  347. MXGEFW_CMD_VPUMP_UP = 54,
  348. /* Allocates VPump Connection, Send Request and Zero copy buffer address tables */
  349. MXGEFW_CMD_GET_VPUMP_CLK = 55,
  350. /* Get the lanai clock */
  351. MXGEFW_CMD_GET_DCA_OFFSET = 56,
  352. /* offset of dca control for WDMAs */
  353. /* VMWare NetQueue commands */
  354. MXGEFW_CMD_NETQ_GET_FILTERS_PER_QUEUE = 57,
  355. MXGEFW_CMD_NETQ_ADD_FILTER = 58,
  356. /* data0 = filter_id << 16 | queue << 8 | type */
  357. /* data1 = MS4 of MAC Addr */
  358. /* data2 = LS2_MAC << 16 | VLAN_tag */
  359. MXGEFW_CMD_NETQ_DEL_FILTER = 59,
  360. /* data0 = filter_id */
  361. MXGEFW_CMD_NETQ_QUERY1 = 60,
  362. MXGEFW_CMD_NETQ_QUERY2 = 61,
  363. MXGEFW_CMD_NETQ_QUERY3 = 62,
  364. MXGEFW_CMD_NETQ_QUERY4 = 63,
  365. MXGEFW_CMD_RELAX_RXBUFFER_ALIGNMENT = 64,
  366. /* When set, small receive buffers can cross page boundaries.
  367. * Both small and big receive buffers may start at any address.
  368. * This option has performance implications, so use with caution.
  369. */
  370. };
  371. typedef enum myri10ge_mcp_cmd_type myri10ge_mcp_cmd_type_t;
  372. enum myri10ge_mcp_cmd_status {
  373. MXGEFW_CMD_OK = 0,
  374. MXGEFW_CMD_UNKNOWN = 1,
  375. MXGEFW_CMD_ERROR_RANGE = 2,
  376. MXGEFW_CMD_ERROR_BUSY = 3,
  377. MXGEFW_CMD_ERROR_EMPTY = 4,
  378. MXGEFW_CMD_ERROR_CLOSED = 5,
  379. MXGEFW_CMD_ERROR_HASH_ERROR = 6,
  380. MXGEFW_CMD_ERROR_BAD_PORT = 7,
  381. MXGEFW_CMD_ERROR_RESOURCES = 8,
  382. MXGEFW_CMD_ERROR_MULTICAST = 9,
  383. MXGEFW_CMD_ERROR_UNALIGNED = 10,
  384. MXGEFW_CMD_ERROR_NO_MDIO = 11,
  385. MXGEFW_CMD_ERROR_I2C_FAILURE = 12,
  386. MXGEFW_CMD_ERROR_I2C_ABSENT = 13,
  387. MXGEFW_CMD_ERROR_BAD_PCIE_LINK = 14
  388. };
  389. typedef enum myri10ge_mcp_cmd_status myri10ge_mcp_cmd_status_t;
  390. #define MXGEFW_OLD_IRQ_DATA_LEN 40
  391. struct mcp_irq_data {
  392. /* add new counters at the beginning */
  393. uint32_t future_use[1];
  394. uint32_t dropped_pause;
  395. uint32_t dropped_unicast_filtered;
  396. uint32_t dropped_bad_crc32;
  397. uint32_t dropped_bad_phy;
  398. uint32_t dropped_multicast_filtered;
  399. /* 40 Bytes */
  400. uint32_t send_done_count;
  401. #define MXGEFW_LINK_DOWN 0
  402. #define MXGEFW_LINK_UP 1
  403. #define MXGEFW_LINK_MYRINET 2
  404. #define MXGEFW_LINK_UNKNOWN 3
  405. uint32_t link_up;
  406. uint32_t dropped_link_overflow;
  407. uint32_t dropped_link_error_or_filtered;
  408. uint32_t dropped_runt;
  409. uint32_t dropped_overrun;
  410. uint32_t dropped_no_small_buffer;
  411. uint32_t dropped_no_big_buffer;
  412. uint32_t rdma_tags_available;
  413. uint8_t tx_stopped;
  414. uint8_t link_down;
  415. uint8_t stats_updated;
  416. uint8_t valid;
  417. };
  418. typedef struct mcp_irq_data mcp_irq_data_t;
  419. #ifdef MXGEFW_NDIS
  420. /* Exclusively used by NDIS drivers */
  421. struct mcp_rss_shared_interrupt {
  422. uint8_t pad[2];
  423. uint8_t queue;
  424. uint8_t valid;
  425. };
  426. #endif
  427. /* definitions for NETQ filter type */
  428. #define MXGEFW_NETQ_FILTERTYPE_NONE 0
  429. #define MXGEFW_NETQ_FILTERTYPE_MACADDR 1
  430. #define MXGEFW_NETQ_FILTERTYPE_VLAN 2
  431. #define MXGEFW_NETQ_FILTERTYPE_VLANMACADDR 3
  432. #endif /* _myri10ge_mcp_h */