Lines Matching +full:4 +full:- +full:pole

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright 2008-2013 Solarflare Communications Inc. All rights reserved.
32 /* Power-on reset state */
38 #define MC_FW_STATE_BOOTING (4)
54 /* The 'doorbell' addresses are hard-wired to alert the MC when written */
57 /* The rest of these are firmware-defined */
65 /* Values to be written to the per-port status dword in shared
94 * | | \--- Response
95 * | \------- Error
96 * \------------------------------ Resync (always set)
125 #define MCDI_HEADER_SEQ_WIDTH 4
152 * - To advance a shared memory request if XFLAGS_EVREQ was set
153 * - As a notification (link state, i2c event), controlled
165 * - LEVEL==INFO Command succeeded
166 * - LEVEL==ERR Command failed
177 * non-existent MCDI command MC_CMD_DEBUG_LOG.
182 * Since the event is written in big-endian byte order, this works
183 * providing bits 56-63 of the event are 0xc0.
195 /* Non-existent command target */
198 #define MC_CMD_ERR_EINTR 4
217 /* Read-only */
221 /* Non-recursive resource is already acquired */
242 /* V-adaptor not found. */
246 /* V-switch not found. */
254 /* Invalid v-switch type. */
256 /* Invalid v-port type. */
278 * This error code is followed by a 32-bit handle that
281 #define MC_CMD_ERR_PROXY_PENDING_HANDLE_OFST 4
291 * an operation failed due to lack of SR-IOV privilege.
300 * May also returned for other operations such as sub-variant switching. */
340 #define SIENA_MC_BOOTROM_COPYCODE_VEC (0x800 - 3 * 0x4)
341 #define HUNT_MC_BOOTROM_COPYCODE_VEC (0x8000 - 3 * 0x4)
342 #define MEDFORD_MC_BOOTROM_COPYCODE_VEC (0x10000 - 3 * 0x4)
344 #define SIENA_MC_BOOTROM_NOFLASH_VEC (0x800 - 2 * 0x4)
345 #define HUNT_MC_BOOTROM_NOFLASH_VEC (0x8000 - 2 * 0x4)
346 #define MEDFORD_MC_BOOTROM_NOFLASH_VEC (0x10000 - 2 * 0x4)
348 #define SIENA_MC_BOOTROM_RECOVERY_VEC (0x800 - 2 * 0x4)
349 #define HUNT_MC_BOOTROM_RECOVERY_VEC (0x8000 - 2 * 0x4)
350 #define MEDFORD_MC_BOOTROM_RECOVERY_VEC (0x10000 - 2 * 0x4)
353 #define MEDFORD_MC_BOOTROM_REAL_NOFLASH_VEC (0x10000 - 4 * 0x4)
381 /* This may be ORed with an EVB_PORT_ID_xxx constant to pass a non-default
382 * stack ID (which must be in the range 1-255) along with an EVB port ID.
389 * may be followed by the (0-based) number of the first argument that
392 #define MC_CMD_ERR_ARG_OFST 4
414 #define MCDI_EVENT_DATA_LEN 4
424 #define MCDI_EVENT_LINKCHANGE_SPEED_WIDTH 4
442 #define MCDI_EVENT_LINKCHANGE_FCNTL_WIDTH 4
462 #define MCDI_EVENT_TX_ERR_TYPE_WIDTH 4
493 /* enum: AOE failed to load - no valid image? */
501 /* enum: Generic AOE fault - likely to have been reported via other means too
531 /* enum: FPGA boot-flash contains an invalid image header */
579 #define MCDI_EVENT_RX_ERR_TYPE_WIDTH 4
590 /* enum: MUM failed to load - no valid image? */
619 #define MCDI_EVENT_EV_CODE_WIDTH 4
697 #define MCDI_EVENT_CMDDONE_DATA_LEN 4
701 #define MCDI_EVENT_LINKCHANGE_DATA_LEN 4
705 #define MCDI_EVENT_SENSOREVT_DATA_LEN 4
709 #define MCDI_EVENT_MAC_STATS_DMA_GENERATION_LEN 4
713 #define MCDI_EVENT_TX_ERR_DATA_LEN 4
720 #define MCDI_EVENT_PTP_SECONDS_LEN 4
727 #define MCDI_EVENT_PTP_MAJOR_LEN 4
734 #define MCDI_EVENT_PTP_NANOSECONDS_LEN 4
741 #define MCDI_EVENT_PTP_MINOR_LEN 4
747 #define MCDI_EVENT_PTP_UUID_LEN 4
751 #define MCDI_EVENT_RX_ERR_DATA_LEN 4
755 #define MCDI_EVENT_PAR_ERR_DATA_LEN 4
759 #define MCDI_EVENT_ECC_CORR_ERR_DATA_LEN 4
763 #define MCDI_EVENT_ECC_FATAL_ERR_DATA_LEN 4
768 #define MCDI_EVENT_PTP_TIME_MAJOR_LEN 4
771 /* For CODE_PTP_TIME events, bits 19-26 of the minor value of the PTP clock */
789 /* For CODE_PTP_TIME events where report sync status is enabled, bits 21-26 of
800 #define MCDI_EVENT_PROXY_REQUEST_BUFF_INDEX_LEN 4
804 #define MCDI_EVENT_PROXY_RESPONSE_HANDLE_LEN 4
808 * should resend it. A non-zero value means that the authorization has been
814 #define MCDI_EVENT_DBRET_DATA_LEN 4
833 #define FCDI_EVENT_DATA_LEN 4
843 #define FCDI_EVENT_EV_CODE_WIDTH 4
864 /* enum: Port id config to map MC-FC port idx */
873 #define FCDI_EVENT_ASSERT_INSTR_ADDRESS_LEN 4
881 #define FCDI_EVENT_DDR_TEST_RESULT_RESULT_LEN 4
885 #define FCDI_EVENT_LINK_STATE_DATA_LEN 4
889 #define FCDI_EVENT_PTP_STATE_LEN 4
898 #define FCDI_EVENT_DDR_ECC_STATUS_STATUS_LEN 4
906 #define FCDI_EVENT_PORT_CONFIG_DATA_LEN 4
910 #define FCDI_EVENT_BOOT_RESULT_LEN 4
918 * such that bits 32-63 containing | event code, level, source etc remain the
927 #define FCDI_EXTENDED_EVENT_PPS_COUNT_LEN 4
932 #define FCDI_EXTENDED_EVENT_PPS_SECONDS_LEN 4
937 #define FCDI_EXTENDED_EVENT_PPS_NANOSECONDS_LEN 4
965 #define MUM_EVENT_DATA_LEN 4
980 #define MUM_EVENT_PORT_PHY_TX_LOS_LBN 4
991 #define MUM_EVENT_EV_CODE_WIDTH 4
1003 #define MUM_EVENT_SENSOR_DATA_LEN 4
1007 #define MUM_EVENT_PORT_PHY_FLAGS_LEN 4
1011 #define MUM_EVENT_PORT_PHY_COPPER_LEN_LEN 4
1015 #define MUM_EVENT_PORT_PHY_CAPS_LEN 4
1019 #define MUM_EVENT_PORT_PHY_TECH_LEN 4
1031 #define MUM_EVENT_PORT_PHY_SRC_DATA_ID_WIDTH 4
1038 #define MUM_EVENT_PORT_PHY_SRC_PORT_NO_WIDTH 4
1042 * Read multiple 32byte words from MC memory. Note - this command really
1054 #define MC_CMD_READ32_IN_ADDR_LEN 4
1055 #define MC_CMD_READ32_IN_NUMWORDS_OFST 4
1056 #define MC_CMD_READ32_IN_NUMWORDS_LEN 4
1059 #define MC_CMD_READ32_OUT_LENMIN 4
1061 #define MC_CMD_READ32_OUT_LEN(num) (0+4*(num))
1063 #define MC_CMD_READ32_OUT_BUFFER_LEN 4
1079 #define MC_CMD_WRITE32_IN_LEN(num) (4+4*(num))
1081 #define MC_CMD_WRITE32_IN_ADDR_LEN 4
1082 #define MC_CMD_WRITE32_IN_BUFFER_OFST 4
1083 #define MC_CMD_WRITE32_IN_BUFFER_LEN 4
1092 * Copy MC code between two locations and jump. Note - this command really
1110 #define MC_CMD_COPYCODE_IN_SRC_ADDR_LEN 4
1128 #define MC_CMD_COPYCODE_IN_BOOT_MAGIC_SKIP_BOOT_ICORE_SYNC_LBN 4
1135 #define MC_CMD_COPYCODE_IN_DEST_ADDR_OFST 4
1136 #define MC_CMD_COPYCODE_IN_DEST_ADDR_LEN 4
1138 #define MC_CMD_COPYCODE_IN_NUMWORDS_LEN 4
1141 #define MC_CMD_COPYCODE_IN_JUMP_LEN 4
1150 * Select function for function-specific commands.
1158 #define MC_CMD_SET_FUNC_IN_LEN 4
1161 #define MC_CMD_SET_FUNC_IN_FUNC_LEN 4
1182 #define MC_CMD_GET_BOOT_STATUS_OUT_BOOT_OFFSET_LEN 4
1185 #define MC_CMD_GET_BOOT_STATUS_OUT_FLAGS_OFST 4
1186 #define MC_CMD_GET_BOOT_STATUS_OUT_FLAGS_LEN 4
1206 #define MC_CMD_GET_ASSERTS_IN_LEN 4
1209 #define MC_CMD_GET_ASSERTS_IN_CLEAR_LEN 4
1215 #define MC_CMD_GET_ASSERTS_OUT_GLOBAL_FLAGS_LEN 4
1218 /* enum: A system-level assertion has failed. */
1220 /* enum: A thread-level assertion has failed. */
1227 #define MC_CMD_GET_ASSERTS_OUT_SAVED_PC_OFFS_OFST 4
1228 #define MC_CMD_GET_ASSERTS_OUT_SAVED_PC_OFFS_LEN 4
1231 #define MC_CMD_GET_ASSERTS_OUT_GP_REGS_OFFS_LEN 4
1239 #define MC_CMD_GET_ASSERTS_OUT_THREAD_OFFS_LEN 4
1241 #define MC_CMD_GET_ASSERTS_OUT_RESERVED_LEN 4
1257 #define MC_CMD_LOG_CTRL_IN_LOG_DEST_LEN 4
1263 #define MC_CMD_LOG_CTRL_IN_LOG_DEST_EVQ_OFST 4
1264 #define MC_CMD_LOG_CTRL_IN_LOG_DEST_EVQ_LEN 4
1282 #define MC_CMD_GET_VERSION_EXT_IN_LEN 4
1285 #define MC_CMD_GET_VERSION_EXT_IN_EXT_FLAGS_LEN 4
1288 #define MC_CMD_GET_VERSION_V0_OUT_LEN 4
1290 #define MC_CMD_GET_VERSION_OUT_FIRMWARE_LEN 4
1303 /* MC_CMD_GET_VERSION_OUT_FIRMWARE_LEN 4 */
1306 #define MC_CMD_GET_VERSION_OUT_PCOL_OFST 4
1307 #define MC_CMD_GET_VERSION_OUT_PCOL_LEN 4
1319 /* MC_CMD_GET_VERSION_OUT_FIRMWARE_LEN 4 */
1322 #define MC_CMD_GET_VERSION_EXT_OUT_PCOL_OFST 4
1323 #define MC_CMD_GET_VERSION_EXT_OUT_PCOL_LEN 4
1406 /* enum: Get the clock attributes. NOTE- extended version of
1434 #define MC_CMD_PTP_IN_CMD_LEN 4
1435 #define MC_CMD_PTP_IN_PERIPH_ID_OFST 4
1436 #define MC_CMD_PTP_IN_PERIPH_ID_LEN 4
1439 #define MC_CMD_PTP_IN_ENABLE_QUEUE_LEN 4
1442 #define MC_CMD_PTP_IN_ENABLE_MODE_LEN 4
1445 /* enum: PTP, version 1, with VLAN headers - deprecated */
1449 /* enum: PTP, version 2, with VLAN headers - deprecated */
1459 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1460 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1461 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1468 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1469 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1470 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1473 #define MC_CMD_PTP_IN_TRANSMIT_LENGTH_LEN 4
1483 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1484 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1485 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1490 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1491 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1492 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1497 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1498 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1499 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1504 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1505 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1506 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1521 #define MC_CMD_PTP_IN_ADJUST_SECONDS_LEN 4
1524 #define MC_CMD_PTP_IN_ADJUST_MAJOR_LEN 4
1527 #define MC_CMD_PTP_IN_ADJUST_NANOSECONDS_LEN 4
1530 #define MC_CMD_PTP_IN_ADJUST_MINOR_LEN 4
1535 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1536 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1537 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1552 #define MC_CMD_PTP_IN_ADJUST_V2_SECONDS_LEN 4
1555 #define MC_CMD_PTP_IN_ADJUST_V2_MAJOR_LEN 4
1558 #define MC_CMD_PTP_IN_ADJUST_V2_NANOSECONDS_LEN 4
1561 #define MC_CMD_PTP_IN_ADJUST_V2_MINOR_LEN 4
1564 #define MC_CMD_PTP_IN_ADJUST_V2_MAJOR_HI_LEN 4
1569 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1570 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1571 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1574 #define MC_CMD_PTP_IN_SYNCHRONIZE_NUMTIMESETS_LEN 4
1586 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1587 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1588 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1593 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1594 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1595 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1598 #define MC_CMD_PTP_IN_MANFTEST_PACKET_TEST_ENABLE_LEN 4
1603 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1604 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1605 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1610 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1611 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1612 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1615 #define MC_CMD_PTP_IN_DEBUG_DEBUG_PARAM_LEN 4
1620 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1621 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1622 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1624 #define MC_CMD_PTP_IN_FPGAREAD_ADDR_LEN 4
1626 #define MC_CMD_PTP_IN_FPGAREAD_NUMBYTES_LEN 4
1633 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1634 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1635 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1637 #define MC_CMD_PTP_IN_FPGAWRITE_ADDR_LEN 4
1646 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1647 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1648 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1651 #define MC_CMD_PTP_IN_CLOCK_OFFSET_ADJUST_SECONDS_LEN 4
1654 #define MC_CMD_PTP_IN_CLOCK_OFFSET_ADJUST_MAJOR_LEN 4
1657 #define MC_CMD_PTP_IN_CLOCK_OFFSET_ADJUST_NANOSECONDS_LEN 4
1660 #define MC_CMD_PTP_IN_CLOCK_OFFSET_ADJUST_MINOR_LEN 4
1665 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1666 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1667 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1670 #define MC_CMD_PTP_IN_CLOCK_OFFSET_ADJUST_V2_SECONDS_LEN 4
1673 #define MC_CMD_PTP_IN_CLOCK_OFFSET_ADJUST_V2_MAJOR_LEN 4
1676 #define MC_CMD_PTP_IN_CLOCK_OFFSET_ADJUST_V2_NANOSECONDS_LEN 4
1679 #define MC_CMD_PTP_IN_CLOCK_OFFSET_ADJUST_V2_MINOR_LEN 4
1682 #define MC_CMD_PTP_IN_CLOCK_OFFSET_ADJUST_V2_MAJOR_HI_LEN 4
1687 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1688 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1689 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1701 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1702 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1703 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1706 #define MC_CMD_PTP_IN_RX_SET_VLAN_FILTER_NUM_VLAN_TAGS_LEN 4
1709 #define MC_CMD_PTP_IN_RX_SET_VLAN_FILTER_VLAN_TAG_LEN 4
1715 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1716 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1717 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1720 #define MC_CMD_PTP_IN_RX_SET_UUID_FILTER_ENABLE_LEN 4
1730 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1731 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1732 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1735 #define MC_CMD_PTP_IN_RX_SET_DOMAIN_FILTER_ENABLE_LEN 4
1738 #define MC_CMD_PTP_IN_RX_SET_DOMAIN_FILTER_DOMAIN_LEN 4
1743 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1744 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1745 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1748 #define MC_CMD_PTP_IN_SET_CLK_SRC_CLK_LEN 4
1757 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1758 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1759 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1764 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1766 #define MC_CMD_PTP_IN_PPS_ENABLE_OP_OFST 4
1767 #define MC_CMD_PTP_IN_PPS_ENABLE_OP_LEN 4
1774 #define MC_CMD_PTP_IN_PPS_ENABLE_QUEUE_ID_LEN 4
1779 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1780 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1781 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1786 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1787 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1788 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1793 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1794 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1795 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1800 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1801 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1802 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1805 #define MC_CMD_PTP_IN_TIME_EVENT_SUBSCRIBE_QUEUE_LEN 4
1814 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1815 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1816 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1819 #define MC_CMD_PTP_IN_TIME_EVENT_UNSUBSCRIBE_CONTROL_LEN 4
1826 #define MC_CMD_PTP_IN_TIME_EVENT_UNSUBSCRIBE_QUEUE_LEN 4
1831 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1832 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1833 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1836 #define MC_CMD_PTP_IN_MANFTEST_PPS_TEST_ENABLE_LEN 4
1841 /* MC_CMD_PTP_IN_CMD_LEN 4 */
1842 /* MC_CMD_PTP_IN_PERIPH_ID_OFST 4 */
1843 /* MC_CMD_PTP_IN_PERIPH_ID_LEN 4 */
1844 /* NIC - Host System Clock Synchronization status */
1846 #define MC_CMD_PTP_IN_SET_SYNC_STATUS_STATUS_LEN 4
1855 #define MC_CMD_PTP_IN_SET_SYNC_STATUS_TIMEOUT_LEN 4
1857 #define MC_CMD_PTP_IN_SET_SYNC_STATUS_RESERVED0_LEN 4
1859 #define MC_CMD_PTP_IN_SET_SYNC_STATUS_RESERVED1_LEN 4
1868 #define MC_CMD_PTP_OUT_TRANSMIT_SECONDS_LEN 4
1871 #define MC_CMD_PTP_OUT_TRANSMIT_MAJOR_LEN 4
1873 #define MC_CMD_PTP_OUT_TRANSMIT_NANOSECONDS_OFST 4
1874 #define MC_CMD_PTP_OUT_TRANSMIT_NANOSECONDS_LEN 4
1876 #define MC_CMD_PTP_OUT_TRANSMIT_MINOR_OFST 4
1877 #define MC_CMD_PTP_OUT_TRANSMIT_MINOR_LEN 4
1889 #define MC_CMD_PTP_OUT_READ_NIC_TIME_SECONDS_LEN 4
1892 #define MC_CMD_PTP_OUT_READ_NIC_TIME_MAJOR_LEN 4
1894 #define MC_CMD_PTP_OUT_READ_NIC_TIME_NANOSECONDS_OFST 4
1895 #define MC_CMD_PTP_OUT_READ_NIC_TIME_NANOSECONDS_LEN 4
1897 #define MC_CMD_PTP_OUT_READ_NIC_TIME_MINOR_OFST 4
1898 #define MC_CMD_PTP_OUT_READ_NIC_TIME_MINOR_LEN 4
1904 #define MC_CMD_PTP_OUT_READ_NIC_TIME_V2_SECONDS_LEN 4
1907 #define MC_CMD_PTP_OUT_READ_NIC_TIME_V2_MAJOR_LEN 4
1909 #define MC_CMD_PTP_OUT_READ_NIC_TIME_V2_NANOSECONDS_OFST 4
1910 #define MC_CMD_PTP_OUT_READ_NIC_TIME_V2_NANOSECONDS_LEN 4
1912 #define MC_CMD_PTP_OUT_READ_NIC_TIME_V2_MINOR_OFST 4
1913 #define MC_CMD_PTP_OUT_READ_NIC_TIME_V2_MINOR_LEN 4
1916 #define MC_CMD_PTP_OUT_READ_NIC_TIME_V2_MAJOR_HI_LEN 4
1922 #define MC_CMD_PTP_OUT_STATUS_CLOCK_FREQ_LEN 4
1924 #define MC_CMD_PTP_OUT_STATUS_STATS_TX_OFST 4
1925 #define MC_CMD_PTP_OUT_STATUS_STATS_TX_LEN 4
1928 #define MC_CMD_PTP_OUT_STATUS_STATS_RX_LEN 4
1931 #define MC_CMD_PTP_OUT_STATUS_STATS_TS_LEN 4
1934 #define MC_CMD_PTP_OUT_STATUS_STATS_FM_LEN 4
1937 #define MC_CMD_PTP_OUT_STATUS_STATS_NFM_LEN 4
1940 #define MC_CMD_PTP_OUT_STATUS_STATS_PPS_OFLOW_LEN 4
1943 #define MC_CMD_PTP_OUT_STATUS_STATS_PPS_BAD_LEN 4
1946 #define MC_CMD_PTP_OUT_STATUS_STATS_PPS_PER_MIN_LEN 4
1949 #define MC_CMD_PTP_OUT_STATUS_STATS_PPS_PER_MAX_LEN 4
1952 #define MC_CMD_PTP_OUT_STATUS_STATS_PPS_PER_LAST_LEN 4
1955 #define MC_CMD_PTP_OUT_STATUS_STATS_PPS_PER_MEAN_LEN 4
1958 #define MC_CMD_PTP_OUT_STATUS_STATS_PPS_OFF_MIN_LEN 4
1961 #define MC_CMD_PTP_OUT_STATUS_STATS_PPS_OFF_MAX_LEN 4
1964 #define MC_CMD_PTP_OUT_STATUS_STATS_PPS_OFF_LAST_LEN 4
1967 #define MC_CMD_PTP_OUT_STATUS_STATS_PPS_OFF_MEAN_LEN 4
1980 #define MC_CMD_PTP_OUT_SYNCHRONIZE_HOSTSTART_LEN 4
1982 #define MC_CMD_PTP_OUT_SYNCHRONIZE_SECONDS_OFST 4
1983 #define MC_CMD_PTP_OUT_SYNCHRONIZE_SECONDS_LEN 4
1985 #define MC_CMD_PTP_OUT_SYNCHRONIZE_MAJOR_OFST 4
1986 #define MC_CMD_PTP_OUT_SYNCHRONIZE_MAJOR_LEN 4
1989 #define MC_CMD_PTP_OUT_SYNCHRONIZE_NANOSECONDS_LEN 4
1992 #define MC_CMD_PTP_OUT_SYNCHRONIZE_MINOR_LEN 4
1995 #define MC_CMD_PTP_OUT_SYNCHRONIZE_HOSTEND_LEN 4
1998 #define MC_CMD_PTP_OUT_SYNCHRONIZE_WAITNS_LEN 4
2004 #define MC_CMD_PTP_OUT_MANFTEST_BASIC_TEST_RESULT_LEN 4
2036 #define MC_CMD_PTP_OUT_MANFTEST_BASIC_TEST_EXTOSC_OFST 4
2037 #define MC_CMD_PTP_OUT_MANFTEST_BASIC_TEST_EXTOSC_LEN 4
2043 #define MC_CMD_PTP_OUT_MANFTEST_PACKET_TEST_RESULT_LEN 4
2045 #define MC_CMD_PTP_OUT_MANFTEST_PACKET_TEST_FPGACOUNT_OFST 4
2046 #define MC_CMD_PTP_OUT_MANFTEST_PACKET_TEST_FPGACOUNT_LEN 4
2049 #define MC_CMD_PTP_OUT_MANFTEST_PACKET_TEST_FILTERCOUNT_LEN 4
2061 #define MC_CMD_PTP_OUT_GET_TIME_FORMAT_LEN 4
2065 * be assumed. Note this enum is deprecated. Do not add to it- use the
2069 #define MC_CMD_PTP_OUT_GET_TIME_FORMAT_FORMAT_LEN 4
2074 /* enum: Major register has units of seconds, minor 2^-27s per tick */
2085 #define MC_CMD_PTP_OUT_GET_ATTRIBUTES_TIME_FORMAT_LEN 4
2090 /* enum: Major register has units of seconds, minor 2^-27s per tick */
2102 #define MC_CMD_PTP_OUT_GET_ATTRIBUTES_SYNC_WINDOW_MIN_OFST 4
2103 #define MC_CMD_PTP_OUT_GET_ATTRIBUTES_SYNC_WINDOW_MIN_LEN 4
2106 #define MC_CMD_PTP_OUT_GET_ATTRIBUTES_CAPABILITIES_LEN 4
2116 #define MC_CMD_PTP_OUT_GET_ATTRIBUTES_RESERVED0_LEN 4
2118 #define MC_CMD_PTP_OUT_GET_ATTRIBUTES_RESERVED1_LEN 4
2120 #define MC_CMD_PTP_OUT_GET_ATTRIBUTES_RESERVED2_LEN 4
2126 #define MC_CMD_PTP_OUT_GET_TIMESTAMP_CORRECTIONS_TRANSMIT_LEN 4
2128 #define MC_CMD_PTP_OUT_GET_TIMESTAMP_CORRECTIONS_RECEIVE_OFST 4
2129 #define MC_CMD_PTP_OUT_GET_TIMESTAMP_CORRECTIONS_RECEIVE_LEN 4
2132 #define MC_CMD_PTP_OUT_GET_TIMESTAMP_CORRECTIONS_PPS_OUT_LEN 4
2135 #define MC_CMD_PTP_OUT_GET_TIMESTAMP_CORRECTIONS_PPS_IN_LEN 4
2141 #define MC_CMD_PTP_OUT_GET_TIMESTAMP_CORRECTIONS_V2_PTP_TX_LEN 4
2143 #define MC_CMD_PTP_OUT_GET_TIMESTAMP_CORRECTIONS_V2_PTP_RX_OFST 4
2144 #define MC_CMD_PTP_OUT_GET_TIMESTAMP_CORRECTIONS_V2_PTP_RX_LEN 4
2147 #define MC_CMD_PTP_OUT_GET_TIMESTAMP_CORRECTIONS_V2_PPS_OUT_LEN 4
2150 #define MC_CMD_PTP_OUT_GET_TIMESTAMP_CORRECTIONS_V2_PPS_IN_LEN 4
2151 /* Uncorrected error on non-PTP transmit timestamps in NIC clock format */
2153 #define MC_CMD_PTP_OUT_GET_TIMESTAMP_CORRECTIONS_V2_GENERAL_TX_LEN 4
2154 /* Uncorrected error on non-PTP receive timestamps in NIC clock format */
2156 #define MC_CMD_PTP_OUT_GET_TIMESTAMP_CORRECTIONS_V2_GENERAL_RX_LEN 4
2159 #define MC_CMD_PTP_OUT_MANFTEST_PPS_LEN 4
2162 #define MC_CMD_PTP_OUT_MANFTEST_PPS_TEST_RESULT_LEN 4
2182 #define MC_CMD_CSR_READ32_IN_ADDR_LEN 4
2183 #define MC_CMD_CSR_READ32_IN_STEP_OFST 4
2184 #define MC_CMD_CSR_READ32_IN_STEP_LEN 4
2186 #define MC_CMD_CSR_READ32_IN_NUMWORDS_LEN 4
2189 #define MC_CMD_CSR_READ32_OUT_LENMIN 4
2191 #define MC_CMD_CSR_READ32_OUT_LEN(num) (0+4*(num))
2194 #define MC_CMD_CSR_READ32_OUT_BUFFER_LEN 4
2210 #define MC_CMD_CSR_WRITE32_IN_LEN(num) (8+4*(num))
2213 #define MC_CMD_CSR_WRITE32_IN_ADDR_LEN 4
2214 #define MC_CMD_CSR_WRITE32_IN_STEP_OFST 4
2215 #define MC_CMD_CSR_WRITE32_IN_STEP_LEN 4
2217 #define MC_CMD_CSR_WRITE32_IN_BUFFER_LEN 4
2222 #define MC_CMD_CSR_WRITE32_OUT_LEN 4
2224 #define MC_CMD_CSR_WRITE32_OUT_STATUS_LEN 4
2238 /* HP OCSD sub-command. When address is not NULL, request activation of OCSD at
2245 #define MC_CMD_HP_IN_SUBCMD_LEN 4
2246 /* enum: OCSD (Option Card Sensor Data) sub-command. */
2248 /* enum: Last known valid HP sub-command. */
2250 /* The address to the array of sensor fields. (Or NULL to use a sub-command.)
2252 #define MC_CMD_HP_IN_OCSD_ADDR_OFST 4
2254 #define MC_CMD_HP_IN_OCSD_ADDR_LO_OFST 4
2256 /* The requested update interval, in seconds. (Or the sub-command if ADDR is
2260 #define MC_CMD_HP_IN_OCSD_INTERVAL_LEN 4
2263 #define MC_CMD_HP_OUT_LEN 4
2265 #define MC_CMD_HP_OUT_OCSD_STATUS_LEN 4
2310 #define MC_CMD_MDIO_READ_IN_BUS_LEN 4
2316 #define MC_CMD_MDIO_READ_IN_PRTAD_OFST 4
2317 #define MC_CMD_MDIO_READ_IN_PRTAD_LEN 4
2320 #define MC_CMD_MDIO_READ_IN_DEVAD_LEN 4
2327 #define MC_CMD_MDIO_READ_IN_ADDR_LEN 4
2333 #define MC_CMD_MDIO_READ_OUT_VALUE_LEN 4
2337 #define MC_CMD_MDIO_READ_OUT_STATUS_OFST 4
2338 #define MC_CMD_MDIO_READ_OUT_STATUS_LEN 4
2357 #define MC_CMD_MDIO_WRITE_IN_BUS_LEN 4
2363 #define MC_CMD_MDIO_WRITE_IN_PRTAD_OFST 4
2364 #define MC_CMD_MDIO_WRITE_IN_PRTAD_LEN 4
2367 #define MC_CMD_MDIO_WRITE_IN_DEVAD_LEN 4
2374 #define MC_CMD_MDIO_WRITE_IN_ADDR_LEN 4
2377 #define MC_CMD_MDIO_WRITE_IN_VALUE_LEN 4
2380 #define MC_CMD_MDIO_WRITE_OUT_LEN 4
2385 #define MC_CMD_MDIO_WRITE_OUT_STATUS_LEN 4
2416 #define MC_CMD_DBIWROP_TYPEDEF_ADDRESS_LEN 4
2419 #define MC_CMD_DBIWROP_TYPEDEF_PARMS_OFST 4
2420 #define MC_CMD_DBIWROP_TYPEDEF_PARMS_LEN 4
2430 #define MC_CMD_DBIWROP_TYPEDEF_VALUE_LEN 4
2436 * Read a 32-bit register from the indirect port register map. The port to
2442 #define MC_CMD_PORT_READ32_IN_LEN 4
2445 #define MC_CMD_PORT_READ32_IN_ADDR_LEN 4
2451 #define MC_CMD_PORT_READ32_OUT_VALUE_LEN 4
2453 #define MC_CMD_PORT_READ32_OUT_STATUS_OFST 4
2454 #define MC_CMD_PORT_READ32_OUT_STATUS_LEN 4
2458 * Write a 32-bit register to the indirect port register map. The port to
2467 #define MC_CMD_PORT_WRITE32_IN_ADDR_LEN 4
2469 #define MC_CMD_PORT_WRITE32_IN_VALUE_OFST 4
2470 #define MC_CMD_PORT_WRITE32_IN_VALUE_LEN 4
2473 #define MC_CMD_PORT_WRITE32_OUT_LEN 4
2476 #define MC_CMD_PORT_WRITE32_OUT_STATUS_LEN 4
2480 * Read a 128-bit register from the indirect port register map. The port to
2486 #define MC_CMD_PORT_READ128_IN_LEN 4
2489 #define MC_CMD_PORT_READ128_IN_ADDR_LEN 4
2498 #define MC_CMD_PORT_READ128_OUT_STATUS_LEN 4
2502 * Write a 128-bit register to the indirect port register map. The port to
2511 #define MC_CMD_PORT_WRITE128_IN_ADDR_LEN 4
2513 #define MC_CMD_PORT_WRITE128_IN_VALUE_OFST 4
2517 #define MC_CMD_PORT_WRITE128_OUT_LEN 4
2520 #define MC_CMD_PORT_WRITE128_OUT_STATUS_LEN 4
2523 #define MC_CMD_CAPABILITIES_LEN 4
2537 #define MC_CMD_CAPABILITIES_AOE_LBN 4
2565 #define MC_CMD_GET_BOARD_CFG_OUT_BOARD_TYPE_LEN 4
2566 #define MC_CMD_GET_BOARD_CFG_OUT_BOARD_NAME_OFST 4
2572 #define MC_CMD_GET_BOARD_CFG_OUT_CAPABILITIES_PORT0_LEN 4
2577 #define MC_CMD_GET_BOARD_CFG_OUT_CAPABILITIES_PORT1_LEN 4
2592 #define MC_CMD_GET_BOARD_CFG_OUT_MAC_COUNT_PORT0_LEN 4
2597 #define MC_CMD_GET_BOARD_CFG_OUT_MAC_COUNT_PORT1_LEN 4
2602 #define MC_CMD_GET_BOARD_CFG_OUT_MAC_STRIDE_PORT0_LEN 4
2607 #define MC_CMD_GET_BOARD_CFG_OUT_MAC_STRIDE_PORT1_LEN 4
2608 /* Siena only. This field contains a 16-bit value for each of the types of
2621 * Read DBI register(s) -- extended functionality
2636 #define MC_CMD_DBI_READX_IN_DBIRDOP_HI_OFST 4
2641 #define MC_CMD_DBI_READX_OUT_LENMIN 4
2643 #define MC_CMD_DBI_READX_OUT_LEN(num) (0+4*(num))
2646 #define MC_CMD_DBI_READX_OUT_VALUE_LEN 4
2653 #define MC_CMD_DBIRDOP_TYPEDEF_ADDRESS_LEN 4
2656 #define MC_CMD_DBIRDOP_TYPEDEF_PARMS_OFST 4
2657 #define MC_CMD_DBIRDOP_TYPEDEF_PARMS_LEN 4
2669 * Set the 16byte seed for the MC pseudo-random generator.
2697 #define MC_CMD_LTSSM_HIST_OUT_LEN(num) (0+4*(num))
2698 /* variable number of LTSSM values, as bytes. The history is read-to-clear. */
2700 #define MC_CMD_LTSSM_HIST_OUT_DATA_LEN 4
2722 #define MC_CMD_DRV_ATTACH_IN_NEW_STATE_LEN 4
2736 #define MC_CMD_DRV_ATTACH_IN_UPDATE_OFST 4
2737 #define MC_CMD_DRV_ATTACH_IN_UPDATE_LEN 4
2740 #define MC_CMD_DRV_ATTACH_IN_FIRMWARE_ID_LEN 4
2759 /* enum: Prefer to use "l3xudp" custom datapath firmware (see SF-119495-PD and
2766 * (i.e. non-production) builds.
2769 /* enum: Only this option is allowed for non-admin functions */
2773 #define MC_CMD_DRV_ATTACH_OUT_LEN 4
2776 #define MC_CMD_DRV_ATTACH_OUT_OLD_STATE_LEN 4
2782 #define MC_CMD_DRV_ATTACH_EXT_OUT_OLD_STATE_LEN 4
2784 #define MC_CMD_DRV_ATTACH_EXT_OUT_FUNC_FLAGS_OFST 4
2785 #define MC_CMD_DRV_ATTACH_EXT_OUT_FUNC_FLAGS_LEN 4
2786 /* enum: Labels the lowest-numbered function visible to the OS */
2811 #define MC_CMD_SHMUART_IN_LEN 4
2814 #define MC_CMD_SHMUART_IN_FLAG_LEN 4
2821 * Generic per-port reset. There is no equivalent for per-board reset. Locks
2822 * required: None; Return code: 0, ETIME. NOTE: This command is deprecated -
2838 * Generic per-resource reset. There is no equivalent for per-board reset.
2846 #define MC_CMD_ENTITY_RESET_IN_LEN 4
2851 #define MC_CMD_ENTITY_RESET_IN_FLAG_LEN 4
2868 #define MC_CMD_PCIE_CREDITS_IN_POLL_PERIOD_LEN 4
2870 #define MC_CMD_PCIE_CREDITS_IN_WIPE_OFST 4
2871 #define MC_CMD_PCIE_CREDITS_IN_WIPE_LEN 4
2879 #define MC_CMD_PCIE_CREDITS_OUT_CURRENT_NP_HDR_OFST 4
2901 #define MC_CMD_RXD_MONITOR_IN_QID_LEN 4
2902 #define MC_CMD_RXD_MONITOR_IN_POLL_PERIOD_OFST 4
2903 #define MC_CMD_RXD_MONITOR_IN_POLL_PERIOD_LEN 4
2905 #define MC_CMD_RXD_MONITOR_IN_WIPE_LEN 4
2910 #define MC_CMD_RXD_MONITOR_OUT_QID_LEN 4
2911 #define MC_CMD_RXD_MONITOR_OUT_RING_FILL_OFST 4
2912 #define MC_CMD_RXD_MONITOR_OUT_RING_FILL_LEN 4
2914 #define MC_CMD_RXD_MONITOR_OUT_CACHE_FILL_LEN 4
2916 #define MC_CMD_RXD_MONITOR_OUT_RING_LT_1_LEN 4
2918 #define MC_CMD_RXD_MONITOR_OUT_RING_LT_2_LEN 4
2920 #define MC_CMD_RXD_MONITOR_OUT_RING_LT_4_LEN 4
2922 #define MC_CMD_RXD_MONITOR_OUT_RING_LT_8_LEN 4
2924 #define MC_CMD_RXD_MONITOR_OUT_RING_LT_16_LEN 4
2926 #define MC_CMD_RXD_MONITOR_OUT_RING_LT_32_LEN 4
2928 #define MC_CMD_RXD_MONITOR_OUT_RING_LT_64_LEN 4
2930 #define MC_CMD_RXD_MONITOR_OUT_RING_LT_128_LEN 4
2932 #define MC_CMD_RXD_MONITOR_OUT_RING_LT_256_LEN 4
2934 #define MC_CMD_RXD_MONITOR_OUT_RING_GE_256_LEN 4
2936 #define MC_CMD_RXD_MONITOR_OUT_CACHE_LT_1_LEN 4
2938 #define MC_CMD_RXD_MONITOR_OUT_CACHE_LT_2_LEN 4
2940 #define MC_CMD_RXD_MONITOR_OUT_CACHE_LT_4_LEN 4
2942 #define MC_CMD_RXD_MONITOR_OUT_CACHE_LT_8_LEN 4
2944 #define MC_CMD_RXD_MONITOR_OUT_CACHE_LT_16_LEN 4
2946 #define MC_CMD_RXD_MONITOR_OUT_CACHE_LT_32_LEN 4
2948 #define MC_CMD_RXD_MONITOR_OUT_CACHE_GE_32_LEN 4
2964 #define MC_CMD_PUTS_IN_DEST_LEN 4
2969 #define MC_CMD_PUTS_IN_DHOST_OFST 4
2996 #define MC_CMD_GET_PHY_CFG_OUT_FLAGS_LEN 4
3005 #define MC_CMD_GET_PHY_CFG_OUT_POWEROFF_LBN 4
3012 #define MC_CMD_GET_PHY_CFG_OUT_TYPE_OFST 4
3013 #define MC_CMD_GET_PHY_CFG_OUT_TYPE_LEN 4
3016 #define MC_CMD_GET_PHY_CFG_OUT_SUPPORTED_CAP_LEN 4
3023 #define MC_CMD_PHY_CAP_100FDX_LBN 4
3061 #define MC_CMD_GET_PHY_CFG_OUT_CHANNEL_LEN 4
3064 #define MC_CMD_GET_PHY_CFG_OUT_PRT_LEN 4
3067 #define MC_CMD_GET_PHY_CFG_OUT_STATS_MASK_LEN 4
3073 #define MC_CMD_GET_PHY_CFG_OUT_MEDIA_TYPE_LEN 4
3089 #define MC_CMD_GET_PHY_CFG_OUT_MMD_MASK_LEN 4
3117 #define MC_CMD_START_BIST_IN_LEN 4
3120 #define MC_CMD_START_BIST_IN_TYPE_LEN 4
3162 #define MC_CMD_POLL_BIST_OUT_RESULT_LEN 4
3169 /* enum: Timed-out. */
3171 #define MC_CMD_POLL_BIST_OUT_PRIVATE_OFST 4
3172 #define MC_CMD_POLL_BIST_OUT_PRIVATE_LEN 4
3178 /* MC_CMD_POLL_BIST_OUT_RESULT_LEN 4 */
3181 #define MC_CMD_POLL_BIST_OUT_SFT9001_CABLE_LENGTH_A_OFST 4
3182 #define MC_CMD_POLL_BIST_OUT_SFT9001_CABLE_LENGTH_A_LEN 4
3184 #define MC_CMD_POLL_BIST_OUT_SFT9001_CABLE_LENGTH_B_LEN 4
3186 #define MC_CMD_POLL_BIST_OUT_SFT9001_CABLE_LENGTH_C_LEN 4
3188 #define MC_CMD_POLL_BIST_OUT_SFT9001_CABLE_LENGTH_D_LEN 4
3191 #define MC_CMD_POLL_BIST_OUT_SFT9001_CABLE_STATUS_A_LEN 4
3196 /* enum: Intra-pair short. */
3198 /* enum: Inter-pair short. */
3204 #define MC_CMD_POLL_BIST_OUT_SFT9001_CABLE_STATUS_B_LEN 4
3209 #define MC_CMD_POLL_BIST_OUT_SFT9001_CABLE_STATUS_C_LEN 4
3214 #define MC_CMD_POLL_BIST_OUT_SFT9001_CABLE_STATUS_D_LEN 4
3222 /* MC_CMD_POLL_BIST_OUT_RESULT_LEN 4 */
3225 #define MC_CMD_POLL_BIST_OUT_MRSFP_TEST_OFST 4
3226 #define MC_CMD_POLL_BIST_OUT_MRSFP_TEST_LEN 4
3250 /* MC_CMD_POLL_BIST_OUT_RESULT_LEN 4 */
3253 #define MC_CMD_POLL_BIST_OUT_MEM_TEST_OFST 4
3254 #define MC_CMD_POLL_BIST_OUT_MEM_TEST_LEN 4
3257 /* enum: RAM test - walk ones. */
3259 /* enum: RAM test - walk zeros. */
3261 /* enum: RAM test - walking inversions zeros/ones. */
3263 /* enum: RAM test - walking inversions checkerboard. */
3265 /* enum: Register test - set / clear individual bits. */
3271 #define MC_CMD_POLL_BIST_OUT_MEM_ADDR_LEN 4
3274 #define MC_CMD_POLL_BIST_OUT_MEM_BUS_LEN 4
3295 #define MC_CMD_POLL_BIST_OUT_MEM_EXPECT_LEN 4
3298 #define MC_CMD_POLL_BIST_OUT_MEM_ACTUAL_LEN 4
3301 #define MC_CMD_POLL_BIST_OUT_MEM_ECC_LEN 4
3304 #define MC_CMD_POLL_BIST_OUT_MEM_ECC_PARITY_LEN 4
3307 #define MC_CMD_POLL_BIST_OUT_MEM_ECC_FATAL_LEN 4
3321 #define MC_CMD_FLUSH_RX_QUEUES_IN_LENMIN 4
3323 #define MC_CMD_FLUSH_RX_QUEUES_IN_LEN(num) (0+4*(num))
3325 #define MC_CMD_FLUSH_RX_QUEUES_IN_QID_OFST_LEN 4
3350 #define MC_CMD_GET_LOOPBACK_MODES_OUT_100M_HI_OFST 4
3385 /* enum: PMA-PMD. */
3387 /* enum: Cross-Port. */
3389 /* enum: XGMII-Wireside. */
3405 /* enum: PMA lanes MAC-Serdes. */
3411 /* enum: PMA lanes MAC-Serdes Wireside. */
3466 #define MC_CMD_GET_LOOPBACK_MODES_OUT_V2_100M_HI_OFST 4
3501 /* enum: PMA-PMD. */
3503 /* enum: Cross-Port. */
3505 /* enum: XGMII-Wireside. */
3521 /* enum: PMA lanes MAC-Serdes. */
3527 /* enum: PMA lanes MAC-Serdes Wireside. */
3595 /* AN_TYPE structuredef: Auto-negotiation types defined in IEEE802.3 */
3596 #define AN_TYPE_LEN 4
3598 #define AN_TYPE_TYPE_LEN 4
3601 /* enum: Clause 28 - BASE-T */
3603 /* enum: Clause 37 - BASE-X */
3605 /* enum: Clause 73 - BASE-R startup protocol for backplane and copper cable
3606 * assemblies. Includes Clause 72/Clause 92 link-training.
3614 #define FEC_TYPE_LEN 4
3616 #define FEC_TYPE_TYPE_LEN 4
3619 /* enum: Clause 74 BASE-R FEC (a.k.a Firecode) */
3621 /* enum: Clause 91/Clause 108 Reed-Solomon FEC */
3641 /* Near-side advertised capabilities. Refer to
3645 #define MC_CMD_GET_LINK_OUT_CAP_LEN 4
3646 /* Link-partner advertised capabilities. Refer to
3649 #define MC_CMD_GET_LINK_OUT_LP_CAP_OFST 4
3650 #define MC_CMD_GET_LINK_OUT_LP_CAP_LEN 4
3652 * reads non-zero.
3655 #define MC_CMD_GET_LINK_OUT_LINK_SPEED_LEN 4
3658 #define MC_CMD_GET_LINK_OUT_LOOPBACK_MODE_LEN 4
3662 #define MC_CMD_GET_LINK_OUT_FLAGS_LEN 4
3677 #define MC_CMD_GET_LINK_OUT_FCNTL_LEN 4
3681 #define MC_CMD_GET_LINK_OUT_MAC_FAULT_LEN 4
3693 /* Near-side advertised capabilities. Refer to
3697 #define MC_CMD_GET_LINK_OUT_V2_CAP_LEN 4
3698 /* Link-partner advertised capabilities. Refer to
3701 #define MC_CMD_GET_LINK_OUT_V2_LP_CAP_OFST 4
3702 #define MC_CMD_GET_LINK_OUT_V2_LP_CAP_LEN 4
3704 * reads non-zero.
3707 #define MC_CMD_GET_LINK_OUT_V2_LINK_SPEED_LEN 4
3710 #define MC_CMD_GET_LINK_OUT_V2_LOOPBACK_MODE_LEN 4
3714 #define MC_CMD_GET_LINK_OUT_V2_FLAGS_LEN 4
3729 #define MC_CMD_GET_LINK_OUT_V2_FCNTL_LEN 4
3733 #define MC_CMD_GET_LINK_OUT_V2_MAC_FAULT_LEN 4
3743 * e.g. plugged-in module). In general, subset of
3746 * to SUPPORTED_CAP for non-pluggable PMDs. Refer to
3750 #define MC_CMD_GET_LINK_OUT_V2_LD_CAP_LEN 4
3751 /* Auto-negotiation type used on the link */
3753 #define MC_CMD_GET_LINK_OUT_V2_AN_TYPE_LEN 4
3758 #define MC_CMD_GET_LINK_OUT_V2_FEC_TYPE_LEN 4
3762 #define MC_CMD_GET_LINK_OUT_V2_EXT_FLAGS_LEN 4
3771 #define MC_CMD_GET_LINK_OUT_V2_PCS_LOCK_LBN 4
3794 /* Near-side advertised capabilities. Refer to
3798 #define MC_CMD_SET_LINK_IN_CAP_LEN 4
3800 #define MC_CMD_SET_LINK_IN_FLAGS_OFST 4
3801 #define MC_CMD_SET_LINK_IN_FLAGS_LEN 4
3810 #define MC_CMD_SET_LINK_IN_LOOPBACK_MODE_LEN 4
3817 #define MC_CMD_SET_LINK_IN_LOOPBACK_SPEED_LEN 4
3832 #define MC_CMD_SET_ID_LED_IN_LEN 4
3835 #define MC_CMD_SET_ID_LED_IN_STATE_LEN 4
3858 #define MC_CMD_SET_MAC_IN_MTU_LEN 4
3859 #define MC_CMD_SET_MAC_IN_DRAIN_OFST 4
3860 #define MC_CMD_SET_MAC_IN_DRAIN_LEN 4
3866 #define MC_CMD_SET_MAC_IN_REJECT_LEN 4
3872 #define MC_CMD_SET_MAC_IN_FCNTL_LEN 4
3886 #define MC_CMD_SET_MAC_IN_FLAGS_LEN 4
3896 #define MC_CMD_SET_MAC_EXT_IN_MTU_LEN 4
3897 #define MC_CMD_SET_MAC_EXT_IN_DRAIN_OFST 4
3898 #define MC_CMD_SET_MAC_EXT_IN_DRAIN_LEN 4
3904 #define MC_CMD_SET_MAC_EXT_IN_REJECT_LEN 4
3910 #define MC_CMD_SET_MAC_EXT_IN_FCNTL_LEN 4
3924 #define MC_CMD_SET_MAC_EXT_IN_FLAGS_LEN 4
3933 #define MC_CMD_SET_MAC_EXT_IN_CONTROL_LEN 4
3942 #define MC_CMD_SET_MAC_EXT_IN_CFG_FCS_LBN 4
3949 #define MC_CMD_SET_MAC_V2_OUT_LEN 4
3955 #define MC_CMD_SET_MAC_V2_OUT_MTU_LEN 4
3963 * statistics are dmad to that (page-aligned location). Locks required: None.
3977 #define MC_CMD_PHY_STATS_IN_DMA_ADDR_HI_OFST 4
3985 #define MC_CMD_PHY_STATS_OUT_NO_DMA_STATISTICS_LEN 4
3989 /* enum: PMA-PMD Link Up. */
3991 /* enum: PMA-PMD RX Fault. */
3993 /* enum: PMA-PMD TX Fault. */
3995 /* enum: PMA-PMD Signal */
3997 /* enum: PMA-PMD SNR A. */
3999 /* enum: PMA-PMD SNR B. */
4001 /* enum: PMA-PMD SNR C. */
4003 /* enum: PMA-PMD SNR D. */
4025 /* enum: AN link-up. */
4031 /* enum: Clause 22 Link-Up. */
4043 * DMA_ADDR != 0, then the statistics are dmad to that (page-aligned location).
4058 #define MC_CMD_MAC_STATS_IN_DMA_ADDR_HI_OFST 4
4060 #define MC_CMD_MAC_STATS_IN_CMD_LEN 4
4069 #define MC_CMD_MAC_STATS_IN_PERIODIC_CLEAR_LBN 4
4081 #define MC_CMD_MAC_STATS_IN_DMA_LEN_LEN 4
4084 #define MC_CMD_MAC_STATS_IN_PORT_ID_LEN 4
4094 #define MC_CMD_MAC_STATS_OUT_NO_DMA_STATISTICS_HI_OFST 4
4193 /* enum: RXDP counter: Number of non-host packets. Valid for EF10 with
4234 * 64-bit word of the DMA buffer (at DMA_LEN - sizeof(uint64_t)). Note that
4236 * the last 64-bit word in the buffer when DMA_LEN == MC_CMD_MAC_NSTATS *
4237 * sizeof(uint64_t). See SF-109306-TC, Section 9.2 for details.
4250 #define MC_CMD_MAC_STATS_V2_OUT_NO_DMA_STATISTICS_HI_OFST 4
4254 /* enum: Number of uncorrected FEC codewords on link (RS-FEC only for Medford2)
4257 /* enum: Number of corrected FEC codewords on link (RS-FEC only for Medford2)
4260 /* enum: Number of corrected 10-bit symbol errors, lane 0 (RS-FEC only) */
4262 /* enum: Number of corrected 10-bit symbol errors, lane 1 (RS-FEC only) */
4264 /* enum: Number of corrected 10-bit symbol errors, lane 2 (RS-FEC only) */
4266 /* enum: Number of corrected 10-bit symbol errors, lane 3 (RS-FEC only) */
4283 #define MC_CMD_MAC_STATS_V3_OUT_NO_DMA_STATISTICS_HI_OFST 4
4318 * or not 32-bit aligned
4357 #define MC_CMD_MAC_STATS_V4_OUT_NO_DMA_STATISTICS_HI_OFST 4
4389 #define MC_CMD_SRIOV_IN_ENABLE_LEN 4
4390 #define MC_CMD_SRIOV_IN_VI_BASE_OFST 4
4391 #define MC_CMD_SRIOV_IN_VI_BASE_LEN 4
4393 #define MC_CMD_SRIOV_IN_VF_COUNT_LEN 4
4398 #define MC_CMD_SRIOV_OUT_VI_SCALE_LEN 4
4399 #define MC_CMD_SRIOV_OUT_VF_TOTAL_OFST 4
4400 #define MC_CMD_SRIOV_OUT_VF_TOTAL_LEN 4
4406 #define MC_CMD_MEMCPY_RECORD_TYPEDEF_NUM_RECORDS_LEN 4
4409 #define MC_CMD_MEMCPY_RECORD_TYPEDEF_TO_RID_OFST 4
4410 #define MC_CMD_MEMCPY_RECORD_TYPEDEF_TO_RID_LEN 4
4420 #define MC_CMD_MEMCPY_RECORD_TYPEDEF_FROM_RID_LEN 4
4431 #define MC_CMD_MEMCPY_RECORD_TYPEDEF_LENGTH_LEN 4
4482 #define MC_CMD_WOL_FILTER_SET_IN_FILTER_MODE_LEN 4
4486 #define MC_CMD_WOL_FILTER_SET_IN_WOL_TYPE_OFST 4
4487 #define MC_CMD_WOL_FILTER_SET_IN_WOL_TYPE_LEN 4
4503 #define MC_CMD_WOL_FILTER_SET_IN_DATA_LEN 4
4509 /* MC_CMD_WOL_FILTER_SET_IN_FILTER_MODE_LEN 4 */
4510 /* MC_CMD_WOL_FILTER_SET_IN_WOL_TYPE_OFST 4 */
4511 /* MC_CMD_WOL_FILTER_SET_IN_WOL_TYPE_LEN 4 */
4520 /* MC_CMD_WOL_FILTER_SET_IN_FILTER_MODE_LEN 4 */
4521 /* MC_CMD_WOL_FILTER_SET_IN_WOL_TYPE_OFST 4 */
4522 /* MC_CMD_WOL_FILTER_SET_IN_WOL_TYPE_LEN 4 */
4524 #define MC_CMD_WOL_FILTER_SET_IN_IPV4_SYN_SRC_IP_LEN 4
4526 #define MC_CMD_WOL_FILTER_SET_IN_IPV4_SYN_DST_IP_LEN 4
4535 /* MC_CMD_WOL_FILTER_SET_IN_FILTER_MODE_LEN 4 */
4536 /* MC_CMD_WOL_FILTER_SET_IN_WOL_TYPE_OFST 4 */
4537 /* MC_CMD_WOL_FILTER_SET_IN_WOL_TYPE_LEN 4 */
4550 /* MC_CMD_WOL_FILTER_SET_IN_FILTER_MODE_LEN 4 */
4551 /* MC_CMD_WOL_FILTER_SET_IN_WOL_TYPE_OFST 4 */
4552 /* MC_CMD_WOL_FILTER_SET_IN_WOL_TYPE_LEN 4 */
4567 /* MC_CMD_WOL_FILTER_SET_IN_FILTER_MODE_LEN 4 */
4568 /* MC_CMD_WOL_FILTER_SET_IN_WOL_TYPE_OFST 4 */
4569 /* MC_CMD_WOL_FILTER_SET_IN_WOL_TYPE_LEN 4 */
4571 #define MC_CMD_WOL_FILTER_SET_IN_LINK_MASK_LEN 4
4578 #define MC_CMD_WOL_FILTER_SET_OUT_LEN 4
4580 #define MC_CMD_WOL_FILTER_SET_OUT_FILTER_ID_LEN 4
4592 #define MC_CMD_WOL_FILTER_REMOVE_IN_LEN 4
4594 #define MC_CMD_WOL_FILTER_REMOVE_IN_FILTER_ID_LEN 4
4610 #define MC_CMD_WOL_FILTER_RESET_IN_LEN 4
4612 #define MC_CMD_WOL_FILTER_RESET_IN_MASK_LEN 4
4649 #define MC_CMD_NVRAM_TYPES_OUT_LEN 4
4652 #define MC_CMD_NVRAM_TYPES_OUT_TYPES_LEN 4
4707 #define MC_CMD_NVRAM_INFO_IN_LEN 4
4709 #define MC_CMD_NVRAM_INFO_IN_TYPE_LEN 4
4716 #define MC_CMD_NVRAM_INFO_OUT_TYPE_LEN 4
4719 #define MC_CMD_NVRAM_INFO_OUT_SIZE_OFST 4
4720 #define MC_CMD_NVRAM_INFO_OUT_SIZE_LEN 4
4722 #define MC_CMD_NVRAM_INFO_OUT_ERASESIZE_LEN 4
4724 #define MC_CMD_NVRAM_INFO_OUT_FLAGS_LEN 4
4738 #define MC_CMD_NVRAM_INFO_OUT_PHYSDEV_LEN 4
4740 #define MC_CMD_NVRAM_INFO_OUT_PHYSADDR_LEN 4
4745 #define MC_CMD_NVRAM_INFO_V2_OUT_TYPE_LEN 4
4748 #define MC_CMD_NVRAM_INFO_V2_OUT_SIZE_OFST 4
4749 #define MC_CMD_NVRAM_INFO_V2_OUT_SIZE_LEN 4
4751 #define MC_CMD_NVRAM_INFO_V2_OUT_ERASESIZE_LEN 4
4753 #define MC_CMD_NVRAM_INFO_V2_OUT_FLAGS_LEN 4
4765 #define MC_CMD_NVRAM_INFO_V2_OUT_PHYSDEV_LEN 4
4767 #define MC_CMD_NVRAM_INFO_V2_OUT_PHYSADDR_LEN 4
4771 #define MC_CMD_NVRAM_INFO_V2_OUT_WRITESIZE_LEN 4
4791 #define MC_CMD_NVRAM_UPDATE_START_IN_LEN 4
4793 #define MC_CMD_NVRAM_UPDATE_START_IN_TYPE_LEN 4
4804 #define MC_CMD_NVRAM_UPDATE_START_V2_IN_TYPE_LEN 4
4807 #define MC_CMD_NVRAM_UPDATE_START_V2_IN_FLAGS_OFST 4
4808 #define MC_CMD_NVRAM_UPDATE_START_V2_IN_FLAGS_LEN 4
4829 #define MC_CMD_NVRAM_READ_IN_TYPE_LEN 4
4832 #define MC_CMD_NVRAM_READ_IN_OFFSET_OFST 4
4833 #define MC_CMD_NVRAM_READ_IN_OFFSET_LEN 4
4836 #define MC_CMD_NVRAM_READ_IN_LENGTH_LEN 4
4841 #define MC_CMD_NVRAM_READ_IN_V2_TYPE_LEN 4
4844 #define MC_CMD_NVRAM_READ_IN_V2_OFFSET_OFST 4
4845 #define MC_CMD_NVRAM_READ_IN_V2_OFFSET_LEN 4
4848 #define MC_CMD_NVRAM_READ_IN_V2_LENGTH_LEN 4
4852 * from. This allows it to perform a read-modify-write-verify with the write
4858 #define MC_CMD_NVRAM_READ_IN_V2_MODE_LEN 4
4868 /* enum: Read from the non-current (i.e. to be updated) partition of an A/B
4898 #define MC_CMD_NVRAM_WRITE_IN_TYPE_LEN 4
4901 #define MC_CMD_NVRAM_WRITE_IN_OFFSET_OFST 4
4902 #define MC_CMD_NVRAM_WRITE_IN_OFFSET_LEN 4
4904 #define MC_CMD_NVRAM_WRITE_IN_LENGTH_LEN 4
4927 #define MC_CMD_NVRAM_ERASE_IN_TYPE_LEN 4
4930 #define MC_CMD_NVRAM_ERASE_IN_OFFSET_OFST 4
4931 #define MC_CMD_NVRAM_ERASE_IN_OFFSET_LEN 4
4933 #define MC_CMD_NVRAM_ERASE_IN_LENGTH_LEN 4
4958 #define MC_CMD_NVRAM_UPDATE_FINISH_IN_TYPE_LEN 4
4961 #define MC_CMD_NVRAM_UPDATE_FINISH_IN_REBOOT_OFST 4
4962 #define MC_CMD_NVRAM_UPDATE_FINISH_IN_REBOOT_LEN 4
4971 #define MC_CMD_NVRAM_UPDATE_FINISH_V2_IN_TYPE_LEN 4
4974 #define MC_CMD_NVRAM_UPDATE_FINISH_V2_IN_REBOOT_OFST 4
4975 #define MC_CMD_NVRAM_UPDATE_FINISH_V2_IN_REBOOT_LEN 4
4977 #define MC_CMD_NVRAM_UPDATE_FINISH_V2_IN_FLAGS_LEN 4
4998 * per-partition nvram lock in firmware is only released after the verification
5001 #define MC_CMD_NVRAM_UPDATE_FINISH_V2_OUT_LEN 4
5004 #define MC_CMD_NVRAM_UPDATE_FINISH_V2_OUT_RESULT_CODE_LEN 4
5005 /* enum: Invalid return code; only non-zero values are defined. Defined as
5017 /* enum: Error in message digest calculated over the reflash-header, payload
5018 * and reflash-trailer.
5035 /* enum: The image contains a test-signed certificate, but the adapter accepts
5066 #define MC_CMD_REBOOT_IN_LEN 4
5068 #define MC_CMD_REBOOT_IN_FLAGS_LEN 4
5089 #define MC_CMD_SCHEDINFO_OUT_LENMIN 4
5091 #define MC_CMD_SCHEDINFO_OUT_LEN(num) (0+4*(num))
5093 #define MC_CMD_SCHEDINFO_OUT_DATA_LEN 4
5108 #define MC_CMD_REBOOT_MODE_IN_LEN 4
5110 #define MC_CMD_REBOOT_MODE_IN_VALUE_LEN 4
5113 /* enum: Power-on Reset. */
5123 #define MC_CMD_REBOOT_MODE_OUT_LEN 4
5125 #define MC_CMD_REBOOT_MODE_OUT_VALUE_LEN 4
5167 #define MC_CMD_SENSOR_INFO_EXT_IN_LEN 4
5175 #define MC_CMD_SENSOR_INFO_EXT_IN_PAGE_LEN 4
5178 #define MC_CMD_SENSOR_INFO_OUT_LENMIN 4
5180 #define MC_CMD_SENSOR_INFO_OUT_LEN(num) (4+8*(num))
5182 #define MC_CMD_SENSOR_INFO_OUT_MASK_LEN 4
5229 /* enum: Fan 4 speed: RPM */
5275 /* enum: Port 0 PHY power switch over-current: bool */
5277 /* enum: Port 1 PHY power switch over-current: bool */
5279 /* enum: Mop-up microcontroller reference voltage: mV */
5360 #define MC_CMD_SENSOR_ENTRY_OFST 4
5362 #define MC_CMD_SENSOR_ENTRY_LO_OFST 4
5368 #define MC_CMD_SENSOR_INFO_EXT_OUT_LENMIN 4
5370 #define MC_CMD_SENSOR_INFO_EXT_OUT_LEN(num) (4+8*(num))
5372 #define MC_CMD_SENSOR_INFO_EXT_OUT_MASK_LEN 4
5378 /* MC_CMD_SENSOR_ENTRY_OFST 4 */
5380 /* MC_CMD_SENSOR_ENTRY_LO_OFST 4 */
5395 #define MC_CMD_SENSOR_INFO_ENTRY_TYPEDEF_MIN2_OFST 4
5428 /* DMA address of host buffer for sensor readings (must be 4Kbyte aligned). */
5432 #define MC_CMD_READ_SENSORS_IN_DMA_ADDR_HI_OFST 4
5436 /* DMA address of host buffer for sensor readings (must be 4Kbyte aligned). */
5440 #define MC_CMD_READ_SENSORS_EXT_IN_DMA_ADDR_HI_OFST 4
5443 #define MC_CMD_READ_SENSORS_EXT_IN_LENGTH_LEN 4
5452 #define MC_CMD_SENSOR_VALUE_ENTRY_TYPEDEF_LEN 4
5495 #define MC_CMD_GET_PHY_STATE_OUT_LEN 4
5497 #define MC_CMD_GET_PHY_STATE_OUT_STATE_LEN 4
5505 * 802.1Qbb control. 8 Tx queues that map to priorities 0 - 7. Use all 1s to
5531 #define MC_CMD_WOL_FILTER_GET_OUT_LEN 4
5533 #define MC_CMD_WOL_FILTER_GET_OUT_FILTER_ID_LEN 4
5537 * Add a protocol offload to NIC for lights-out state. Locks required: None.
5548 #define MC_CMD_ADD_LIGHTSOUT_OFFLOAD_IN_LEN(num) (4+4*(num))
5550 #define MC_CMD_ADD_LIGHTSOUT_OFFLOAD_IN_PROTOCOL_LEN 4
5553 #define MC_CMD_ADD_LIGHTSOUT_OFFLOAD_IN_DATA_OFST 4
5554 #define MC_CMD_ADD_LIGHTSOUT_OFFLOAD_IN_DATA_LEN 4
5561 /* MC_CMD_ADD_LIGHTSOUT_OFFLOAD_IN_PROTOCOL_LEN 4 */
5562 #define MC_CMD_ADD_LIGHTSOUT_OFFLOAD_IN_ARP_MAC_OFST 4
5565 #define MC_CMD_ADD_LIGHTSOUT_OFFLOAD_IN_ARP_IP_LEN 4
5570 /* MC_CMD_ADD_LIGHTSOUT_OFFLOAD_IN_PROTOCOL_LEN 4 */
5571 #define MC_CMD_ADD_LIGHTSOUT_OFFLOAD_IN_NS_MAC_OFST 4
5579 #define MC_CMD_ADD_LIGHTSOUT_OFFLOAD_OUT_LEN 4
5581 #define MC_CMD_ADD_LIGHTSOUT_OFFLOAD_OUT_FILTER_ID_LEN 4
5585 * Remove a protocol offload from NIC for lights-out state. Locks required:
5596 #define MC_CMD_REMOVE_LIGHTSOUT_OFFLOAD_IN_PROTOCOL_LEN 4
5597 #define MC_CMD_REMOVE_LIGHTSOUT_OFFLOAD_IN_FILTER_ID_OFST 4
5598 #define MC_CMD_REMOVE_LIGHTSOUT_OFFLOAD_IN_FILTER_ID_LEN 4
5617 * Deliberately trigger an assert-detonation in the firmware for testing
5633 #define MC_CMD_TESTASSERT_V2_IN_LEN 4
5636 #define MC_CMD_TESTASSERT_V2_IN_TYPE_LEN 4
5658 * understand the given workaround number - which should not be treated as a
5660 * workaround, that's between the driver and the mcfw on a per-workaround
5672 #define MC_CMD_WORKAROUND_IN_TYPE_LEN 4
5682 * - before adding code that queries this workaround, remember that there's
5697 /* 0 = disable the workaround indicated by TYPE; any non-zero value = enable
5700 #define MC_CMD_WORKAROUND_IN_ENABLED_OFST 4
5701 #define MC_CMD_WORKAROUND_IN_ENABLED_LEN 4
5709 #define MC_CMD_WORKAROUND_EXT_OUT_LEN 4
5711 #define MC_CMD_WORKAROUND_EXT_OUT_FLAGS_LEN 4
5717 * Read media-specific data from PHY (e.g. SFP/SFP+ module ID information for
5720 * output data, are interpreted on a per-type basis. For SFP+: PAGE=0 or 1
5721 * returns a 128-byte block read from module I2C address 0xA0 offset 0 or 0x80.
5730 #define MC_CMD_GET_PHY_MEDIA_INFO_IN_LEN 4
5732 #define MC_CMD_GET_PHY_MEDIA_INFO_IN_PAGE_LEN 4
5737 #define MC_CMD_GET_PHY_MEDIA_INFO_OUT_LEN(num) (4+1*(num))
5740 #define MC_CMD_GET_PHY_MEDIA_INFO_OUT_DATALEN_LEN 4
5741 #define MC_CMD_GET_PHY_MEDIA_INFO_OUT_DATA_OFST 4
5757 #define MC_CMD_NVRAM_TEST_IN_LEN 4
5759 #define MC_CMD_NVRAM_TEST_IN_TYPE_LEN 4
5764 #define MC_CMD_NVRAM_TEST_OUT_LEN 4
5766 #define MC_CMD_NVRAM_TEST_OUT_RESULT_LEN 4
5784 /* 0-6 low->high de-emph. */
5786 #define MC_CMD_MRSFP_TWEAK_IN_EQ_CONFIG_TXEQ_LEVEL_LEN 4
5787 /* 0-8 low->high ref.V */
5788 #define MC_CMD_MRSFP_TWEAK_IN_EQ_CONFIG_TXEQ_DT_CFG_OFST 4
5789 #define MC_CMD_MRSFP_TWEAK_IN_EQ_CONFIG_TXEQ_DT_CFG_LEN 4
5790 /* 0-8 0-8 low->high boost */
5792 #define MC_CMD_MRSFP_TWEAK_IN_EQ_CONFIG_RXEQ_BOOST_LEN 4
5793 /* 0-8 low->high ref.V */
5795 #define MC_CMD_MRSFP_TWEAK_IN_EQ_CONFIG_RXEQ_DT_CFG_LEN 4
5804 #define MC_CMD_MRSFP_TWEAK_OUT_IOEXP_INPUTS_LEN 4
5806 #define MC_CMD_MRSFP_TWEAK_OUT_IOEXP_OUTPUTS_OFST 4
5807 #define MC_CMD_MRSFP_TWEAK_OUT_IOEXP_OUTPUTS_LEN 4
5810 #define MC_CMD_MRSFP_TWEAK_OUT_IOEXP_DIRECTION_LEN 4
5818 * Adjusts the sensor limits. This is a warranty-voiding operation. Returns:
5830 #define MC_CMD_SENSOR_SET_LIMS_IN_SENSOR_LEN 4
5833 /* interpretation is sensor-specific. */
5834 #define MC_CMD_SENSOR_SET_LIMS_IN_LOW0_OFST 4
5835 #define MC_CMD_SENSOR_SET_LIMS_IN_LOW0_LEN 4
5836 /* interpretation is sensor-specific. */
5838 #define MC_CMD_SENSOR_SET_LIMS_IN_HI0_LEN 4
5839 /* interpretation is sensor-specific. */
5841 #define MC_CMD_SENSOR_SET_LIMS_IN_LOW1_LEN 4
5842 /* interpretation is sensor-specific. */
5844 #define MC_CMD_SENSOR_SET_LIMS_IN_HI1_LEN 4
5860 #define MC_CMD_GET_RESOURCE_LIMITS_OUT_BUFTBL_LEN 4
5861 #define MC_CMD_GET_RESOURCE_LIMITS_OUT_EVQ_OFST 4
5862 #define MC_CMD_GET_RESOURCE_LIMITS_OUT_EVQ_LEN 4
5864 #define MC_CMD_GET_RESOURCE_LIMITS_OUT_RXQ_LEN 4
5866 #define MC_CMD_GET_RESOURCE_LIMITS_OUT_TXQ_LEN 4
5882 #define MC_CMD_NVRAM_PARTITIONS_OUT_LENMIN 4
5884 #define MC_CMD_NVRAM_PARTITIONS_OUT_LEN(num) (4+4*(num))
5887 #define MC_CMD_NVRAM_PARTITIONS_OUT_NUM_PARTITIONS_LEN 4
5889 #define MC_CMD_NVRAM_PARTITIONS_OUT_TYPE_ID_OFST 4
5890 #define MC_CMD_NVRAM_PARTITIONS_OUT_TYPE_ID_LEN 4
5905 #define MC_CMD_NVRAM_METADATA_IN_LEN 4
5908 #define MC_CMD_NVRAM_METADATA_IN_TYPE_LEN 4
5916 #define MC_CMD_NVRAM_METADATA_OUT_TYPE_LEN 4
5917 #define MC_CMD_NVRAM_METADATA_OUT_FLAGS_OFST 4
5918 #define MC_CMD_NVRAM_METADATA_OUT_FLAGS_LEN 4
5927 #define MC_CMD_NVRAM_METADATA_OUT_SUBTYPE_LEN 4
5937 /* 4th component of W.X.Y.Z version number for content of this partition */
5940 /* Zero-terminated string describing the content of this partition */
5968 #define MC_CMD_GET_MAC_ADDRESSES_OUT_MAC_COUNT_LEN 4
5971 #define MC_CMD_GET_MAC_ADDRESSES_OUT_MAC_STRIDE_LEN 4
5983 #define MC_CMD_CLP_IN_LEN 4
5986 #define MC_CMD_CLP_IN_OP_LEN 4
6002 #define MC_CMD_CLP_IN_DEFAULT_LEN 4
6004 /* MC_CMD_CLP_IN_OP_LEN 4 */
6012 /* MC_CMD_CLP_IN_OP_LEN 4 */
6014 #define MC_CMD_CLP_IN_SET_MAC_ADDR_OFST 4
6024 #define MC_CMD_CLP_IN_GET_MAC_LEN 4
6026 /* MC_CMD_CLP_IN_OP_LEN 4 */
6040 /* MC_CMD_CLP_IN_OP_LEN 4 */
6042 #define MC_CMD_CLP_IN_SET_BOOT_FLAG_OFST 4
6049 #define MC_CMD_CLP_IN_GET_BOOT_LEN 4
6051 /* MC_CMD_CLP_IN_OP_LEN 4 */
6054 #define MC_CMD_CLP_OUT_GET_BOOT_LEN 4
6072 #define MC_CMD_MUM_IN_LEN 4
6074 #define MC_CMD_MUM_IN_OP_HDR_LEN 4
6111 #define MC_CMD_MUM_IN_NULL_LEN 4
6114 #define MC_CMD_MUM_IN_CMD_LEN 4
6117 #define MC_CMD_MUM_IN_GET_VERSION_LEN 4
6120 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6126 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6128 #define MC_CMD_MUM_IN_READ_DEVICE_OFST 4
6129 #define MC_CMD_MUM_IN_READ_DEVICE_LEN 4
6132 /* enum: Hittite HMC1035 clock generator for NIC-side on Sorrento board */
6134 /* 32-bit address to read from */
6136 #define MC_CMD_MUM_IN_READ_ADDR_LEN 4
6139 #define MC_CMD_MUM_IN_READ_NUMWORDS_LEN 4
6144 #define MC_CMD_MUM_IN_WRITE_LEN(num) (12+4*(num))
6147 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6149 #define MC_CMD_MUM_IN_WRITE_DEVICE_OFST 4
6150 #define MC_CMD_MUM_IN_WRITE_DEVICE_LEN 4
6153 /* 32-bit address to write to */
6155 #define MC_CMD_MUM_IN_WRITE_ADDR_LEN 4
6158 #define MC_CMD_MUM_IN_WRITE_BUFFER_LEN 4
6168 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6170 #define MC_CMD_MUM_IN_RAW_CMD_CMD_CODE_OFST 4
6171 #define MC_CMD_MUM_IN_RAW_CMD_CMD_CODE_LEN 4
6174 #define MC_CMD_MUM_IN_RAW_CMD_NUM_WRITE_LEN 4
6177 #define MC_CMD_MUM_IN_RAW_CMD_NUM_READ_LEN 4
6188 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6189 #define MC_CMD_MUM_IN_LOG_OP_OFST 4
6190 #define MC_CMD_MUM_IN_LOG_OP_LEN 4
6196 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6197 /* MC_CMD_MUM_IN_LOG_OP_OFST 4 */
6198 /* MC_CMD_MUM_IN_LOG_OP_LEN 4 */
6201 #define MC_CMD_MUM_IN_LOG_OP_UART_ENABLE_LEN 4
6207 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6208 #define MC_CMD_MUM_IN_GPIO_HDR_OFST 4
6209 #define MC_CMD_MUM_IN_GPIO_HDR_LEN 4
6222 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6223 #define MC_CMD_MUM_IN_GPIO_IN_READ_HDR_OFST 4
6224 #define MC_CMD_MUM_IN_GPIO_IN_READ_HDR_LEN 4
6229 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6230 #define MC_CMD_MUM_IN_GPIO_OUT_WRITE_HDR_OFST 4
6231 #define MC_CMD_MUM_IN_GPIO_OUT_WRITE_HDR_LEN 4
6232 /* The first 32-bit word to be written to the GPIO OUT register. */
6234 #define MC_CMD_MUM_IN_GPIO_OUT_WRITE_GPIOMASK1_LEN 4
6235 /* The second 32-bit word to be written to the GPIO OUT register. */
6237 #define MC_CMD_MUM_IN_GPIO_OUT_WRITE_GPIOMASK2_LEN 4
6242 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6243 #define MC_CMD_MUM_IN_GPIO_OUT_READ_HDR_OFST 4
6244 #define MC_CMD_MUM_IN_GPIO_OUT_READ_HDR_LEN 4
6249 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6250 #define MC_CMD_MUM_IN_GPIO_OUT_ENABLE_WRITE_HDR_OFST 4
6251 #define MC_CMD_MUM_IN_GPIO_OUT_ENABLE_WRITE_HDR_LEN 4
6252 /* The first 32-bit word to be written to the GPIO OUT ENABLE register. */
6254 #define MC_CMD_MUM_IN_GPIO_OUT_ENABLE_WRITE_GPIOMASK1_LEN 4
6255 /* The second 32-bit word to be written to the GPIO OUT ENABLE register. */
6257 #define MC_CMD_MUM_IN_GPIO_OUT_ENABLE_WRITE_GPIOMASK2_LEN 4
6262 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6263 #define MC_CMD_MUM_IN_GPIO_OUT_ENABLE_READ_HDR_OFST 4
6264 #define MC_CMD_MUM_IN_GPIO_OUT_ENABLE_READ_HDR_LEN 4
6269 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6270 #define MC_CMD_MUM_IN_GPIO_OP_HDR_OFST 4
6271 #define MC_CMD_MUM_IN_GPIO_OP_HDR_LEN 4
6284 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6285 #define MC_CMD_MUM_IN_GPIO_OP_OUT_READ_HDR_OFST 4
6286 #define MC_CMD_MUM_IN_GPIO_OP_OUT_READ_HDR_LEN 4
6291 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6292 #define MC_CMD_MUM_IN_GPIO_OP_OUT_WRITE_HDR_OFST 4
6293 #define MC_CMD_MUM_IN_GPIO_OP_OUT_WRITE_HDR_LEN 4
6300 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6301 #define MC_CMD_MUM_IN_GPIO_OP_OUT_CONFIG_HDR_OFST 4
6302 #define MC_CMD_MUM_IN_GPIO_OP_OUT_CONFIG_HDR_LEN 4
6309 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6310 #define MC_CMD_MUM_IN_GPIO_OP_OUT_ENABLE_HDR_OFST 4
6311 #define MC_CMD_MUM_IN_GPIO_OP_OUT_ENABLE_HDR_LEN 4
6319 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6320 #define MC_CMD_MUM_IN_READ_SENSORS_PARAMS_OFST 4
6321 #define MC_CMD_MUM_IN_READ_SENSORS_PARAMS_LEN 4
6331 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6332 /* Bit-mask of clocks to be programmed */
6333 #define MC_CMD_MUM_IN_PROGRAM_CLOCKS_MASK_OFST 4
6334 #define MC_CMD_MUM_IN_PROGRAM_CLOCKS_MASK_LEN 4
6340 #define MC_CMD_MUM_IN_PROGRAM_CLOCKS_FLAGS_LEN 4
6352 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6354 #define MC_CMD_MUM_IN_FPGA_LOAD_ENABLE_OFST 4
6355 #define MC_CMD_MUM_IN_FPGA_LOAD_ENABLE_LEN 4
6358 #define MC_CMD_MUM_IN_READ_ATB_SENSOR_LEN 4
6361 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6367 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6368 #define MC_CMD_MUM_IN_QSFP_HDR_OFST 4
6369 #define MC_CMD_MUM_IN_QSFP_HDR_LEN 4
6371 #define MC_CMD_MUM_IN_QSFP_OPCODE_WIDTH 4
6379 #define MC_CMD_MUM_IN_QSFP_IDX_LEN 4
6384 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6385 #define MC_CMD_MUM_IN_QSFP_INIT_HDR_OFST 4
6386 #define MC_CMD_MUM_IN_QSFP_INIT_HDR_LEN 4
6388 #define MC_CMD_MUM_IN_QSFP_INIT_IDX_LEN 4
6390 #define MC_CMD_MUM_IN_QSFP_INIT_CAGE_LEN 4
6395 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6396 #define MC_CMD_MUM_IN_QSFP_RECONFIGURE_HDR_OFST 4
6397 #define MC_CMD_MUM_IN_QSFP_RECONFIGURE_HDR_LEN 4
6399 #define MC_CMD_MUM_IN_QSFP_RECONFIGURE_IDX_LEN 4
6401 #define MC_CMD_MUM_IN_QSFP_RECONFIGURE_TX_DISABLE_LEN 4
6403 #define MC_CMD_MUM_IN_QSFP_RECONFIGURE_PORT_LANES_LEN 4
6405 #define MC_CMD_MUM_IN_QSFP_RECONFIGURE_PORT_LINK_SPEED_LEN 4
6410 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6411 #define MC_CMD_MUM_IN_QSFP_GET_SUPPORTED_CAP_HDR_OFST 4
6412 #define MC_CMD_MUM_IN_QSFP_GET_SUPPORTED_CAP_HDR_LEN 4
6414 #define MC_CMD_MUM_IN_QSFP_GET_SUPPORTED_CAP_IDX_LEN 4
6419 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6420 #define MC_CMD_MUM_IN_QSFP_GET_MEDIA_INFO_HDR_OFST 4
6421 #define MC_CMD_MUM_IN_QSFP_GET_MEDIA_INFO_HDR_LEN 4
6423 #define MC_CMD_MUM_IN_QSFP_GET_MEDIA_INFO_IDX_LEN 4
6425 #define MC_CMD_MUM_IN_QSFP_GET_MEDIA_INFO_PAGE_LEN 4
6430 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6431 #define MC_CMD_MUM_IN_QSFP_FILL_STATS_HDR_OFST 4
6432 #define MC_CMD_MUM_IN_QSFP_FILL_STATS_HDR_LEN 4
6434 #define MC_CMD_MUM_IN_QSFP_FILL_STATS_IDX_LEN 4
6439 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6440 #define MC_CMD_MUM_IN_QSFP_POLL_BIST_HDR_OFST 4
6441 #define MC_CMD_MUM_IN_QSFP_POLL_BIST_HDR_LEN 4
6443 #define MC_CMD_MUM_IN_QSFP_POLL_BIST_IDX_LEN 4
6446 #define MC_CMD_MUM_IN_READ_DDR_INFO_LEN 4
6449 /* MC_CMD_MUM_IN_CMD_LEN 4 */
6460 #define MC_CMD_MUM_OUT_GET_VERSION_FIRMWARE_LEN 4
6461 #define MC_CMD_MUM_OUT_GET_VERSION_VERSION_OFST 4
6463 #define MC_CMD_MUM_OUT_GET_VERSION_VERSION_LO_OFST 4
6477 #define MC_CMD_MUM_OUT_READ_LENMIN 4
6479 #define MC_CMD_MUM_OUT_READ_LEN(num) (0+4*(num))
6481 #define MC_CMD_MUM_OUT_READ_BUFFER_LEN 4
6496 /* The first 32-bit word read from the GPIO IN register. */
6498 #define MC_CMD_MUM_OUT_GPIO_IN_READ_GPIOMASK1_LEN 4
6499 /* The second 32-bit word read from the GPIO IN register. */
6500 #define MC_CMD_MUM_OUT_GPIO_IN_READ_GPIOMASK2_OFST 4
6501 #define MC_CMD_MUM_OUT_GPIO_IN_READ_GPIOMASK2_LEN 4
6508 /* The first 32-bit word read from the GPIO OUT register. */
6510 #define MC_CMD_MUM_OUT_GPIO_OUT_READ_GPIOMASK1_LEN 4
6511 /* The second 32-bit word read from the GPIO OUT register. */
6512 #define MC_CMD_MUM_OUT_GPIO_OUT_READ_GPIOMASK2_OFST 4
6513 #define MC_CMD_MUM_OUT_GPIO_OUT_READ_GPIOMASK2_LEN 4
6521 #define MC_CMD_MUM_OUT_GPIO_OUT_ENABLE_READ_GPIOMASK1_LEN 4
6522 #define MC_CMD_MUM_OUT_GPIO_OUT_ENABLE_READ_GPIOMASK2_OFST 4
6523 #define MC_CMD_MUM_OUT_GPIO_OUT_ENABLE_READ_GPIOMASK2_LEN 4
6526 #define MC_CMD_MUM_OUT_GPIO_OP_OUT_READ_LEN 4
6528 #define MC_CMD_MUM_OUT_GPIO_OP_OUT_READ_BIT_READ_LEN 4
6540 #define MC_CMD_MUM_OUT_READ_SENSORS_LENMIN 4
6542 #define MC_CMD_MUM_OUT_READ_SENSORS_LEN(num) (0+4*(num))
6544 #define MC_CMD_MUM_OUT_READ_SENSORS_DATA_LEN 4
6555 #define MC_CMD_MUM_OUT_PROGRAM_CLOCKS_LEN 4
6557 #define MC_CMD_MUM_OUT_PROGRAM_CLOCKS_OK_MASK_LEN 4
6563 #define MC_CMD_MUM_OUT_READ_ATB_SENSOR_LEN 4
6565 #define MC_CMD_MUM_OUT_READ_ATB_SENSOR_RESULT_LEN 4
6573 #define MC_CMD_MUM_OUT_QSFP_RECONFIGURE_PORT_PHY_LP_CAP_LEN 4
6574 #define MC_CMD_MUM_OUT_QSFP_RECONFIGURE_PORT_PHY_FLAGS_OFST 4
6575 #define MC_CMD_MUM_OUT_QSFP_RECONFIGURE_PORT_PHY_FLAGS_LEN 4
6582 #define MC_CMD_MUM_OUT_QSFP_GET_SUPPORTED_CAP_LEN 4
6584 #define MC_CMD_MUM_OUT_QSFP_GET_SUPPORTED_CAP_PORT_PHY_LP_CAP_LEN 4
6589 #define MC_CMD_MUM_OUT_QSFP_GET_MEDIA_INFO_LEN(num) (4+1*(num))
6592 #define MC_CMD_MUM_OUT_QSFP_GET_MEDIA_INFO_DATALEN_LEN 4
6593 #define MC_CMD_MUM_OUT_QSFP_GET_MEDIA_INFO_DATA_OFST 4
6601 #define MC_CMD_MUM_OUT_QSFP_FILL_STATS_PORT_PHY_STATS_PMA_PMD_LINK_UP_LEN 4
6602 #define MC_CMD_MUM_OUT_QSFP_FILL_STATS_PORT_PHY_STATS_PCS_LINK_UP_OFST 4
6603 #define MC_CMD_MUM_OUT_QSFP_FILL_STATS_PORT_PHY_STATS_PCS_LINK_UP_LEN 4
6606 #define MC_CMD_MUM_OUT_QSFP_POLL_BIST_LEN 4
6608 #define MC_CMD_MUM_OUT_QSFP_POLL_BIST_TEST_LEN 4
6616 #define MC_CMD_MUM_OUT_READ_DDR_INFO_DISCRETE_DDR_INFO_LEN 4
6622 #define MC_CMD_MUM_OUT_READ_DDR_INFO_NUM_RECORDS_OFST 4
6623 #define MC_CMD_MUM_OUT_READ_DDR_INFO_NUM_RECORDS_LEN 4
6642 #define MC_CMD_MUM_OUT_READ_DDR_INFO_RANK_WIDTH 4
6644 #define MC_CMD_MUM_OUT_READ_DDR_INFO_VOLTAGE_WIDTH 4
6649 /* enum: Values 5-15 are reserved for future usage */
6656 #define MC_CMD_MUM_OUT_READ_DDR_INFO_STATE_WIDTH 4
6682 #define EVB_PORT_ID_LEN 4
6684 #define EVB_PORT_ID_PORT_ID_LEN 4
6706 #define EVB_VLAN_TAG_MODE_WIDTH 4
6724 /* the raw 64-bit address field from the SMC, not adjusted for page size */
6725 #define BUFTBL_ENTRY_RAWADDR_OFST 4
6727 #define BUFTBL_ENTRY_RAWADDR_LO_OFST 4
6756 /* enum: Non-volatile log output partition */
6758 /* enum: Non-volatile log output of second core on dual-core device */
6776 /* enum: Non-volatile log output partition for FC */
6784 /* enum: MUM Non-volatile log output partition. */
6808 /* enum: Spare partition 4 */
6829 * platforms. See SF-119124-PS. The STATIC_CONFIG partition may contain a
6845 #define LICENSED_APP_ID_LEN 4
6847 #define LICENSED_APP_ID_ID_LEN 4
6889 #define LICENSED_FEATURES_MASK_HI_OFST 4
6898 #define LICENSED_FEATURES_RX_TIMESTAMPS_LBN 4
6919 #define LICENSED_V3_APPS_MASK_HI_OFST 4
6928 #define LICENSED_V3_APPS_PERF_MONITOR_LBN 4
6961 #define LICENSED_V3_FEATURES_MASK_HI_OFST 4
6970 #define LICENSED_V3_FEATURES_RX_TIMESTAMPS_LBN 4
7017 #define TX_TIMESTAMP_EVENT_TSTAMP_DATA_HI_OFST 4
7024 /* The RSS mode for a particular packet type is a value from 0 - 15 which can
7025 * be considered as 4 bits selecting which fields are included in the hash. (A
7028 * but only 4 bits are relevant.
7044 #define CTPIO_STATS_MAP_LEN 4
7064 #define MESSAGE_TYPE_LEN 4
7066 #define MESSAGE_TYPE_MESSAGE_TYPE_LEN 4
7109 /* Same order as MIPS GDB (r0-r31, sr, lo, hi, bad, cause, 32 x float, fsr,
7113 #define MC_CMD_READ_REGS_OUT_REGS_LEN 4
7119 * end with an address for each 4k of host memory required to back the EVQ.
7132 #define MC_CMD_INIT_EVQ_IN_SIZE_LEN 4
7136 #define MC_CMD_INIT_EVQ_IN_INSTANCE_OFST 4
7137 #define MC_CMD_INIT_EVQ_IN_INSTANCE_LEN 4
7141 #define MC_CMD_INIT_EVQ_IN_TMR_LOAD_LEN 4
7142 /* The reload value is ignored in one-shot modes */
7144 #define MC_CMD_INIT_EVQ_IN_TMR_RELOAD_LEN 4
7147 #define MC_CMD_INIT_EVQ_IN_FLAGS_LEN 4
7156 #define MC_CMD_INIT_EVQ_IN_FLAG_RX_MERGE_LBN 4
7163 #define MC_CMD_INIT_EVQ_IN_TMR_MODE_LEN 4
7170 /* enum: Hold-off */
7174 #define MC_CMD_INIT_EVQ_IN_TARGET_EVQ_LEN 4
7180 #define MC_CMD_INIT_EVQ_IN_IRQ_NUM_LEN 4
7183 #define MC_CMD_INIT_EVQ_IN_COUNT_MODE_LEN 4
7194 #define MC_CMD_INIT_EVQ_IN_COUNT_THRSHLD_LEN 4
7195 /* 64-bit address of 4k of 4k-aligned host memory buffer */
7204 #define MC_CMD_INIT_EVQ_OUT_LEN 4
7207 #define MC_CMD_INIT_EVQ_OUT_IRQ_LEN 4
7215 #define MC_CMD_INIT_EVQ_V2_IN_SIZE_LEN 4
7219 #define MC_CMD_INIT_EVQ_V2_IN_INSTANCE_OFST 4
7220 #define MC_CMD_INIT_EVQ_V2_IN_INSTANCE_LEN 4
7224 #define MC_CMD_INIT_EVQ_V2_IN_TMR_LOAD_LEN 4
7225 /* The reload value is ignored in one-shot modes */
7227 #define MC_CMD_INIT_EVQ_V2_IN_TMR_RELOAD_LEN 4
7230 #define MC_CMD_INIT_EVQ_V2_IN_FLAGS_LEN 4
7239 #define MC_CMD_INIT_EVQ_V2_IN_FLAG_RX_MERGE_LBN 4
7246 #define MC_CMD_INIT_EVQ_V2_IN_FLAG_TYPE_WIDTH 4
7250 * over-ridden by firmware based on licenses and firmware variant in order to
7256 * over-ridden by firmware based on licenses and firmware variant in order to
7261 /* enum: MEDFORD only. Certain initialisation flags may be over-ridden by
7267 #define MC_CMD_INIT_EVQ_V2_IN_TMR_MODE_LEN 4
7274 /* enum: Hold-off */
7278 #define MC_CMD_INIT_EVQ_V2_IN_TARGET_EVQ_LEN 4
7284 #define MC_CMD_INIT_EVQ_V2_IN_IRQ_NUM_LEN 4
7287 #define MC_CMD_INIT_EVQ_V2_IN_COUNT_MODE_LEN 4
7298 #define MC_CMD_INIT_EVQ_V2_IN_COUNT_THRSHLD_LEN 4
7299 /* 64-bit address of 4k of 4k-aligned host memory buffer */
7311 #define MC_CMD_INIT_EVQ_V2_OUT_IRQ_LEN 4
7313 #define MC_CMD_INIT_EVQ_V2_OUT_FLAGS_OFST 4
7314 #define MC_CMD_INIT_EVQ_V2_OUT_FLAGS_LEN 4
7327 #define QUEUE_CRC_MODE_MODE_WIDTH 4
7340 #define QUEUE_CRC_MODE_SPARE_LBN 4
7341 #define QUEUE_CRC_MODE_SPARE_WIDTH 4
7346 * arguments end with an address for each 4k of host memory required to back
7362 #define MC_CMD_INIT_RXQ_IN_SIZE_LEN 4
7365 #define MC_CMD_INIT_RXQ_IN_TARGET_EVQ_OFST 4
7366 #define MC_CMD_INIT_RXQ_IN_TARGET_EVQ_LEN 4
7369 #define MC_CMD_INIT_RXQ_IN_LABEL_LEN 4
7374 #define MC_CMD_INIT_RXQ_IN_INSTANCE_LEN 4
7377 #define MC_CMD_INIT_RXQ_IN_FLAGS_LEN 4
7385 #define MC_CMD_INIT_RXQ_IN_CRC_MODE_WIDTH 4
7396 #define MC_CMD_INIT_RXQ_IN_OWNER_ID_LEN 4
7397 /* The port ID associated with the v-adaptor which should contain this DMAQ. */
7399 #define MC_CMD_INIT_RXQ_IN_PORT_ID_LEN 4
7400 /* 64-bit address of 4k of 4k-aligned host memory buffer */
7414 #define MC_CMD_INIT_RXQ_EXT_IN_SIZE_LEN 4
7418 #define MC_CMD_INIT_RXQ_EXT_IN_TARGET_EVQ_OFST 4
7419 #define MC_CMD_INIT_RXQ_EXT_IN_TARGET_EVQ_LEN 4
7425 #define MC_CMD_INIT_RXQ_EXT_IN_LABEL_LEN 4
7430 #define MC_CMD_INIT_RXQ_EXT_IN_INSTANCE_LEN 4
7433 #define MC_CMD_INIT_RXQ_EXT_IN_FLAGS_LEN 4
7441 #define MC_CMD_INIT_RXQ_EXT_IN_CRC_MODE_WIDTH 4
7449 #define MC_CMD_INIT_RXQ_EXT_IN_DMA_MODE_WIDTH 4
7456 * multiple fixed-size packet buffers within each bucket. For a full
7457 * description see SF-119419-TC. This mode is only supported by "dpdk" datapath
7478 #define MC_CMD_INIT_RXQ_EXT_IN_OWNER_ID_LEN 4
7479 /* The port ID associated with the v-adaptor which should contain this DMAQ. */
7481 #define MC_CMD_INIT_RXQ_EXT_IN_PORT_ID_LEN 4
7482 /* 64-bit address of 4k of 4k-aligned host memory buffer */
7490 #define MC_CMD_INIT_RXQ_EXT_IN_SNAPSHOT_LENGTH_LEN 4
7496 #define MC_CMD_INIT_RXQ_V3_IN_SIZE_LEN 4
7500 #define MC_CMD_INIT_RXQ_V3_IN_TARGET_EVQ_OFST 4
7501 #define MC_CMD_INIT_RXQ_V3_IN_TARGET_EVQ_LEN 4
7507 #define MC_CMD_INIT_RXQ_V3_IN_LABEL_LEN 4
7512 #define MC_CMD_INIT_RXQ_V3_IN_INSTANCE_LEN 4
7515 #define MC_CMD_INIT_RXQ_V3_IN_FLAGS_LEN 4
7523 #define MC_CMD_INIT_RXQ_V3_IN_CRC_MODE_WIDTH 4
7531 #define MC_CMD_INIT_RXQ_V3_IN_DMA_MODE_WIDTH 4
7538 * multiple fixed-size packet buffers within each bucket. For a full
7539 * description see SF-119419-TC. This mode is only supported by "dpdk" datapath
7560 #define MC_CMD_INIT_RXQ_V3_IN_OWNER_ID_LEN 4
7561 /* The port ID associated with the v-adaptor which should contain this DMAQ. */
7563 #define MC_CMD_INIT_RXQ_V3_IN_PORT_ID_LEN 4
7564 /* 64-bit address of 4k of 4k-aligned host memory buffer */
7572 #define MC_CMD_INIT_RXQ_V3_IN_SNAPSHOT_LENGTH_LEN 4
7578 #define MC_CMD_INIT_RXQ_V3_IN_ES_PACKET_BUFFERS_PER_BUCKET_LEN 4
7585 #define MC_CMD_INIT_RXQ_V3_IN_ES_MAX_DMA_LEN_LEN 4
7591 #define MC_CMD_INIT_RXQ_V3_IN_ES_PACKET_STRIDE_LEN 4
7599 #define MC_CMD_INIT_RXQ_V3_IN_ES_HEAD_OF_LINE_BLOCK_TIMEOUT_LEN 4
7626 #define MC_CMD_INIT_TXQ_IN_SIZE_LEN 4
7630 #define MC_CMD_INIT_TXQ_IN_TARGET_EVQ_OFST 4
7631 #define MC_CMD_INIT_TXQ_IN_TARGET_EVQ_LEN 4
7634 #define MC_CMD_INIT_TXQ_IN_LABEL_LEN 4
7639 #define MC_CMD_INIT_TXQ_IN_INSTANCE_LEN 4
7642 #define MC_CMD_INIT_TXQ_IN_FLAGS_LEN 4
7651 #define MC_CMD_INIT_TXQ_IN_CRC_MODE_LBN 4
7652 #define MC_CMD_INIT_TXQ_IN_CRC_MODE_WIDTH 4
7663 #define MC_CMD_INIT_TXQ_IN_OWNER_ID_LEN 4
7664 /* The port ID associated with the v-adaptor which should contain this DMAQ. */
7666 #define MC_CMD_INIT_TXQ_IN_PORT_ID_LEN 4
7667 /* 64-bit address of 4k of 4k-aligned host memory buffer */
7681 #define MC_CMD_INIT_TXQ_EXT_IN_SIZE_LEN 4
7685 #define MC_CMD_INIT_TXQ_EXT_IN_TARGET_EVQ_OFST 4
7686 #define MC_CMD_INIT_TXQ_EXT_IN_TARGET_EVQ_LEN 4
7689 #define MC_CMD_INIT_TXQ_EXT_IN_LABEL_LEN 4
7694 #define MC_CMD_INIT_TXQ_EXT_IN_INSTANCE_LEN 4
7697 #define MC_CMD_INIT_TXQ_EXT_IN_FLAGS_LEN 4
7706 #define MC_CMD_INIT_TXQ_EXT_IN_CRC_MODE_LBN 4
7707 #define MC_CMD_INIT_TXQ_EXT_IN_CRC_MODE_WIDTH 4
7724 #define MC_CMD_INIT_TXQ_EXT_IN_OWNER_ID_LEN 4
7725 /* The port ID associated with the v-adaptor which should contain this DMAQ. */
7727 #define MC_CMD_INIT_TXQ_EXT_IN_PORT_ID_LEN 4
7728 /* 64-bit address of 4k of 4k-aligned host memory buffer */
7737 #define MC_CMD_INIT_TXQ_EXT_IN_QBB_FLAGS_LEN 4
7759 #define MC_CMD_FINI_EVQ_IN_LEN 4
7764 #define MC_CMD_FINI_EVQ_IN_INSTANCE_LEN 4
7779 #define MC_CMD_FINI_RXQ_IN_LEN 4
7782 #define MC_CMD_FINI_RXQ_IN_INSTANCE_LEN 4
7797 #define MC_CMD_FINI_TXQ_IN_LEN 4
7800 #define MC_CMD_FINI_TXQ_IN_INSTANCE_LEN 4
7818 #define MC_CMD_DRIVER_EVENT_IN_EVQ_LEN 4
7819 /* Bits 0 - 63 of event */
7820 #define MC_CMD_DRIVER_EVENT_IN_DATA_OFST 4
7822 #define MC_CMD_DRIVER_EVENT_IN_DATA_LO_OFST 4
7841 #define MC_CMD_PROXY_CMD_IN_LEN 4
7844 #define MC_CMD_PROXY_CMD_IN_TARGET_LEN 4
7860 #define MC_PROXY_STATUS_BUFFER_HANDLE_LEN 4
7866 #define MC_PROXY_STATUS_BUFFER_PF_OFST 4
7891 #define MC_PROXY_STATUS_BUFFER_GRANTED_PRIVILEGES_LEN 4
7908 #define MC_CMD_PROXY_CONFIGURE_IN_FLAGS_LEN 4
7914 #define MC_CMD_PROXY_CONFIGURE_IN_STATUS_BUFF_ADDR_OFST 4
7916 #define MC_CMD_PROXY_CONFIGURE_IN_STATUS_BUFF_ADDR_LO_OFST 4
7920 #define MC_CMD_PROXY_CONFIGURE_IN_STATUS_BLOCK_SIZE_LEN 4
7930 #define MC_CMD_PROXY_CONFIGURE_IN_REQUEST_BLOCK_SIZE_LEN 4
7941 #define MC_CMD_PROXY_CONFIGURE_IN_REPLY_BLOCK_SIZE_LEN 4
7944 #define MC_CMD_PROXY_CONFIGURE_IN_NUM_BLOCKS_LEN 4
7952 #define MC_CMD_PROXY_CONFIGURE_EXT_IN_FLAGS_LEN 4
7958 #define MC_CMD_PROXY_CONFIGURE_EXT_IN_STATUS_BUFF_ADDR_OFST 4
7960 #define MC_CMD_PROXY_CONFIGURE_EXT_IN_STATUS_BUFF_ADDR_LO_OFST 4
7964 #define MC_CMD_PROXY_CONFIGURE_EXT_IN_STATUS_BLOCK_SIZE_LEN 4
7974 #define MC_CMD_PROXY_CONFIGURE_EXT_IN_REQUEST_BLOCK_SIZE_LEN 4
7985 #define MC_CMD_PROXY_CONFIGURE_EXT_IN_REPLY_BLOCK_SIZE_LEN 4
7988 #define MC_CMD_PROXY_CONFIGURE_EXT_IN_NUM_BLOCKS_LEN 4
7993 #define MC_CMD_PROXY_CONFIGURE_EXT_IN_RESERVED_LEN 4
8013 #define MC_CMD_PROXY_COMPLETE_IN_BLOCK_INDEX_LEN 4
8014 #define MC_CMD_PROXY_COMPLETE_IN_STATUS_OFST 4
8015 #define MC_CMD_PROXY_COMPLETE_IN_STATUS_LEN 4
8031 #define MC_CMD_PROXY_COMPLETE_IN_HANDLE_LEN 4
8051 #define MC_CMD_ALLOC_BUFTBL_CHUNK_IN_OWNER_LEN 4
8055 #define MC_CMD_ALLOC_BUFTBL_CHUNK_IN_PAGE_SIZE_OFST 4
8056 #define MC_CMD_ALLOC_BUFTBL_CHUNK_IN_PAGE_SIZE_LEN 4
8061 #define MC_CMD_ALLOC_BUFTBL_CHUNK_OUT_HANDLE_LEN 4
8062 #define MC_CMD_ALLOC_BUFTBL_CHUNK_OUT_NUMENTRIES_OFST 4
8063 #define MC_CMD_ALLOC_BUFTBL_CHUNK_OUT_NUMENTRIES_LEN 4
8066 #define MC_CMD_ALLOC_BUFTBL_CHUNK_OUT_ID_LEN 4
8082 #define MC_CMD_PROGRAM_BUFTBL_ENTRIES_IN_HANDLE_LEN 4
8084 #define MC_CMD_PROGRAM_BUFTBL_ENTRIES_IN_FIRSTID_OFST 4
8085 #define MC_CMD_PROGRAM_BUFTBL_ENTRIES_IN_FIRSTID_LEN 4
8088 #define MC_CMD_PROGRAM_BUFTBL_ENTRIES_IN_NUMENTRIES_LEN 4
8109 #define MC_CMD_FREE_BUFTBL_CHUNK_IN_LEN 4
8111 #define MC_CMD_FREE_BUFTBL_CHUNK_IN_HANDLE_LEN 4
8129 #define MC_CMD_FILTER_OP_IN_OP_LEN 4
8130 /* enum: single-recipient filter insert */
8132 /* enum: single-recipient filter remove */
8134 /* enum: multi-recipient filter subscribe */
8136 /* enum: multi-recipient filter unsubscribe */
8138 /* enum: replace one recipient with another (warning - the filter handle may
8143 #define MC_CMD_FILTER_OP_IN_HANDLE_OFST 4
8145 #define MC_CMD_FILTER_OP_IN_HANDLE_LO_OFST 4
8147 /* The port ID associated with the v-adaptor which should contain this filter.
8150 #define MC_CMD_FILTER_OP_IN_PORT_ID_LEN 4
8153 #define MC_CMD_FILTER_OP_IN_MATCH_FIELDS_LEN 4
8162 #define MC_CMD_FILTER_OP_IN_MATCH_DST_MAC_LBN 4
8184 #define MC_CMD_FILTER_OP_IN_RX_DEST_LEN 4
8197 #define MC_CMD_FILTER_OP_IN_RX_QUEUE_LEN 4
8200 #define MC_CMD_FILTER_OP_IN_RX_MODE_LEN 4
8215 #define MC_CMD_FILTER_OP_IN_RX_CONTEXT_LEN 4
8218 #define MC_CMD_FILTER_OP_IN_TX_DOMAIN_LEN 4
8224 #define MC_CMD_FILTER_OP_IN_TX_DEST_LEN 4
8257 #define MC_CMD_FILTER_OP_IN_FWDEF0_LEN 4
8260 #define MC_CMD_FILTER_OP_IN_FWDEF1_LEN 4
8279 #define MC_CMD_FILTER_OP_EXT_IN_OP_LEN 4
8283 #define MC_CMD_FILTER_OP_EXT_IN_HANDLE_OFST 4
8285 #define MC_CMD_FILTER_OP_EXT_IN_HANDLE_LO_OFST 4
8287 /* The port ID associated with the v-adaptor which should contain this filter.
8290 #define MC_CMD_FILTER_OP_EXT_IN_PORT_ID_LEN 4
8293 #define MC_CMD_FILTER_OP_EXT_IN_MATCH_FIELDS_LEN 4
8302 #define MC_CMD_FILTER_OP_EXT_IN_MATCH_DST_MAC_LBN 4
8352 #define MC_CMD_FILTER_OP_EXT_IN_RX_DEST_LEN 4
8365 #define MC_CMD_FILTER_OP_EXT_IN_RX_QUEUE_LEN 4
8368 #define MC_CMD_FILTER_OP_EXT_IN_RX_MODE_LEN 4
8383 #define MC_CMD_FILTER_OP_EXT_IN_RX_CONTEXT_LEN 4
8386 #define MC_CMD_FILTER_OP_EXT_IN_TX_DOMAIN_LEN 4
8392 #define MC_CMD_FILTER_OP_EXT_IN_TX_DEST_LEN 4
8425 #define MC_CMD_FILTER_OP_EXT_IN_FWDEF0_LEN 4
8431 #define MC_CMD_FILTER_OP_EXT_IN_VNI_OR_VSID_LEN 4
8497 #define MC_CMD_FILTER_OP_EXT_IN_IFRM_FWDEF0_LEN 4
8502 #define MC_CMD_FILTER_OP_EXT_IN_IFRM_FWDEF1_LEN 4
8523 #define MC_CMD_FILTER_OP_V3_IN_OP_LEN 4
8527 #define MC_CMD_FILTER_OP_V3_IN_HANDLE_OFST 4
8529 #define MC_CMD_FILTER_OP_V3_IN_HANDLE_LO_OFST 4
8531 /* The port ID associated with the v-adaptor which should contain this filter.
8534 #define MC_CMD_FILTER_OP_V3_IN_PORT_ID_LEN 4
8537 #define MC_CMD_FILTER_OP_V3_IN_MATCH_FIELDS_LEN 4
8546 #define MC_CMD_FILTER_OP_V3_IN_MATCH_DST_MAC_LBN 4
8596 #define MC_CMD_FILTER_OP_V3_IN_RX_DEST_LEN 4
8609 #define MC_CMD_FILTER_OP_V3_IN_RX_QUEUE_LEN 4
8612 #define MC_CMD_FILTER_OP_V3_IN_RX_MODE_LEN 4
8627 #define MC_CMD_FILTER_OP_V3_IN_RX_CONTEXT_LEN 4
8630 #define MC_CMD_FILTER_OP_V3_IN_TX_DOMAIN_LEN 4
8636 #define MC_CMD_FILTER_OP_V3_IN_TX_DEST_LEN 4
8669 #define MC_CMD_FILTER_OP_V3_IN_FWDEF0_LEN 4
8675 #define MC_CMD_FILTER_OP_V3_IN_VNI_OR_VSID_LEN 4
8741 #define MC_CMD_FILTER_OP_V3_IN_IFRM_FWDEF0_LEN 4
8746 #define MC_CMD_FILTER_OP_V3_IN_IFRM_FWDEF1_LEN 4
8759 * in the DPDK Firmware Driver Interface (SF-119419-TC). Requesting anything
8764 #define MC_CMD_FILTER_OP_V3_IN_MATCH_ACTION_LEN 4
8782 #define MC_CMD_FILTER_OP_V3_IN_MATCH_MARK_VALUE_LEN 4
8788 #define MC_CMD_FILTER_OP_OUT_OP_LEN 4
8795 #define MC_CMD_FILTER_OP_OUT_HANDLE_OFST 4
8797 #define MC_CMD_FILTER_OP_OUT_HANDLE_LO_OFST 4
8808 #define MC_CMD_FILTER_OP_EXT_OUT_OP_LEN 4
8815 #define MC_CMD_FILTER_OP_EXT_OUT_HANDLE_OFST 4
8817 #define MC_CMD_FILTER_OP_EXT_OUT_HANDLE_LO_OFST 4
8824 * Get information related to the parser-dispatcher subsystem
8832 #define MC_CMD_GET_PARSER_DISP_INFO_IN_LEN 4
8835 #define MC_CMD_GET_PARSER_DISP_INFO_IN_OP_LEN 4
8842 /* enum: read properties relating to security rules (Medford-only; for use by
8843 * SolarSecure apps, not directly by drivers. See SF-114946-SW.)
8855 #define MC_CMD_GET_PARSER_DISP_INFO_OUT_LEN(num) (8+4*(num))
8858 #define MC_CMD_GET_PARSER_DISP_INFO_OUT_OP_LEN 4
8862 #define MC_CMD_GET_PARSER_DISP_INFO_OUT_NUM_SUPPORTED_MATCHES_OFST 4
8863 #define MC_CMD_GET_PARSER_DISP_INFO_OUT_NUM_SUPPORTED_MATCHES_LEN 4
8868 #define MC_CMD_GET_PARSER_DISP_INFO_OUT_SUPPORTED_MATCHES_LEN 4
8876 #define MC_CMD_GET_PARSER_DISP_RESTRICTIONS_OUT_OP_LEN 4
8880 #define MC_CMD_GET_PARSER_DISP_RESTRICTIONS_OUT_RESTRICTION_FLAGS_OFST 4
8881 #define MC_CMD_GET_PARSER_DISP_RESTRICTIONS_OUT_RESTRICTION_FLAGS_LEN 4
8887 * (Medford-only; for use by SolarSecure apps, not directly by drivers. See
8888 * SF-114946-SW.) NOTE - this message definition is provisional. It has not yet
8895 #define MC_CMD_GET_PARSER_DISP_SECURITY_RULE_INFO_OUT_OP_LEN 4
8901 #define MC_CMD_GET_PARSER_DISP_SECURITY_RULE_INFO_OUT_RULES_VERSION_OFST 4
8902 #define MC_CMD_GET_PARSER_DISP_SECURITY_RULE_INFO_OUT_RULES_VERSION_LEN 4
8903 /* enum: implements lookup sequences described in SF-114946-SW draft C */
8907 #define MC_CMD_GET_PARSER_DISP_SECURITY_RULE_INFO_OUT_SUBNET_MAP_NUM_NODES_LEN 4
8910 #define MC_CMD_GET_PARSER_DISP_SECURITY_RULE_INFO_OUT_SUBNET_MAP_NUM_ENTRIES_PER_NODE_LEN 4
8913 #define MC_CMD_GET_PARSER_DISP_SECURITY_RULE_INFO_OUT_SUBNET_ID_MIN_LEN 4
8916 #define MC_CMD_GET_PARSER_DISP_SECURITY_RULE_INFO_OUT_SUBNET_ID_MAX_LEN 4
8919 #define MC_CMD_GET_PARSER_DISP_SECURITY_RULE_INFO_OUT_PORTRANGE_TREE_NUM_ENTRIES_LEN 4
8922 #define MC_CMD_GET_PARSER_DISP_SECURITY_RULE_INFO_OUT_PORTRANGE_ID_MIN_LEN 4
8925 #define MC_CMD_GET_PARSER_DISP_SECURITY_RULE_INFO_OUT_PORTRANGE_ID_MAX_LEN 4
8929 * Direct read/write of parser-dispatcher state (DICPUs and LUE) for debugging.
8945 #define MC_CMD_PARSER_DISP_RW_IN_TARGET_LEN 4
8965 #define MC_CMD_PARSER_DISP_RW_IN_OP_OFST 4
8966 #define MC_CMD_PARSER_DISP_RW_IN_OP_LEN 4
8973 /* enum: Read-modify-write a word of DICPU DMEM (not valid for LUE). Not
8979 #define MC_CMD_PARSER_DISP_RW_IN_ADDRESS_LEN 4
8982 #define MC_CMD_PARSER_DISP_RW_IN_SELECTOR_LEN 4
8987 #define MC_CMD_PARSER_DISP_RW_IN_DMEM_WRITE_VALUE_LEN 4
8988 /* XOR value (for DMEM read-modify-writes: new = (old & mask) ^ value) */
8990 #define MC_CMD_PARSER_DISP_RW_IN_DMEM_RMW_XOR_VALUE_LEN 4
8991 /* AND mask (for DMEM read-modify-writes: new = (old & mask) ^ value) */
8993 #define MC_CMD_PARSER_DISP_RW_IN_DMEM_RMW_AND_MASK_LEN 4
8996 #define MC_CMD_PARSER_DISP_RW_IN_LUE_READ_METADATA_VERSION_LEN 4
9005 #define MC_CMD_PARSER_DISP_RW_OUT_DMEM_READ_VALUE_LEN 4
9009 /* up to 8 32-bit words of additional soft state from the LUE manager (the
9010 * exact content is firmware-dependent and intended only for debug use)
9016 #define MC_CMD_PARSER_DISP_RW_OUT_PORT_DP_MAPPING_LEN 4
9017 #define MC_CMD_PARSER_DISP_RW_OUT_PORT_DP_MAPPING_NUM 4
9046 #define MC_CMD_SET_PF_COUNT_IN_LEN 4
9049 #define MC_CMD_SET_PF_COUNT_IN_PF_COUNT_LEN 4
9067 #define MC_CMD_GET_PORT_ASSIGNMENT_OUT_LEN 4
9070 #define MC_CMD_GET_PORT_ASSIGNMENT_OUT_PORT_LEN 4
9082 #define MC_CMD_SET_PORT_ASSIGNMENT_IN_LEN 4
9085 #define MC_CMD_SET_PORT_ASSIGNMENT_IN_PORT_LEN 4
9103 #define MC_CMD_ALLOC_VIS_IN_MIN_VI_COUNT_LEN 4
9105 #define MC_CMD_ALLOC_VIS_IN_MAX_VI_COUNT_OFST 4
9106 #define MC_CMD_ALLOC_VIS_IN_MAX_VI_COUNT_LEN 4
9108 /* MC_CMD_ALLOC_VIS_OUT msgresponse: Huntington-compatible VI_ALLOC request.
9114 #define MC_CMD_ALLOC_VIS_OUT_VI_COUNT_LEN 4
9118 #define MC_CMD_ALLOC_VIS_OUT_VI_BASE_OFST 4
9119 #define MC_CMD_ALLOC_VIS_OUT_VI_BASE_LEN 4
9125 #define MC_CMD_ALLOC_VIS_EXT_OUT_VI_COUNT_LEN 4
9129 #define MC_CMD_ALLOC_VIS_EXT_OUT_VI_BASE_OFST 4
9130 #define MC_CMD_ALLOC_VIS_EXT_OUT_VI_BASE_LEN 4
9133 #define MC_CMD_ALLOC_VIS_EXT_OUT_VI_SHIFT_LEN 4
9167 #define MC_CMD_GET_SRIOV_CFG_OUT_VF_CURRENT_LEN 4
9169 #define MC_CMD_GET_SRIOV_CFG_OUT_VF_MAX_OFST 4
9170 #define MC_CMD_GET_SRIOV_CFG_OUT_VF_MAX_LEN 4
9172 #define MC_CMD_GET_SRIOV_CFG_OUT_FLAGS_LEN 4
9177 #define MC_CMD_GET_SRIOV_CFG_OUT_VF_OFFSET_LEN 4
9180 #define MC_CMD_GET_SRIOV_CFG_OUT_VF_STRIDE_LEN 4
9195 #define MC_CMD_SET_SRIOV_CFG_IN_VF_CURRENT_LEN 4
9197 #define MC_CMD_SET_SRIOV_CFG_IN_VF_MAX_OFST 4
9198 #define MC_CMD_SET_SRIOV_CFG_IN_VF_MAX_LEN 4
9200 #define MC_CMD_SET_SRIOV_CFG_IN_FLAGS_LEN 4
9207 #define MC_CMD_SET_SRIOV_CFG_IN_VF_OFFSET_LEN 4
9212 #define MC_CMD_SET_SRIOV_CFG_IN_VF_STRIDE_LEN 4
9234 #define MC_CMD_GET_VI_ALLOC_INFO_OUT_VI_COUNT_LEN 4
9238 #define MC_CMD_GET_VI_ALLOC_INFO_OUT_VI_BASE_OFST 4
9239 #define MC_CMD_GET_VI_ALLOC_INFO_OUT_VI_BASE_LEN 4
9242 #define MC_CMD_GET_VI_ALLOC_INFO_OUT_VI_SHIFT_LEN 4
9254 #define MC_CMD_DUMP_VI_STATE_IN_LEN 4
9257 #define MC_CMD_DUMP_VI_STATE_IN_VI_NUMBER_LEN 4
9268 #define MC_CMD_DUMP_VI_STATE_OUT_FUNC_VI_BASE_OFST 4
9291 #define MC_CMD_DUMP_VI_STATE_OUT_VI_EV_META_LEN 4
9370 #define MC_CMD_ALLOC_PIOBUF_OUT_LEN 4
9373 #define MC_CMD_ALLOC_PIOBUF_OUT_PIOBUF_HANDLE_LEN 4
9385 #define MC_CMD_FREE_PIOBUF_IN_LEN 4
9388 #define MC_CMD_FREE_PIOBUF_IN_PIOBUF_HANDLE_LEN 4
9403 #define MC_CMD_GET_VI_TLP_PROCESSING_IN_LEN 4
9406 #define MC_CMD_GET_VI_TLP_PROCESSING_IN_INSTANCE_LEN 4
9409 #define MC_CMD_GET_VI_TLP_PROCESSING_OUT_LEN 4
9429 #define MC_CMD_GET_VI_TLP_PROCESSING_OUT_DATA_LEN 4
9444 #define MC_CMD_SET_VI_TLP_PROCESSING_IN_INSTANCE_LEN 4
9446 #define MC_CMD_SET_VI_TLP_PROCESSING_IN_TPH_TAG1_RX_OFST 4
9463 #define MC_CMD_SET_VI_TLP_PROCESSING_IN_DATA_OFST 4
9464 #define MC_CMD_SET_VI_TLP_PROCESSING_IN_DATA_LEN 4
9479 #define MC_CMD_GET_TLP_PROCESSING_GLOBALS_IN_LEN 4
9481 #define MC_CMD_GET_TLP_PROCESSING_GLOBALS_IN_TLP_GLOBAL_CATEGORY_LEN 4
9494 #define MC_CMD_GET_TLP_PROCESSING_GLOBALS_OUT_TLP_GLOBAL_CATEGORY_LEN 4
9498 #define MC_CMD_GET_TLP_PROCESSING_GLOBALS_OUT_TLP_INFO_WORD_OFST 4
9499 #define MC_CMD_GET_TLP_PROCESSING_GLOBALS_OUT_TLP_INFO_WORD_LEN 4
9512 #define MC_CMD_GET_TLP_PROCESSING_GLOBALS_OUT_TLP_INFO_IDO_SPARE_LBN 4
9526 #define MC_CMD_GET_TLP_PROCESSING_GLOBALS_OUT_TLP_INFO_TPH_TYPE_TX_LBN 4
9547 #define MC_CMD_SET_TLP_PROCESSING_GLOBALS_IN_TLP_GLOBAL_CATEGORY_LEN 4
9551 #define MC_CMD_SET_TLP_PROCESSING_GLOBALS_IN_TLP_INFO_WORD_OFST 4
9552 #define MC_CMD_SET_TLP_PROCESSING_GLOBALS_IN_TLP_INFO_WORD_LEN 4
9573 #define MC_CMD_SET_TLP_PROCESSING_GLOBALS_IN_TLP_INFO_TPH_TYPE_TX_LBN 4
9599 * 2) PHASE_IMEMS for each of the IMEM targets (target IDs 0-11). Each download
9601 * be a checksum (a simple 32-bit sum) of the transferred data. An individual
9604 * 3) PHASE_VECTORS for each of the vector table targets (target IDs 12-15),
9607 * 4) PHASE_READY with a target of TARGET_ALL and chunk ID/length of 0.
9614 #define MC_CMD_SATELLITE_DOWNLOAD_IN_LEN(num) (16+4*(num))
9619 #define MC_CMD_SATELLITE_DOWNLOAD_IN_PHASE_LEN 4
9628 #define MC_CMD_SATELLITE_DOWNLOAD_IN_TARGET_OFST 4
9629 #define MC_CMD_SATELLITE_DOWNLOAD_IN_TARGET_LEN 4
9662 /* enum: Valid in phases 1 (PHASE_RESET) and 4 (PHASE_READY) only */
9666 #define MC_CMD_SATELLITE_DOWNLOAD_IN_CHUNK_ID_LEN 4
9673 #define MC_CMD_SATELLITE_DOWNLOAD_IN_CHUNK_LEN_LEN 4
9676 #define MC_CMD_SATELLITE_DOWNLOAD_IN_CHUNK_DATA_LEN 4
9684 #define MC_CMD_SATELLITE_DOWNLOAD_OUT_RESULT_LEN 4
9686 #define MC_CMD_SATELLITE_DOWNLOAD_OUT_INFO_OFST 4
9687 #define MC_CMD_SATELLITE_DOWNLOAD_OUT_INFO_LEN 4
9724 #define MC_CMD_GET_CAPABILITIES_OUT_FLAGS1_LEN 4
9727 #define MC_CMD_GET_CAPABILITIES_OUT_TX_STRIPING_LBN 4
9784 #define MC_CMD_GET_CAPABILITIES_OUT_RX_DPCPU_FW_ID_OFST 4
9804 /* enum: RXDP Test firmware image 4 */
9844 #define MC_CMD_GET_CAPABILITIES_OUT_RXPD_FW_VERSION_TYPE_WIDTH 4
9845 /* enum: reserved value - do not use (may indicate alternative interpretation
9853 /* enum: RX PD firmware with approximately Siena-compatible behaviour
9875 /* enum: Custom firmware variant (see SF-119495-PD and bug69716) */
9890 #define MC_CMD_GET_CAPABILITIES_OUT_TXPD_FW_VERSION_TYPE_WIDTH 4
9891 /* enum: reserved value - do not use (may indicate alternative interpretation
9899 /* enum: TX PD firmware with approximately Siena-compatible behaviour
9918 /* enum: Custom firmware variant (see SF-119495-PD and bug69716) */
9926 #define MC_CMD_GET_CAPABILITIES_OUT_HW_CAPABILITIES_LEN 4
9929 #define MC_CMD_GET_CAPABILITIES_OUT_LICENSE_CAPABILITIES_LEN 4
9938 #define MC_CMD_GET_CAPABILITIES_V2_OUT_FLAGS1_LEN 4
9941 #define MC_CMD_GET_CAPABILITIES_V2_OUT_TX_STRIPING_LBN 4
9998 #define MC_CMD_GET_CAPABILITIES_V2_OUT_RX_DPCPU_FW_ID_OFST 4
10018 /* enum: RXDP Test firmware image 4 */
10058 #define MC_CMD_GET_CAPABILITIES_V2_OUT_RXPD_FW_VERSION_TYPE_WIDTH 4
10059 /* enum: reserved value - do not use (may indicate alternative interpretation
10067 /* enum: RX PD firmware with approximately Siena-compatible behaviour
10089 /* enum: Custom firmware variant (see SF-119495-PD and bug69716) */
10104 #define MC_CMD_GET_CAPABILITIES_V2_OUT_TXPD_FW_VERSION_TYPE_WIDTH 4
10105 /* enum: reserved value - do not use (may indicate alternative interpretation
10113 /* enum: TX PD firmware with approximately Siena-compatible behaviour
10132 /* enum: Custom firmware variant (see SF-119495-PD and bug69716) */
10140 #define MC_CMD_GET_CAPABILITIES_V2_OUT_HW_CAPABILITIES_LEN 4
10143 #define MC_CMD_GET_CAPABILITIES_V2_OUT_LICENSE_CAPABILITIES_LEN 4
10146 #define MC_CMD_GET_CAPABILITIES_V2_OUT_FLAGS2_LEN 4
10155 #define MC_CMD_GET_CAPABILITIES_V2_OUT_RX_CUT_THROUGH_LBN 4
10239 #define MC_CMD_GET_CAPABILITIES_V2_OUT_NUM_VIS_PER_PORT_NUM 4
10261 #define MC_CMD_GET_CAPABILITIES_V3_OUT_FLAGS1_LEN 4
10264 #define MC_CMD_GET_CAPABILITIES_V3_OUT_TX_STRIPING_LBN 4
10321 #define MC_CMD_GET_CAPABILITIES_V3_OUT_RX_DPCPU_FW_ID_OFST 4
10341 /* enum: RXDP Test firmware image 4 */
10381 #define MC_CMD_GET_CAPABILITIES_V3_OUT_RXPD_FW_VERSION_TYPE_WIDTH 4
10382 /* enum: reserved value - do not use (may indicate alternative interpretation
10390 /* enum: RX PD firmware with approximately Siena-compatible behaviour
10412 /* enum: Custom firmware variant (see SF-119495-PD and bug69716) */
10427 #define MC_CMD_GET_CAPABILITIES_V3_OUT_TXPD_FW_VERSION_TYPE_WIDTH 4
10428 /* enum: reserved value - do not use (may indicate alternative interpretation
10436 /* enum: TX PD firmware with approximately Siena-compatible behaviour
10455 /* enum: Custom firmware variant (see SF-119495-PD and bug69716) */
10463 #define MC_CMD_GET_CAPABILITIES_V3_OUT_HW_CAPABILITIES_LEN 4
10466 #define MC_CMD_GET_CAPABILITIES_V3_OUT_LICENSE_CAPABILITIES_LEN 4
10469 #define MC_CMD_GET_CAPABILITIES_V3_OUT_FLAGS2_LEN 4
10478 #define MC_CMD_GET_CAPABILITIES_V3_OUT_RX_CUT_THROUGH_LBN 4
10562 #define MC_CMD_GET_CAPABILITIES_V3_OUT_NUM_VIS_PER_PORT_NUM 4
10581 * discover the VI to address mapping. Cut-through PIO (CTPIO) is not available
10586 /* enum: Each VI occupies 8k as on Huntington and Medford. PIO is at offset 4k.
10590 /* enum: Each VI occupies 16k. PIO is at offset 4k. CTPIO is at offset 12k. */
10592 /* enum: Each VI occupies 64k. PIO is at offset 4k. CTPIO is at offset 12k. */
10595 * (SF-115995-SW) in the present configuration of firmware and port mode.
10600 * (SF-115995-SW) in the present configuration of firmware and port mode.
10609 #define MC_CMD_GET_CAPABILITIES_V4_OUT_FLAGS1_LEN 4
10612 #define MC_CMD_GET_CAPABILITIES_V4_OUT_TX_STRIPING_LBN 4
10669 #define MC_CMD_GET_CAPABILITIES_V4_OUT_RX_DPCPU_FW_ID_OFST 4
10689 /* enum: RXDP Test firmware image 4 */
10729 #define MC_CMD_GET_CAPABILITIES_V4_OUT_RXPD_FW_VERSION_TYPE_WIDTH 4
10730 /* enum: reserved value - do not use (may indicate alternative interpretation
10738 /* enum: RX PD firmware with approximately Siena-compatible behaviour
10760 /* enum: Custom firmware variant (see SF-119495-PD and bug69716) */
10775 #define MC_CMD_GET_CAPABILITIES_V4_OUT_TXPD_FW_VERSION_TYPE_WIDTH 4
10776 /* enum: reserved value - do not use (may indicate alternative interpretation
10784 /* enum: TX PD firmware with approximately Siena-compatible behaviour
10803 /* enum: Custom firmware variant (see SF-119495-PD and bug69716) */
10811 #define MC_CMD_GET_CAPABILITIES_V4_OUT_HW_CAPABILITIES_LEN 4
10814 #define MC_CMD_GET_CAPABILITIES_V4_OUT_LICENSE_CAPABILITIES_LEN 4
10817 #define MC_CMD_GET_CAPABILITIES_V4_OUT_FLAGS2_LEN 4
10826 #define MC_CMD_GET_CAPABILITIES_V4_OUT_RX_CUT_THROUGH_LBN 4
10910 #define MC_CMD_GET_CAPABILITIES_V4_OUT_NUM_VIS_PER_PORT_NUM 4
10929 * discover the VI to address mapping. Cut-through PIO (CTPIO) is not available
10934 /* enum: Each VI occupies 8k as on Huntington and Medford. PIO is at offset 4k.
10938 /* enum: Each VI occupies 16k. PIO is at offset 4k. CTPIO is at offset 12k. */
10940 /* enum: Each VI occupies 64k. PIO is at offset 4k. CTPIO is at offset 12k. */
10943 * (SF-115995-SW) in the present configuration of firmware and port mode.
10948 * (SF-115995-SW) in the present configuration of firmware and port mode.
10954 * hold at least this many 64-bit stats values, if they wish to receive all
10965 #define MC_CMD_GET_CAPABILITIES_V5_OUT_FLAGS1_LEN 4
10968 #define MC_CMD_GET_CAPABILITIES_V5_OUT_TX_STRIPING_LBN 4
11025 #define MC_CMD_GET_CAPABILITIES_V5_OUT_RX_DPCPU_FW_ID_OFST 4
11045 /* enum: RXDP Test firmware image 4 */
11085 #define MC_CMD_GET_CAPABILITIES_V5_OUT_RXPD_FW_VERSION_TYPE_WIDTH 4
11086 /* enum: reserved value - do not use (may indicate alternative interpretation
11094 /* enum: RX PD firmware with approximately Siena-compatible behaviour
11116 /* enum: Custom firmware variant (see SF-119495-PD and bug69716) */
11131 #define MC_CMD_GET_CAPABILITIES_V5_OUT_TXPD_FW_VERSION_TYPE_WIDTH 4
11132 /* enum: reserved value - do not use (may indicate alternative interpretation
11140 /* enum: TX PD firmware with approximately Siena-compatible behaviour
11159 /* enum: Custom firmware variant (see SF-119495-PD and bug69716) */
11167 #define MC_CMD_GET_CAPABILITIES_V5_OUT_HW_CAPABILITIES_LEN 4
11170 #define MC_CMD_GET_CAPABILITIES_V5_OUT_LICENSE_CAPABILITIES_LEN 4
11173 #define MC_CMD_GET_CAPABILITIES_V5_OUT_FLAGS2_LEN 4
11182 #define MC_CMD_GET_CAPABILITIES_V5_OUT_RX_CUT_THROUGH_LBN 4
11266 #define MC_CMD_GET_CAPABILITIES_V5_OUT_NUM_VIS_PER_PORT_NUM 4
11285 * discover the VI to address mapping. Cut-through PIO (CTPIO) is not available
11290 /* enum: Each VI occupies 8k as on Huntington and Medford. PIO is at offset 4k.
11294 /* enum: Each VI occupies 16k. PIO is at offset 4k. CTPIO is at offset 12k. */
11296 /* enum: Each VI occupies 64k. PIO is at offset 4k. CTPIO is at offset 12k. */
11299 * (SF-115995-SW) in the present configuration of firmware and port mode.
11304 * (SF-115995-SW) in the present configuration of firmware and port mode.
11310 * hold at least this many 64-bit stats values, if they wish to receive all
11317 * will only be non-zero if MC_CMD_GET_CAPABILITIES/FILTER_ACTION_MARK is set.
11320 #define MC_CMD_GET_CAPABILITIES_V5_OUT_FILTER_ACTION_MARK_MAX_LEN 4
11329 #define MC_CMD_V2_EXTN_IN_LEN 4
11344 #define MC_CMD_V2_EXTN_IN_MESSAGE_TYPE_WIDTH 4
11365 #define MC_CMD_TCM_BUCKET_ALLOC_OUT_LEN 4
11368 #define MC_CMD_TCM_BUCKET_ALLOC_OUT_BUCKET_LEN 4
11380 #define MC_CMD_TCM_BUCKET_FREE_IN_LEN 4
11383 #define MC_CMD_TCM_BUCKET_FREE_IN_BUCKET_LEN 4
11401 #define MC_CMD_TCM_BUCKET_INIT_IN_BUCKET_LEN 4
11403 #define MC_CMD_TCM_BUCKET_INIT_IN_RATE_OFST 4
11404 #define MC_CMD_TCM_BUCKET_INIT_IN_RATE_LEN 4
11410 #define MC_CMD_TCM_BUCKET_INIT_EXT_IN_BUCKET_LEN 4
11412 #define MC_CMD_TCM_BUCKET_INIT_EXT_IN_RATE_OFST 4
11413 #define MC_CMD_TCM_BUCKET_INIT_EXT_IN_RATE_LEN 4
11416 #define MC_CMD_TCM_BUCKET_INIT_EXT_IN_MAX_FILL_LEN 4
11434 #define MC_CMD_TCM_TXQ_INIT_IN_QID_LEN 4
11436 #define MC_CMD_TCM_TXQ_INIT_IN_LABEL_OFST 4
11437 #define MC_CMD_TCM_TXQ_INIT_IN_LABEL_LEN 4
11440 #define MC_CMD_TCM_TXQ_INIT_IN_PQ_FLAGS_LEN 4
11449 #define MC_CMD_TCM_TXQ_INIT_IN_RP_BKT_LEN 4
11454 #define MC_CMD_TCM_TXQ_INIT_IN_MAX_BKT1_LEN 4
11459 #define MC_CMD_TCM_TXQ_INIT_IN_MAX_BKT2_LEN 4
11462 #define MC_CMD_TCM_TXQ_INIT_IN_MIN_BKT_LEN 4
11468 #define MC_CMD_TCM_TXQ_INIT_EXT_IN_QID_LEN 4
11470 #define MC_CMD_TCM_TXQ_INIT_EXT_IN_LABEL_NORMAL_OFST 4
11471 #define MC_CMD_TCM_TXQ_INIT_EXT_IN_LABEL_NORMAL_LEN 4
11474 #define MC_CMD_TCM_TXQ_INIT_EXT_IN_PQ_FLAGS_LEN 4
11483 #define MC_CMD_TCM_TXQ_INIT_EXT_IN_RP_BKT_LEN 4
11488 #define MC_CMD_TCM_TXQ_INIT_EXT_IN_MAX_BKT1_LEN 4
11493 #define MC_CMD_TCM_TXQ_INIT_EXT_IN_MAX_BKT2_LEN 4
11496 #define MC_CMD_TCM_TXQ_INIT_EXT_IN_MIN_BKT_LEN 4
11499 #define MC_CMD_TCM_TXQ_INIT_EXT_IN_LABEL_GUARANTEED_LEN 4
11517 #define MC_CMD_LINK_PIOBUF_IN_PIOBUF_HANDLE_LEN 4
11519 #define MC_CMD_LINK_PIOBUF_IN_TXQ_INSTANCE_OFST 4
11520 #define MC_CMD_LINK_PIOBUF_IN_TXQ_INSTANCE_LEN 4
11535 #define MC_CMD_UNLINK_PIOBUF_IN_LEN 4
11538 #define MC_CMD_UNLINK_PIOBUF_IN_TXQ_INSTANCE_LEN 4
11545 * allocate and initialise a v-switch.
11554 /* The port to connect to the v-switch's upstream port. */
11556 #define MC_CMD_VSWITCH_ALLOC_IN_UPSTREAM_PORT_ID_LEN 4
11557 /* The type of v-switch to create. */
11558 #define MC_CMD_VSWITCH_ALLOC_IN_TYPE_OFST 4
11559 #define MC_CMD_VSWITCH_ALLOC_IN_TYPE_LEN 4
11570 /* Flags controlling v-port creation */
11572 #define MC_CMD_VSWITCH_ALLOC_IN_FLAGS_LEN 4
11575 /* The number of VLAN tags to allow for attached v-ports. For VLAN aggregators,
11576 * this must be one or greated, and the attached v-ports must have exactly this
11577 * number of tags. For other v-switch types, this must be zero of greater, and
11578 * is an upper limit on the number of VLAN tags for attached v-ports. An error
11580 * v-ports with this number of tags.
11583 #define MC_CMD_VSWITCH_ALLOC_IN_NUM_VLAN_TAGS_LEN 4
11590 * de-allocate a v-switch.
11598 #define MC_CMD_VSWITCH_FREE_IN_LEN 4
11599 /* The port to which the v-switch is connected. */
11601 #define MC_CMD_VSWITCH_FREE_IN_UPSTREAM_PORT_ID_LEN 4
11608 * read some config of v-switch. For now this command is an empty placeholder.
11609 * It may be used to check if a v-switch is connected to a given EVB port (if
11618 #define MC_CMD_VSWITCH_QUERY_IN_LEN 4
11619 /* The port to which the v-switch is connected. */
11621 #define MC_CMD_VSWITCH_QUERY_IN_UPSTREAM_PORT_ID_LEN 4
11628 * allocate a v-port.
11637 /* The port to which the v-switch is connected. */
11639 #define MC_CMD_VPORT_ALLOC_IN_UPSTREAM_PORT_ID_LEN 4
11640 /* The type of the new v-port. */
11641 #define MC_CMD_VPORT_ALLOC_IN_TYPE_OFST 4
11642 #define MC_CMD_VPORT_ALLOC_IN_TYPE_LEN 4
11649 /* enum: A normal v-port receives packets which match a specified MAC and/or
11653 /* enum: An expansion v-port packets traffic which don't match any other
11654 * v-port.
11657 /* enum: An test v-port receives packets which match any filters installed by
11661 /* Flags controlling v-port creation */
11663 #define MC_CMD_VPORT_ALLOC_IN_FLAGS_LEN 4
11670 * v-switch.
11673 #define MC_CMD_VPORT_ALLOC_IN_NUM_VLAN_TAGS_LEN 4
11676 #define MC_CMD_VPORT_ALLOC_IN_VLAN_TAGS_LEN 4
11683 #define MC_CMD_VPORT_ALLOC_OUT_LEN 4
11684 /* The handle of the new v-port */
11686 #define MC_CMD_VPORT_ALLOC_OUT_VPORT_ID_LEN 4
11690 * de-allocate a v-port.
11698 #define MC_CMD_VPORT_FREE_IN_LEN 4
11699 /* The handle of the v-port */
11701 #define MC_CMD_VPORT_FREE_IN_VPORT_ID_LEN 4
11708 * allocate a v-adaptor.
11717 /* The port to connect to the v-adaptor's port. */
11719 #define MC_CMD_VADAPTOR_ALLOC_IN_UPSTREAM_PORT_ID_LEN 4
11720 /* Flags controlling v-adaptor creation */
11722 #define MC_CMD_VADAPTOR_ALLOC_IN_FLAGS_LEN 4
11729 #define MC_CMD_VADAPTOR_ALLOC_IN_NUM_VLANS_LEN 4
11732 #define MC_CMD_VADAPTOR_ALLOC_IN_NUM_VLAN_TAGS_LEN 4
11735 #define MC_CMD_VADAPTOR_ALLOC_IN_VLAN_TAGS_LEN 4
11740 /* The MAC address to assign to this v-adaptor */
11751 * de-allocate a v-adaptor.
11759 #define MC_CMD_VADAPTOR_FREE_IN_LEN 4
11760 /* The port to which the v-adaptor is connected. */
11762 #define MC_CMD_VADAPTOR_FREE_IN_UPSTREAM_PORT_ID_LEN 4
11769 * assign a new MAC address to a v-adaptor.
11778 /* The port to which the v-adaptor is connected. */
11780 #define MC_CMD_VADAPTOR_SET_MAC_IN_UPSTREAM_PORT_ID_LEN 4
11781 /* The new MAC address to assign to this v-adaptor */
11782 #define MC_CMD_VADAPTOR_SET_MAC_IN_MACADDR_OFST 4
11790 * read the MAC address assigned to a v-adaptor.
11798 #define MC_CMD_VADAPTOR_GET_MAC_IN_LEN 4
11799 /* The port to which the v-adaptor is connected. */
11801 #define MC_CMD_VADAPTOR_GET_MAC_IN_UPSTREAM_PORT_ID_LEN 4
11805 /* The MAC address assigned to this v-adaptor */
11811 * read some config of v-adaptor.
11819 #define MC_CMD_VADAPTOR_QUERY_IN_LEN 4
11820 /* The port to which the v-adaptor is connected. */
11822 #define MC_CMD_VADAPTOR_QUERY_IN_UPSTREAM_PORT_ID_LEN 4
11828 #define MC_CMD_VADAPTOR_QUERY_OUT_PORT_FLAGS_LEN 4
11829 /* The v-adaptor flags as defined at MC_CMD_VADAPTOR_ALLOC. */
11830 #define MC_CMD_VADAPTOR_QUERY_OUT_VADAPTOR_FLAGS_OFST 4
11831 #define MC_CMD_VADAPTOR_QUERY_OUT_VADAPTOR_FLAGS_LEN 4
11834 #define MC_CMD_VADAPTOR_QUERY_OUT_NUM_AVAILABLE_VLAN_TAGS_LEN 4
11849 #define MC_CMD_EVB_PORT_ASSIGN_IN_PORT_ID_LEN 4
11851 #define MC_CMD_EVB_PORT_ASSIGN_IN_FUNCTION_OFST 4
11852 #define MC_CMD_EVB_PORT_ASSIGN_IN_FUNCTION_LEN 4
11873 #define MC_CMD_RDWR_A64_REGIONS_IN_REGION0_LEN 4
11874 #define MC_CMD_RDWR_A64_REGIONS_IN_REGION1_OFST 4
11875 #define MC_CMD_RDWR_A64_REGIONS_IN_REGION1_LEN 4
11877 #define MC_CMD_RDWR_A64_REGIONS_IN_REGION2_LEN 4
11879 #define MC_CMD_RDWR_A64_REGIONS_IN_REGION3_LEN 4
11880 /* Write enable bits 0-3, set to write, clear to read. */
11882 #define MC_CMD_RDWR_A64_REGIONS_IN_WRITE_MASK_WIDTH 4
11891 #define MC_CMD_RDWR_A64_REGIONS_OUT_REGION0_LEN 4
11892 #define MC_CMD_RDWR_A64_REGIONS_OUT_REGION1_OFST 4
11893 #define MC_CMD_RDWR_A64_REGIONS_OUT_REGION1_LEN 4
11895 #define MC_CMD_RDWR_A64_REGIONS_OUT_REGION2_LEN 4
11897 #define MC_CMD_RDWR_A64_REGIONS_OUT_REGION3_LEN 4
11909 #define MC_CMD_ONLOAD_STACK_ALLOC_IN_LEN 4
11912 #define MC_CMD_ONLOAD_STACK_ALLOC_IN_UPSTREAM_PORT_ID_LEN 4
11915 #define MC_CMD_ONLOAD_STACK_ALLOC_OUT_LEN 4
11918 #define MC_CMD_ONLOAD_STACK_ALLOC_OUT_ONLOAD_STACK_ID_LEN 4
11930 #define MC_CMD_ONLOAD_STACK_FREE_IN_LEN 4
11933 #define MC_CMD_ONLOAD_STACK_FREE_IN_ONLOAD_STACK_ID_LEN 4
11951 #define MC_CMD_RSS_CONTEXT_ALLOC_IN_UPSTREAM_PORT_ID_LEN 4
11953 #define MC_CMD_RSS_CONTEXT_ALLOC_IN_TYPE_OFST 4
11954 #define MC_CMD_RSS_CONTEXT_ALLOC_IN_TYPE_LEN 4
11960 * queues, but the key and indirection table are pre-configured and may not be
11961 * changed. For this mode, NUM_QUEUES must 2, 4, 8, 16, 32 or 64.
11964 /* Number of queues spanned by this context, in the range 1-64; valid offsets
11965 * in the indirection table will be in the range 0 to NUM_QUEUES-1.
11968 #define MC_CMD_RSS_CONTEXT_ALLOC_IN_NUM_QUEUES_LEN 4
11971 #define MC_CMD_RSS_CONTEXT_ALLOC_OUT_LEN 4
11977 #define MC_CMD_RSS_CONTEXT_ALLOC_OUT_RSS_CONTEXT_ID_LEN 4
11991 #define MC_CMD_RSS_CONTEXT_FREE_IN_LEN 4
11994 #define MC_CMD_RSS_CONTEXT_FREE_IN_RSS_CONTEXT_ID_LEN 4
12012 #define MC_CMD_RSS_CONTEXT_SET_KEY_IN_RSS_CONTEXT_ID_LEN 4
12013 /* The 40-byte Toeplitz hash key (TBD endianness issues?) */
12014 #define MC_CMD_RSS_CONTEXT_SET_KEY_IN_TOEPLITZ_KEY_OFST 4
12030 #define MC_CMD_RSS_CONTEXT_GET_KEY_IN_LEN 4
12033 #define MC_CMD_RSS_CONTEXT_GET_KEY_IN_RSS_CONTEXT_ID_LEN 4
12037 /* The 40-byte Toeplitz hash key (TBD endianness issues?) */
12038 #define MC_CMD_RSS_CONTEXT_GET_KEY_OUT_TOEPLITZ_KEY_OFST 4
12054 #define MC_CMD_RSS_CONTEXT_SET_TABLE_IN_RSS_CONTEXT_ID_LEN 4
12055 /* The 128-byte indirection table (1 byte per entry) */
12056 #define MC_CMD_RSS_CONTEXT_SET_TABLE_IN_INDIRECTION_TABLE_OFST 4
12072 #define MC_CMD_RSS_CONTEXT_GET_TABLE_IN_LEN 4
12075 #define MC_CMD_RSS_CONTEXT_GET_TABLE_IN_RSS_CONTEXT_ID_LEN 4
12079 /* The 128-byte indirection table (1 byte per entry) */
12080 #define MC_CMD_RSS_CONTEXT_GET_TABLE_OUT_INDIRECTION_TABLE_OFST 4
12096 #define MC_CMD_RSS_CONTEXT_SET_FLAGS_IN_RSS_CONTEXT_ID_LEN 4
12099 * in this case, the MODE fields may be set to non-zero values, and will take
12109 #define MC_CMD_RSS_CONTEXT_SET_FLAGS_IN_FLAGS_OFST 4
12110 #define MC_CMD_RSS_CONTEXT_SET_FLAGS_IN_FLAGS_LEN 4
12119 #define MC_CMD_RSS_CONTEXT_SET_FLAGS_IN_RESERVED_LBN 4
12120 #define MC_CMD_RSS_CONTEXT_SET_FLAGS_IN_RESERVED_WIDTH 4
12122 #define MC_CMD_RSS_CONTEXT_SET_FLAGS_IN_TCP_IPV4_RSS_MODE_WIDTH 4
12124 #define MC_CMD_RSS_CONTEXT_SET_FLAGS_IN_UDP_IPV4_RSS_MODE_WIDTH 4
12126 #define MC_CMD_RSS_CONTEXT_SET_FLAGS_IN_OTHER_IPV4_RSS_MODE_WIDTH 4
12128 #define MC_CMD_RSS_CONTEXT_SET_FLAGS_IN_TCP_IPV6_RSS_MODE_WIDTH 4
12130 #define MC_CMD_RSS_CONTEXT_SET_FLAGS_IN_UDP_IPV6_RSS_MODE_WIDTH 4
12132 #define MC_CMD_RSS_CONTEXT_SET_FLAGS_IN_OTHER_IPV6_RSS_MODE_WIDTH 4
12147 #define MC_CMD_RSS_CONTEXT_GET_FLAGS_IN_LEN 4
12150 #define MC_CMD_RSS_CONTEXT_GET_FLAGS_IN_RSS_CONTEXT_ID_LEN 4
12156 * capability), the _EN bits report the state. If any _MODE bits are non-zero
12159 * guaranteed to be consistent with the _EN flags for a freshly-allocated RSS
12167 #define MC_CMD_RSS_CONTEXT_GET_FLAGS_OUT_FLAGS_OFST 4
12168 #define MC_CMD_RSS_CONTEXT_GET_FLAGS_OUT_FLAGS_LEN 4
12177 #define MC_CMD_RSS_CONTEXT_GET_FLAGS_OUT_RESERVED_LBN 4
12178 #define MC_CMD_RSS_CONTEXT_GET_FLAGS_OUT_RESERVED_WIDTH 4
12180 #define MC_CMD_RSS_CONTEXT_GET_FLAGS_OUT_TCP_IPV4_RSS_MODE_WIDTH 4
12182 #define MC_CMD_RSS_CONTEXT_GET_FLAGS_OUT_UDP_IPV4_RSS_MODE_WIDTH 4
12184 #define MC_CMD_RSS_CONTEXT_GET_FLAGS_OUT_OTHER_IPV4_RSS_MODE_WIDTH 4
12186 #define MC_CMD_RSS_CONTEXT_GET_FLAGS_OUT_TCP_IPV6_RSS_MODE_WIDTH 4
12188 #define MC_CMD_RSS_CONTEXT_GET_FLAGS_OUT_UDP_IPV6_RSS_MODE_WIDTH 4
12190 #define MC_CMD_RSS_CONTEXT_GET_FLAGS_OUT_OTHER_IPV6_RSS_MODE_WIDTH 4
12205 #define MC_CMD_DOT1P_MAPPING_ALLOC_IN_UPSTREAM_PORT_ID_LEN 4
12206 /* Number of queues spanned by this mapping, in the range 1-64; valid fixed
12207 * offsets in the mapping table will be in the range 0 to NUM_QUEUES-1, and
12210 #define MC_CMD_DOT1P_MAPPING_ALLOC_IN_NUM_QUEUES_OFST 4
12211 #define MC_CMD_DOT1P_MAPPING_ALLOC_IN_NUM_QUEUES_LEN 4
12214 #define MC_CMD_DOT1P_MAPPING_ALLOC_OUT_LEN 4
12220 #define MC_CMD_DOT1P_MAPPING_ALLOC_OUT_DOT1P_MAPPING_ID_LEN 4
12234 #define MC_CMD_DOT1P_MAPPING_FREE_IN_LEN 4
12237 #define MC_CMD_DOT1P_MAPPING_FREE_IN_DOT1P_MAPPING_ID_LEN 4
12255 #define MC_CMD_DOT1P_MAPPING_SET_TABLE_IN_DOT1P_MAPPING_ID_LEN 4
12256 /* Per-priority mappings (1 32-bit word per entry - an offset or RSS context
12259 #define MC_CMD_DOT1P_MAPPING_SET_TABLE_IN_MAPPING_TABLE_OFST 4
12275 #define MC_CMD_DOT1P_MAPPING_GET_TABLE_IN_LEN 4
12278 #define MC_CMD_DOT1P_MAPPING_GET_TABLE_IN_DOT1P_MAPPING_ID_LEN 4
12282 /* Per-priority mappings (1 32-bit word per entry - an offset or RSS context
12285 #define MC_CMD_DOT1P_MAPPING_GET_TABLE_OUT_MAPPING_TABLE_OFST 4
12304 #define MC_CMD_GET_VECTOR_CFG_OUT_VEC_BASE_LEN 4
12306 #define MC_CMD_GET_VECTOR_CFG_OUT_VECS_PER_PF_OFST 4
12307 #define MC_CMD_GET_VECTOR_CFG_OUT_VECS_PER_PF_LEN 4
12310 #define MC_CMD_GET_VECTOR_CFG_OUT_VECS_PER_VF_LEN 4
12327 #define MC_CMD_SET_VECTOR_CFG_IN_VEC_BASE_LEN 4
12329 #define MC_CMD_SET_VECTOR_CFG_IN_VECS_PER_PF_OFST 4
12330 #define MC_CMD_SET_VECTOR_CFG_IN_VECS_PER_PF_LEN 4
12333 #define MC_CMD_SET_VECTOR_CFG_IN_VECS_PER_VF_LEN 4
12340 * Add a MAC address to a v-port
12349 /* The handle of the v-port */
12351 #define MC_CMD_VPORT_ADD_MAC_ADDRESS_IN_VPORT_ID_LEN 4
12353 #define MC_CMD_VPORT_ADD_MAC_ADDRESS_IN_MACADDR_OFST 4
12361 * Delete a MAC address from a v-port
12370 /* The handle of the v-port */
12372 #define MC_CMD_VPORT_DEL_MAC_ADDRESS_IN_VPORT_ID_LEN 4
12374 #define MC_CMD_VPORT_DEL_MAC_ADDRESS_IN_MACADDR_OFST 4
12382 * Delete a MAC address from a v-port
12390 #define MC_CMD_VPORT_GET_MAC_ADDRESSES_IN_LEN 4
12391 /* The handle of the v-port */
12393 #define MC_CMD_VPORT_GET_MAC_ADDRESSES_IN_VPORT_ID_LEN 4
12396 #define MC_CMD_VPORT_GET_MAC_ADDRESSES_OUT_LENMIN 4
12398 #define MC_CMD_VPORT_GET_MAC_ADDRESSES_OUT_LEN(num) (4+6*(num))
12401 #define MC_CMD_VPORT_GET_MAC_ADDRESSES_OUT_MACADDR_COUNT_LEN 4
12403 #define MC_CMD_VPORT_GET_MAC_ADDRESSES_OUT_MACADDR_OFST 4
12410 * Replace VLAN tags and/or MAC addresses of an existing v-port. If the v-port
12411 * has already been passed to another function (v-port's user), then that
12421 /* The handle of the v-port */
12423 #define MC_CMD_VPORT_RECONFIGURE_IN_VPORT_ID_LEN 4
12425 #define MC_CMD_VPORT_RECONFIGURE_IN_FLAGS_OFST 4
12426 #define MC_CMD_VPORT_RECONFIGURE_IN_FLAGS_LEN 4
12433 * v-switch.
12436 #define MC_CMD_VPORT_RECONFIGURE_IN_NUM_VLAN_TAGS_LEN 4
12439 #define MC_CMD_VPORT_RECONFIGURE_IN_VLAN_TAGS_LEN 4
12446 #define MC_CMD_VPORT_RECONFIGURE_IN_NUM_MACADDRS_LEN 4
12450 #define MC_CMD_VPORT_RECONFIGURE_IN_MACADDRS_NUM 4
12453 #define MC_CMD_VPORT_RECONFIGURE_OUT_LEN 4
12455 #define MC_CMD_VPORT_RECONFIGURE_OUT_FLAGS_LEN 4
12461 * read some config of v-port.
12469 #define MC_CMD_EVB_PORT_QUERY_IN_LEN 4
12470 /* The handle of the v-port */
12472 #define MC_CMD_EVB_PORT_QUERY_IN_PORT_ID_LEN 4
12478 #define MC_CMD_EVB_PORT_QUERY_OUT_PORT_FLAGS_LEN 4
12479 /* The number of VLAN tags that may be used on a v-adaptor connected to this
12482 #define MC_CMD_EVB_PORT_QUERY_OUT_NUM_AVAILABLE_VLAN_TAGS_OFST 4
12483 #define MC_CMD_EVB_PORT_QUERY_OUT_NUM_AVAILABLE_VLAN_TAGS_LEN 4
12501 #define MC_CMD_DUMP_BUFTBL_ENTRIES_IN_FIRSTID_LEN 4
12503 #define MC_CMD_DUMP_BUFTBL_ENTRIES_IN_NUMENTRIES_OFST 4
12504 #define MC_CMD_DUMP_BUFTBL_ENTRIES_IN_NUMENTRIES_LEN 4
12526 #define MC_CMD_SET_RXDP_CONFIG_IN_LEN 4
12528 #define MC_CMD_SET_RXDP_CONFIG_IN_DATA_LEN 4
12556 #define MC_CMD_GET_RXDP_CONFIG_OUT_LEN 4
12558 #define MC_CMD_GET_RXDP_CONFIG_OUT_DATA_LEN 4
12582 #define MC_CMD_GET_CLOCK_OUT_SYS_FREQ_LEN 4
12584 #define MC_CMD_GET_CLOCK_OUT_DPCPU_FREQ_OFST 4
12585 #define MC_CMD_GET_CLOCK_OUT_DPCPU_FREQ_LEN 4
12600 #define MC_CMD_SET_CLOCK_IN_SYS_FREQ_LEN 4
12603 /* Requested frequency in MHz for inter-core clock domain */
12604 #define MC_CMD_SET_CLOCK_IN_ICORE_FREQ_OFST 4
12605 #define MC_CMD_SET_CLOCK_IN_ICORE_FREQ_LEN 4
12606 /* enum: Leave the inter-core clock domain frequency unchanged */
12610 #define MC_CMD_SET_CLOCK_IN_DPCPU_FREQ_LEN 4
12615 #define MC_CMD_SET_CLOCK_IN_PCS_FREQ_LEN 4
12620 #define MC_CMD_SET_CLOCK_IN_MC_FREQ_LEN 4
12625 #define MC_CMD_SET_CLOCK_IN_RMON_FREQ_LEN 4
12630 #define MC_CMD_SET_CLOCK_IN_VSWITCH_FREQ_LEN 4
12638 #define MC_CMD_SET_CLOCK_OUT_SYS_FREQ_LEN 4
12641 /* Resulting inter-core frequency in MHz */
12642 #define MC_CMD_SET_CLOCK_OUT_ICORE_FREQ_OFST 4
12643 #define MC_CMD_SET_CLOCK_OUT_ICORE_FREQ_LEN 4
12644 /* enum: The inter-core clock domain doesn't exist / isn't used */
12648 #define MC_CMD_SET_CLOCK_OUT_DPCPU_FREQ_LEN 4
12653 #define MC_CMD_SET_CLOCK_OUT_PCS_FREQ_LEN 4
12658 #define MC_CMD_SET_CLOCK_OUT_MC_FREQ_LEN 4
12663 #define MC_CMD_SET_CLOCK_OUT_RMON_FREQ_LEN 4
12668 #define MC_CMD_SET_CLOCK_OUT_VSWITCH_FREQ_LEN 4
12684 #define MC_CMD_DPCPU_RPC_IN_CPU_LEN 4
12701 /* First 8 bits [39:32] of DATA are consumed by MC-DPCPU protocol and must be
12704 #define MC_CMD_DPCPU_RPC_IN_DATA_OFST 4
12747 /* Register data to write. Only valid in write/write-read. */
12749 #define MC_CMD_DPCPU_RPC_IN_CSR_ACCESS_DATA_LEN 4
12752 #define MC_CMD_DPCPU_RPC_IN_CSR_ACCESS_ADDRESS_LEN 4
12757 #define MC_CMD_DPCPU_RPC_OUT_RC_LEN 4
12759 #define MC_CMD_DPCPU_RPC_OUT_DATA_OFST 4
12768 #define MC_CMD_DPCPU_RPC_OUT_CSR_ACCESS_READ_VAL_1_LEN 4
12770 #define MC_CMD_DPCPU_RPC_OUT_CSR_ACCESS_READ_VAL_2_LEN 4
12772 #define MC_CMD_DPCPU_RPC_OUT_CSR_ACCESS_READ_VAL_3_LEN 4
12774 #define MC_CMD_DPCPU_RPC_OUT_CSR_ACCESS_READ_VAL_4_LEN 4
12786 #define MC_CMD_TRIGGER_INTERRUPT_IN_LEN 4
12789 #define MC_CMD_TRIGGER_INTERRUPT_IN_INTR_LEVEL_LEN 4
12804 #define MC_CMD_SHMBOOT_OP_IN_LEN 4
12807 #define MC_CMD_SHMBOOT_OP_IN_SHMBOOT_OP_LEN 4
12826 #define MC_CMD_CAP_BLK_READ_IN_CAP_REG_LEN 4
12827 #define MC_CMD_CAP_BLK_READ_IN_ADDR_OFST 4
12828 #define MC_CMD_CAP_BLK_READ_IN_ADDR_LEN 4
12830 #define MC_CMD_CAP_BLK_READ_IN_COUNT_LEN 4
12839 #define MC_CMD_CAP_BLK_READ_OUT_BUFFER_HI_OFST 4
12855 #define MC_CMD_DUMP_DO_IN_PADDING_LEN 4
12856 #define MC_CMD_DUMP_DO_IN_DUMPSPEC_SRC_OFST 4
12857 #define MC_CMD_DUMP_DO_IN_DUMPSPEC_SRC_LEN 4
12861 #define MC_CMD_DUMP_DO_IN_DUMPSPEC_SRC_CUSTOM_TYPE_LEN 4
12867 #define MC_CMD_DUMP_DO_IN_DUMPSPEC_SRC_CUSTOM_NVRAM_PARTITION_TYPE_ID_LEN 4
12869 #define MC_CMD_DUMP_DO_IN_DUMPSPEC_SRC_CUSTOM_NVRAM_OFFSET_LEN 4
12871 #define MC_CMD_DUMP_DO_IN_DUMPSPEC_SRC_CUSTOM_HOST_MEMORY_ADDR_LO_LEN 4
12873 #define MC_CMD_DUMP_DO_IN_DUMPSPEC_SRC_CUSTOM_HOST_MEMORY_ADDR_HI_LEN 4
12875 #define MC_CMD_DUMP_DO_IN_DUMPSPEC_SRC_CUSTOM_HOST_MEMORY_MLI_ROOT_ADDR_LO_LEN 4
12878 #define MC_CMD_DUMP_DO_IN_DUMPSPEC_SRC_CUSTOM_HOST_MEMORY_MLI_ROOT_ADDR_HI_LEN 4
12880 #define MC_CMD_DUMP_DO_IN_DUMPSPEC_SRC_CUSTOM_HOST_MEMORY_MLI_DEPTH_LEN 4
12883 #define MC_CMD_DUMP_DO_IN_DUMPSPEC_SRC_CUSTOM_UART_PORT_LEN 4
12889 #define MC_CMD_DUMP_DO_IN_DUMPSPEC_SRC_CUSTOM_SIZE_LEN 4
12891 #define MC_CMD_DUMP_DO_IN_DUMPFILE_DST_LEN 4
12895 #define MC_CMD_DUMP_DO_IN_DUMPFILE_DST_CUSTOM_TYPE_LEN 4
12899 #define MC_CMD_DUMP_DO_IN_DUMPFILE_DST_CUSTOM_NVRAM_PARTITION_TYPE_ID_LEN 4
12901 #define MC_CMD_DUMP_DO_IN_DUMPFILE_DST_CUSTOM_NVRAM_OFFSET_LEN 4
12903 #define MC_CMD_DUMP_DO_IN_DUMPFILE_DST_CUSTOM_HOST_MEMORY_ADDR_LO_LEN 4
12905 #define MC_CMD_DUMP_DO_IN_DUMPFILE_DST_CUSTOM_HOST_MEMORY_ADDR_HI_LEN 4
12907 #define MC_CMD_DUMP_DO_IN_DUMPFILE_DST_CUSTOM_HOST_MEMORY_MLI_ROOT_ADDR_LO_LEN 4
12909 #define MC_CMD_DUMP_DO_IN_DUMPFILE_DST_CUSTOM_HOST_MEMORY_MLI_ROOT_ADDR_HI_LEN 4
12911 #define MC_CMD_DUMP_DO_IN_DUMPFILE_DST_CUSTOM_HOST_MEMORY_MLI_DEPTH_LEN 4
12913 #define MC_CMD_DUMP_DO_IN_DUMPFILE_DST_CUSTOM_UART_PORT_LEN 4
12915 #define MC_CMD_DUMP_DO_IN_DUMPFILE_DST_CUSTOM_SIZE_LEN 4
12918 #define MC_CMD_DUMP_DO_OUT_LEN 4
12920 #define MC_CMD_DUMP_DO_OUT_DUMPFILE_SIZE_LEN 4
12934 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_ENABLE_LEN 4
12935 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPSPEC_SRC_OFST 4
12936 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPSPEC_SRC_LEN 4
12940 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPSPEC_SRC_CUSTOM_TYPE_LEN 4
12944 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPSPEC_SRC_CUSTOM_NVRAM_PARTITION_TYPE_ID_LEN 4
12946 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPSPEC_SRC_CUSTOM_NVRAM_OFFSET_LEN 4
12948 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPSPEC_SRC_CUSTOM_HOST_MEMORY_ADDR_LO_LEN 4
12950 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPSPEC_SRC_CUSTOM_HOST_MEMORY_ADDR_HI_LEN 4
12952 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPSPEC_SRC_CUSTOM_HOST_MEMORY_MLI_ROOT_ADDR_LO_LEN 4
12954 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPSPEC_SRC_CUSTOM_HOST_MEMORY_MLI_ROOT_ADDR_HI_LEN 4
12956 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPSPEC_SRC_CUSTOM_HOST_MEMORY_MLI_DEPTH_LEN 4
12958 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPSPEC_SRC_CUSTOM_UART_PORT_LEN 4
12960 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPSPEC_SRC_CUSTOM_SIZE_LEN 4
12962 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPFILE_DST_LEN 4
12966 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPFILE_DST_CUSTOM_TYPE_LEN 4
12970 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPFILE_DST_CUSTOM_NVRAM_PARTITION_TYPE_ID_LEN 4
12972 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPFILE_DST_CUSTOM_NVRAM_OFFSET_LEN 4
12974 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPFILE_DST_CUSTOM_HOST_MEMORY_ADDR_LO_LEN 4
12976 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPFILE_DST_CUSTOM_HOST_MEMORY_ADDR_HI_LEN 4
12978 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPFILE_DST_CUSTOM_HOST_MEMORY_MLI_ROOT_ADDR_LO_LEN 4
12980 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPFILE_DST_CUSTOM_HOST_MEMORY_MLI_ROOT_ADDR_HI_LEN 4
12982 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPFILE_DST_CUSTOM_HOST_MEMORY_MLI_DEPTH_LEN 4
12984 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPFILE_DST_CUSTOM_UART_PORT_LEN 4
12986 #define MC_CMD_DUMP_CONFIGURE_UNSOLICITED_IN_DUMPFILE_DST_CUSTOM_SIZE_LEN 4
12990 * Adjusts power supply parameters. This is a warranty-voiding operation.
13002 #define MC_CMD_SET_PSU_IN_PARAM_LEN 4
13004 #define MC_CMD_SET_PSU_IN_RAIL_OFST 4
13005 #define MC_CMD_SET_PSU_IN_RAIL_LEN 4
13010 #define MC_CMD_SET_PSU_IN_VALUE_LEN 4
13030 #define MC_CMD_GET_FUNCTION_INFO_OUT_PF_LEN 4
13031 #define MC_CMD_GET_FUNCTION_INFO_OUT_VF_OFST 4
13032 #define MC_CMD_GET_FUNCTION_INFO_OUT_VF_LEN 4
13054 * should we wish to make this reliable; currently requests are fire-and-
13068 #define MC_CMD_UART_SEND_DATA_OUT_CHECKSUM_LEN 4
13070 #define MC_CMD_UART_SEND_DATA_OUT_OFFSET_OFST 4
13071 #define MC_CMD_UART_SEND_DATA_OUT_OFFSET_LEN 4
13074 #define MC_CMD_UART_SEND_DATA_OUT_LENGTH_LEN 4
13077 #define MC_CMD_UART_SEND_DATA_OUT_RESERVED_LEN 4
13100 #define MC_CMD_UART_RECV_DATA_OUT_CHECKSUM_LEN 4
13102 #define MC_CMD_UART_RECV_DATA_OUT_OFFSET_OFST 4
13103 #define MC_CMD_UART_RECV_DATA_OUT_OFFSET_LEN 4
13106 #define MC_CMD_UART_RECV_DATA_OUT_LENGTH_LEN 4
13109 #define MC_CMD_UART_RECV_DATA_OUT_RESERVED_LEN 4
13117 #define MC_CMD_UART_RECV_DATA_IN_CHECKSUM_LEN 4
13119 #define MC_CMD_UART_RECV_DATA_IN_RESERVED1_OFST 4
13120 #define MC_CMD_UART_RECV_DATA_IN_RESERVED1_LEN 4
13123 #define MC_CMD_UART_RECV_DATA_IN_RESERVED2_LEN 4
13126 #define MC_CMD_UART_RECV_DATA_IN_RESERVED3_LEN 4
13134 * Read data programmed into the device One-Time-Programmable (OTP) Fuses
13145 #define MC_CMD_READ_FUSES_IN_OFFSET_LEN 4
13147 #define MC_CMD_READ_FUSES_IN_LENGTH_OFST 4
13148 #define MC_CMD_READ_FUSES_IN_LENGTH_LEN 4
13151 #define MC_CMD_READ_FUSES_OUT_LENMIN 4
13153 #define MC_CMD_READ_FUSES_OUT_LEN(num) (4+1*(num))
13156 #define MC_CMD_READ_FUSES_OUT_LENGTH_LEN 4
13158 #define MC_CMD_READ_FUSES_OUT_DATA_OFST 4
13173 #define MC_CMD_KR_TUNE_IN_LENMIN 4
13175 #define MC_CMD_KR_TUNE_IN_LEN(num) (4+4*(num))
13208 #define MC_CMD_KR_TUNE_IN_KR_TUNE_ARGS_OFST 4
13209 #define MC_CMD_KR_TUNE_IN_KR_TUNE_ARGS_LEN 4
13217 #define MC_CMD_KR_TUNE_RXEQ_GET_IN_LEN 4
13226 #define MC_CMD_KR_TUNE_RXEQ_GET_OUT_LENMIN 4
13228 #define MC_CMD_KR_TUNE_RXEQ_GET_OUT_LEN(num) (0+4*(num))
13231 #define MC_CMD_KR_TUNE_RXEQ_GET_OUT_PARAM_LEN 4
13236 /* enum: Attenuation (0-15, Huntington) */
13238 /* enum: CTLE Boost (0-15, Huntington) */
13240 /* enum: Edge DFE Tap1 (Huntington - 0 - max negative, 64 - zero, 127 - max
13241 * positive, Medford - 0-31)
13244 /* enum: Edge DFE Tap2 (Huntington - 0 - max negative, 32 - zero, 63 - max
13245 * positive, Medford - 0-31)
13248 /* enum: Edge DFE Tap3 (Huntington - 0 - max negative, 32 - zero, 63 - max
13249 * positive, Medford - 0-16)
13252 /* enum: Edge DFE Tap4 (Huntington - 0 - max negative, 32 - zero, 63 - max
13253 * positive, Medford - 0-16)
13256 /* enum: Edge DFE Tap5 (Huntington - 0 - max negative, 32 - zero, 63 - max
13257 * positive, Medford - 0-16)
13260 /* enum: Edge DFE DLEV (0-128 for Medford) */
13262 /* enum: Variable Gain Amplifier (0-15, Medford) */
13264 /* enum: CTLE EQ Capacitor (0-15, Medford) */
13266 /* enum: CTLE EQ Resistor (0-7, Medford) */
13268 /* enum: CTLE gain (0-31, Medford2) */
13270 /* enum: CTLE pole (0-31, Medford2) */
13272 /* enum: CTLE peaking (0-31, Medford2) */
13274 /* enum: DFE Tap1 - even path (Medford2 - 6 bit signed (-29 - +29)) */
13276 /* enum: DFE Tap1 - odd path (Medford2 - 6 bit signed (-29 - +29)) */
13278 /* enum: DFE Tap2 (Medford2 - 6 bit signed (-20 - +20)) */
13280 /* enum: DFE Tap3 (Medford2 - 6 bit signed (-20 - +20)) */
13282 /* enum: DFE Tap4 (Medford2 - 6 bit signed (-20 - +20)) */
13284 /* enum: DFE Tap5 (Medford2 - 6 bit signed (-24 - +24)) */
13286 /* enum: DFE Tap6 (Medford2 - 6 bit signed (-24 - +24)) */
13288 /* enum: DFE Tap7 (Medford2 - 6 bit signed (-24 - +24)) */
13290 /* enum: DFE Tap8 (Medford2 - 6 bit signed (-24 - +24)) */
13292 /* enum: DFE Tap9 (Medford2 - 6 bit signed (-24 - +24)) */
13294 /* enum: DFE Tap10 (Medford2 - 6 bit signed (-24 - +24)) */
13296 /* enum: DFE Tap11 (Medford2 - 6 bit signed (-24 - +24)) */
13298 /* enum: DFE Tap12 (Medford2 - 6 bit signed (-24 - +24)) */
13300 /* enum: I/Q clk offset (Medford2 - 4 bit signed (-5 - +5))) */
13303 * (Medford2 - 6 bit signed (-29 - +29)))
13307 * (Medford2 - 6 bit signed (-29 - +29)))
13311 * (Medford2 - 6 bit signed (-29 - +29)))
13315 * (Medford2 - 6 bit signed (-29 - +29)))
13332 #define MC_CMD_KR_TUNE_RXEQ_GET_OUT_RESERVED_WIDTH 4
13341 #define MC_CMD_KR_TUNE_RXEQ_SET_IN_LEN(num) (4+4*(num))
13349 #define MC_CMD_KR_TUNE_RXEQ_SET_IN_PARAM_OFST 4
13350 #define MC_CMD_KR_TUNE_RXEQ_SET_IN_PARAM_LEN 4
13364 #define MC_CMD_KR_TUNE_RXEQ_SET_IN_RESERVED_WIDTH 4
13374 #define MC_CMD_KR_TUNE_TXEQ_GET_IN_LEN 4
13383 #define MC_CMD_KR_TUNE_TXEQ_GET_OUT_LENMIN 4
13385 #define MC_CMD_KR_TUNE_TXEQ_GET_OUT_LEN(num) (0+4*(num))
13388 #define MC_CMD_KR_TUNE_TXEQ_GET_OUT_PARAM_LEN 4
13395 /* enum: De-Emphasis Tap1 Magnitude (0-7) (Huntington) */
13397 /* enum: De-Emphasis Tap1 Fine */
13399 /* enum: De-Emphasis Tap2 Magnitude (0-6) (Huntington) */
13401 /* enum: De-Emphasis Tap2 Fine (Huntington) */
13403 /* enum: Pre-Emphasis Magnitude (Huntington) */
13405 /* enum: Pre-Emphasis Fine (Huntington) */
13415 /* enum: Pre-shoot Tap (Medford, Medford2) */
13417 /* enum: De-emphasis Tap (Medford, Medford2) */
13436 #define MC_CMD_KR_TUNE_TXEQ_SET_IN_LEN(num) (4+4*(num))
13444 #define MC_CMD_KR_TUNE_TXEQ_SET_IN_PARAM_OFST 4
13445 #define MC_CMD_KR_TUNE_TXEQ_SET_IN_PARAM_LEN 4
13467 #define MC_CMD_KR_TUNE_RECAL_IN_LEN 4
13486 /* Port-relative lane to scan eye on */
13487 #define MC_CMD_KR_TUNE_START_EYE_PLOT_IN_LANE_OFST 4
13488 #define MC_CMD_KR_TUNE_START_EYE_PLOT_IN_LANE_LEN 4
13498 #define MC_CMD_KR_TUNE_START_EYE_PLOT_V2_IN_LANE_OFST 4
13499 #define MC_CMD_KR_TUNE_START_EYE_PLOT_V2_IN_LANE_LEN 4
13506 #define MC_CMD_KR_TUNE_START_EYE_PLOT_V2_IN_BER_LEN 4
13512 #define MC_CMD_KR_TUNE_POLL_EYE_PLOT_IN_LEN 4
13537 #define MC_CMD_KR_TUNE_READ_FOM_IN_LANE_OFST 4
13538 #define MC_CMD_KR_TUNE_READ_FOM_IN_LANE_LEN 4
13545 #define MC_CMD_KR_TUNE_READ_FOM_OUT_LEN 4
13547 #define MC_CMD_KR_TUNE_READ_FOM_OUT_FOM_LEN 4
13557 #define MC_CMD_KR_TUNE_LINK_TRAIN_RUN_IN_RUN_OFST 4
13558 #define MC_CMD_KR_TUNE_LINK_TRAIN_RUN_IN_RUN_LEN 4
13570 #define MC_CMD_KR_TUNE_LINK_TRAIN_CMD_IN_LANE_OFST 4
13571 #define MC_CMD_KR_TUNE_LINK_TRAIN_CMD_IN_LANE_LEN 4
13574 #define MC_CMD_KR_TUNE_LINK_TRAIN_CMD_IN_INITIALIZE_LEN 4
13577 #define MC_CMD_KR_TUNE_LINK_TRAIN_CMD_IN_PRESET_LEN 4
13578 /* C(-1) request */
13580 #define MC_CMD_KR_TUNE_LINK_TRAIN_CMD_IN_CM1_LEN 4
13586 #define MC_CMD_KR_TUNE_LINK_TRAIN_CMD_IN_C0_LEN 4
13591 #define MC_CMD_KR_TUNE_LINK_TRAIN_CMD_IN_CP1_LEN 4
13597 /* C(-1) status */
13599 #define MC_CMD_KR_TUNE_LINK_TRAIN_CMD_OUT_CM1_STATUS_LEN 4
13605 #define MC_CMD_KR_TUNE_LINK_TRAIN_CMD_OUT_C0_STATUS_OFST 4
13606 #define MC_CMD_KR_TUNE_LINK_TRAIN_CMD_OUT_C0_STATUS_LEN 4
13611 #define MC_CMD_KR_TUNE_LINK_TRAIN_CMD_OUT_CP1_STATUS_LEN 4
13614 /* C(-1) value */
13616 #define MC_CMD_KR_TUNE_LINK_TRAIN_CMD_OUT_CM1_VALUE_LEN 4
13619 #define MC_CMD_KR_TUNE_LINK_TRAIN_CMD_OUT_C0_VALUE_LEN 4
13622 #define MC_CMD_KR_TUNE_LINK_TRAIN_CMD_OUT_CP1_VALUE_LEN 4
13634 #define MC_CMD_PCIE_TUNE_IN_LENMIN 4
13636 #define MC_CMD_PCIE_TUNE_IN_LEN(num) (4+4*(num))
13661 #define MC_CMD_PCIE_TUNE_IN_PCIE_TUNE_ARGS_OFST 4
13662 #define MC_CMD_PCIE_TUNE_IN_PCIE_TUNE_ARGS_LEN 4
13670 #define MC_CMD_PCIE_TUNE_RXEQ_GET_IN_LEN 4
13679 #define MC_CMD_PCIE_TUNE_RXEQ_GET_OUT_LENMIN 4
13681 #define MC_CMD_PCIE_TUNE_RXEQ_GET_OUT_LEN(num) (0+4*(num))
13684 #define MC_CMD_PCIE_TUNE_RXEQ_GET_OUT_PARAM_LEN 4
13689 /* enum: Attenuation (0-15) */
13691 /* enum: CTLE Boost (0-15) */
13693 /* enum: DFE Tap1 (0 - max negative, 64 - zero, 127 - max positive) */
13695 /* enum: DFE Tap2 (0 - max negative, 32 - zero, 63 - max positive) */
13697 /* enum: DFE Tap3 (0 - max negative, 32 - zero, 63 - max positive) */
13699 /* enum: DFE Tap4 (0 - max negative, 32 - zero, 63 - max positive) */
13701 /* enum: DFE Tap5 (0 - max negative, 32 - zero, 63 - max positive) */
13740 #define MC_CMD_PCIE_TUNE_RXEQ_SET_IN_LEN(num) (4+4*(num))
13748 #define MC_CMD_PCIE_TUNE_RXEQ_SET_IN_PARAM_OFST 4
13749 #define MC_CMD_PCIE_TUNE_RXEQ_SET_IN_PARAM_LEN 4
13773 #define MC_CMD_PCIE_TUNE_TXEQ_GET_IN_LEN 4
13782 #define MC_CMD_PCIE_TUNE_TXEQ_GET_OUT_LENMIN 4
13784 #define MC_CMD_PCIE_TUNE_TXEQ_GET_OUT_LEN(num) (0+4*(num))
13787 #define MC_CMD_PCIE_TUNE_TXEQ_GET_OUT_PARAM_LEN 4
13796 /* enum: De-emphasis coefficient C(-1) (PIPE) */
13798 /* enum: De-emphasis coefficient C(0) (PIPE) */
13800 /* enum: De-emphasis coefficient C(+1) (PIPE) */
13803 #define MC_CMD_PCIE_TUNE_TXEQ_GET_OUT_PARAM_LANE_WIDTH 4
13819 #define MC_CMD_PCIE_TUNE_START_EYE_PLOT_IN_LANE_OFST 4
13820 #define MC_CMD_PCIE_TUNE_START_EYE_PLOT_IN_LANE_LEN 4
13826 #define MC_CMD_PCIE_TUNE_POLL_EYE_PLOT_IN_LEN 4
13852 * - not used for V3 licensing
13860 #define MC_CMD_LICENSING_IN_LEN 4
13863 #define MC_CMD_LICENSING_IN_OP_LEN 4
13864 /* enum: re-read and apply licenses after a license key partition update; note
13865 * that this operation returns a zero-length response
13875 #define MC_CMD_LICENSING_OUT_VALID_APP_KEYS_LEN 4
13879 #define MC_CMD_LICENSING_OUT_INVALID_APP_KEYS_OFST 4
13880 #define MC_CMD_LICENSING_OUT_INVALID_APP_KEYS_LEN 4
13883 #define MC_CMD_LICENSING_OUT_BLACKLISTED_APP_KEYS_LEN 4
13886 #define MC_CMD_LICENSING_OUT_UNVERIFIABLE_APP_KEYS_LEN 4
13890 #define MC_CMD_LICENSING_OUT_WRONG_NODE_APP_KEYS_LEN 4
13895 #define MC_CMD_LICENSING_OUT_LICENSING_STATE_LEN 4
13896 /* licensing subsystem self-test report (for manftest) */
13898 #define MC_CMD_LICENSING_OUT_LICENSING_SELF_TEST_LEN 4
13899 /* enum: licensing subsystem self-test failed */
13901 /* enum: licensing subsystem self-test passed */
13907 * - V3 licensing (Medford)
13915 #define MC_CMD_LICENSING_V3_IN_LEN 4
13918 #define MC_CMD_LICENSING_V3_IN_OP_LEN 4
13919 /* enum: re-read and apply licenses after a license key partition update; note
13920 * that this operation returns a zero-length response
13932 #define MC_CMD_LICENSING_V3_OUT_VALID_KEYS_LEN 4
13936 #define MC_CMD_LICENSING_V3_OUT_INVALID_KEYS_OFST 4
13937 #define MC_CMD_LICENSING_V3_OUT_INVALID_KEYS_LEN 4
13940 #define MC_CMD_LICENSING_V3_OUT_UNVERIFIABLE_KEYS_LEN 4
13943 #define MC_CMD_LICENSING_V3_OUT_WRONG_NODE_KEYS_LEN 4
13948 #define MC_CMD_LICENSING_V3_OUT_LICENSING_STATE_LEN 4
13949 /* licensing subsystem self-test report (for manftest) */
13951 #define MC_CMD_LICENSING_V3_OUT_LICENSING_SELF_TEST_LEN 4
13952 /* enum: licensing subsystem self-test failed */
13954 /* enum: licensing subsystem self-test passed */
13976 * partition - V3 licensing (Medford)
13992 #define MC_CMD_LICENSING_GET_ID_V3_OUT_LICENSE_TYPE_LEN 4
13994 #define MC_CMD_LICENSING_GET_ID_V3_OUT_LICENSE_ID_LENGTH_OFST 4
13995 #define MC_CMD_LICENSING_GET_ID_V3_OUT_LICENSE_ID_LENGTH_LEN 4
14004 * Execute an arbitrary MCDI command on the slave MC of a dual-core device.
14005 * This will fail on a single-core system.
14030 #define MC_CMD_GET_LICENSED_APP_STATE_IN_LEN 4
14033 #define MC_CMD_GET_LICENSED_APP_STATE_IN_APP_ID_LEN 4
14036 #define MC_CMD_GET_LICENSED_APP_STATE_OUT_LEN 4
14039 #define MC_CMD_GET_LICENSED_APP_STATE_OUT_STATE_LEN 4
14064 #define MC_CMD_GET_LICENSED_V3_APP_STATE_IN_APP_ID_HI_OFST 4
14067 #define MC_CMD_GET_LICENSED_V3_APP_STATE_OUT_LEN 4
14070 #define MC_CMD_GET_LICENSED_V3_APP_STATE_OUT_STATE_LEN 4
14095 #define MC_CMD_GET_LICENSED_V3_FEATURE_STATES_IN_FEATURES_HI_OFST 4
14099 /* states of these features - bit set for licensed, clear for not licensed */
14103 #define MC_CMD_GET_LICENSED_V3_FEATURE_STATES_OUT_STATES_HI_OFST 4
14107 * Perform an action for an individual licensed application - not used for V3
14118 #define MC_CMD_LICENSED_APP_OP_IN_LEN(num) (8+4*(num))
14121 #define MC_CMD_LICENSED_APP_OP_IN_APP_ID_LEN 4
14123 #define MC_CMD_LICENSED_APP_OP_IN_OP_OFST 4
14124 #define MC_CMD_LICENSED_APP_OP_IN_OP_LEN 4
14131 #define MC_CMD_LICENSED_APP_OP_IN_ARGS_LEN 4
14138 #define MC_CMD_LICENSED_APP_OP_OUT_LEN(num) (0+4*(num))
14141 #define MC_CMD_LICENSED_APP_OP_OUT_RESULT_LEN 4
14149 #define MC_CMD_LICENSED_APP_OP_VALIDATE_IN_APP_ID_LEN 4
14151 #define MC_CMD_LICENSED_APP_OP_VALIDATE_IN_OP_OFST 4
14152 #define MC_CMD_LICENSED_APP_OP_VALIDATE_IN_OP_LEN 4
14161 #define MC_CMD_LICENSED_APP_OP_VALIDATE_OUT_EXPIRY_LEN 4
14163 #define MC_CMD_LICENSED_APP_OP_VALIDATE_OUT_RESPONSE_OFST 4
14170 #define MC_CMD_LICENSED_APP_OP_MASK_IN_APP_ID_LEN 4
14172 #define MC_CMD_LICENSED_APP_OP_MASK_IN_OP_OFST 4
14173 #define MC_CMD_LICENSED_APP_OP_MASK_IN_OP_LEN 4
14176 #define MC_CMD_LICENSED_APP_OP_MASK_IN_FLAG_LEN 4
14183 * Perform validation for an individual licensed application - V3 licensing
14205 * of two 384-bit integers, r and s, in big-endian order. The signature signs a
14206 * SHA-384 digest of a message constructed from the concatenation of the input
14208 * bytes] ... expiry_time[4 bytes] ...
14214 #define MC_CMD_LICENSED_V3_VALIDATE_APP_OUT_EXPIRY_TIME_LEN 4
14217 #define MC_CMD_LICENSED_V3_VALIDATE_APP_OUT_EXPIRY_UNITS_LEN 4
14228 /* MAC address of v-adaptor associated with the client. If no such v-adapator
14236 * Mask features - V3 licensing (Medford)
14249 #define MC_CMD_LICENSED_V3_MASK_FEATURES_IN_MASK_HI_OFST 4
14252 #define MC_CMD_LICENSED_V3_MASK_FEATURES_IN_FLAG_LEN 4
14265 * SF-116124-SW for an overview of how this could be used. The license is
14275 #define MC_CMD_LICENSING_V3_TEMPORARY_IN_LEN 4
14278 #define MC_CMD_LICENSING_V3_TEMPORARY_IN_OP_LEN 4
14296 #define MC_CMD_LICENSING_V3_TEMPORARY_IN_SET_OP_LEN 4
14298 #define MC_CMD_LICENSING_V3_TEMPORARY_IN_SET_LICENSE_OFST 4
14302 #define MC_CMD_LICENSING_V3_TEMPORARY_IN_CLEAR_LEN 4
14304 #define MC_CMD_LICENSING_V3_TEMPORARY_IN_CLEAR_OP_LEN 4
14307 #define MC_CMD_LICENSING_V3_TEMPORARY_IN_STATUS_LEN 4
14309 #define MC_CMD_LICENSING_V3_TEMPORARY_IN_STATUS_OP_LEN 4
14315 #define MC_CMD_LICENSING_V3_TEMPORARY_OUT_STATUS_STATUS_LEN 4
14325 #define MC_CMD_LICENSING_V3_TEMPORARY_OUT_STATUS_LICENSED_FEATURES_OFST 4
14327 #define MC_CMD_LICENSING_V3_TEMPORARY_OUT_STATUS_LICENSED_FEATURES_LO_OFST 4
14334 * configuration. A copy of all traffic delivered to the host (non-promiscuous
14347 #define MC_CMD_SET_PORT_SNIFF_CONFIG_IN_FLAGS_LEN 4
14353 #define MC_CMD_SET_PORT_SNIFF_CONFIG_IN_RX_QUEUE_OFST 4
14354 #define MC_CMD_SET_PORT_SNIFF_CONFIG_IN_RX_QUEUE_LEN 4
14357 #define MC_CMD_SET_PORT_SNIFF_CONFIG_IN_RX_MODE_LEN 4
14367 #define MC_CMD_SET_PORT_SNIFF_CONFIG_IN_RX_CONTEXT_LEN 4
14390 #define MC_CMD_GET_PORT_SNIFF_CONFIG_OUT_FLAGS_LEN 4
14396 #define MC_CMD_GET_PORT_SNIFF_CONFIG_OUT_RX_QUEUE_OFST 4
14397 #define MC_CMD_GET_PORT_SNIFF_CONFIG_OUT_RX_QUEUE_LEN 4
14400 #define MC_CMD_GET_PORT_SNIFF_CONFIG_OUT_RX_MODE_LEN 4
14407 #define MC_CMD_GET_PORT_SNIFF_CONFIG_OUT_RX_CONTEXT_LEN 4
14411 * Change configuration related to the parser-dispatcher subsystem.
14421 #define MC_CMD_SET_PARSER_DISP_CONFIG_IN_LEN(num) (8+4*(num))
14424 #define MC_CMD_SET_PARSER_DISP_CONFIG_IN_TYPE_LEN 4
14425 /* enum: Per-TXQ enable for multicast UDP destination lookup for possible
14429 /* enum: Per-v-adaptor enable for suppression of self-transmissions on the
14437 #define MC_CMD_SET_PARSER_DISP_CONFIG_IN_ENTITY_OFST 4
14438 #define MC_CMD_SET_PARSER_DISP_CONFIG_IN_ENTITY_LEN 4
14443 #define MC_CMD_SET_PARSER_DISP_CONFIG_IN_VALUE_LEN 4
14452 * Read configuration related to the parser-dispatcher subsystem.
14463 #define MC_CMD_GET_PARSER_DISP_CONFIG_IN_TYPE_LEN 4
14469 #define MC_CMD_GET_PARSER_DISP_CONFIG_IN_ENTITY_OFST 4
14470 #define MC_CMD_GET_PARSER_DISP_CONFIG_IN_ENTITY_LEN 4
14473 #define MC_CMD_GET_PARSER_DISP_CONFIG_OUT_LENMIN 4
14475 #define MC_CMD_GET_PARSER_DISP_CONFIG_OUT_LEN(num) (0+4*(num))
14480 #define MC_CMD_GET_PARSER_DISP_CONFIG_OUT_VALUE_LEN 4
14503 #define MC_CMD_SET_TX_PORT_SNIFF_CONFIG_IN_FLAGS_LEN 4
14507 #define MC_CMD_SET_TX_PORT_SNIFF_CONFIG_IN_RX_QUEUE_OFST 4
14508 #define MC_CMD_SET_TX_PORT_SNIFF_CONFIG_IN_RX_QUEUE_LEN 4
14511 #define MC_CMD_SET_TX_PORT_SNIFF_CONFIG_IN_RX_MODE_LEN 4
14521 #define MC_CMD_SET_TX_PORT_SNIFF_CONFIG_IN_RX_CONTEXT_LEN 4
14544 #define MC_CMD_GET_TX_PORT_SNIFF_CONFIG_OUT_FLAGS_LEN 4
14548 #define MC_CMD_GET_TX_PORT_SNIFF_CONFIG_OUT_RX_QUEUE_OFST 4
14549 #define MC_CMD_GET_TX_PORT_SNIFF_CONFIG_OUT_RX_QUEUE_LEN 4
14552 #define MC_CMD_GET_TX_PORT_SNIFF_CONFIG_OUT_RX_MODE_LEN 4
14559 #define MC_CMD_GET_TX_PORT_SNIFF_CONFIG_OUT_RX_CONTEXT_LEN 4
14574 #define MC_CMD_RMON_STATS_RX_ERRORS_IN_RX_QUEUE_LEN 4
14575 #define MC_CMD_RMON_STATS_RX_ERRORS_IN_FLAGS_OFST 4
14576 #define MC_CMD_RMON_STATS_RX_ERRORS_IN_FLAGS_LEN 4
14583 #define MC_CMD_RMON_STATS_RX_ERRORS_OUT_CRC_ERRORS_LEN 4
14584 #define MC_CMD_RMON_STATS_RX_ERRORS_OUT_TRUNC_ERRORS_OFST 4
14585 #define MC_CMD_RMON_STATS_RX_ERRORS_OUT_TRUNC_ERRORS_LEN 4
14587 #define MC_CMD_RMON_STATS_RX_ERRORS_OUT_RX_NO_DESC_DROPS_LEN 4
14589 #define MC_CMD_RMON_STATS_RX_ERRORS_OUT_RX_ABORT_LEN 4
14607 #define MC_CMD_GET_PCIE_RESOURCE_INFO_OUT_MAX_PFS_LEN 4
14609 #define MC_CMD_GET_PCIE_RESOURCE_INFO_OUT_MAX_VFS_OFST 4
14610 #define MC_CMD_GET_PCIE_RESOURCE_INFO_OUT_MAX_VFS_LEN 4
14611 /* The maximum number of MSI-X vectors the device can provide in total */
14613 #define MC_CMD_GET_PCIE_RESOURCE_INFO_OUT_MAX_VECTORS_LEN 4
14614 /* the number of MSI-X vectors the device will allocate by default to each PF
14617 #define MC_CMD_GET_PCIE_RESOURCE_INFO_OUT_DEFAULT_PF_VECTORS_LEN 4
14618 /* the number of MSI-X vectors the device will allocate by default to each VF
14621 #define MC_CMD_GET_PCIE_RESOURCE_INFO_OUT_DEFAULT_VF_VECTORS_LEN 4
14622 /* the maximum number of MSI-X vectors the device can allocate to any one PF */
14624 #define MC_CMD_GET_PCIE_RESOURCE_INFO_OUT_MAX_PF_VECTORS_LEN 4
14625 /* the maximum number of MSI-X vectors the device can allocate to any one VF */
14627 #define MC_CMD_GET_PCIE_RESOURCE_INFO_OUT_MAX_VF_VECTORS_LEN 4
14645 #define MC_CMD_GET_PORT_MODES_OUT_MODES_LEN 4
14647 #define MC_CMD_GET_PORT_MODES_OUT_DEFAULT_MODE_OFST 4
14648 #define MC_CMD_GET_PORT_MODES_OUT_DEFAULT_MODE_LEN 4
14651 #define MC_CMD_GET_PORT_MODES_OUT_CURRENT_MODE_LEN 4
14665 #define MC_CMD_READ_ATB_IN_SIGNAL_BUS_LEN 4
14669 #define MC_CMD_READ_ATB_IN_SIGNAL_EN_BITNO_OFST 4
14670 #define MC_CMD_READ_ATB_IN_SIGNAL_EN_BITNO_LEN 4
14672 #define MC_CMD_READ_ATB_IN_SIGNAL_SEL_LEN 4
14674 #define MC_CMD_READ_ATB_IN_SETTLING_TIME_US_LEN 4
14677 #define MC_CMD_READ_ATB_OUT_LEN 4
14679 #define MC_CMD_READ_ATB_OUT_SAMPLE_MV_LEN 4
14696 #define MC_CMD_GET_WORKAROUNDS_OUT_IMPLEMENTED_LEN 4
14697 #define MC_CMD_GET_WORKAROUNDS_OUT_ENABLED_OFST 4
14698 #define MC_CMD_GET_WORKAROUNDS_OUT_ENABLED_LEN 4
14708 * - before adding code that queries this workaround, remember that there's
14733 #define MC_CMD_PRIVILEGE_MASK_IN_FUNCTION_LEN 4
14742 #define MC_CMD_PRIVILEGE_MASK_IN_NEW_MASK_OFST 4
14743 #define MC_CMD_PRIVILEGE_MASK_IN_NEW_MASK_LEN 4
14775 * administrator-level operations that are not allowed from the local host once
14777 * SF-117064-DG for background).
14786 #define MC_CMD_PRIVILEGE_MASK_OUT_LEN 4
14789 #define MC_CMD_PRIVILEGE_MASK_OUT_OLD_MASK_LEN 4
14806 #define MC_CMD_LINK_STATE_MODE_IN_FUNCTION_LEN 4
14812 #define MC_CMD_LINK_STATE_MODE_IN_NEW_MODE_OFST 4
14813 #define MC_CMD_LINK_STATE_MODE_IN_NEW_MODE_LEN 4
14822 #define MC_CMD_LINK_STATE_MODE_OUT_LEN 4
14824 #define MC_CMD_LINK_STATE_MODE_OUT_OLD_MODE_LEN 4
14843 #define MC_CMD_GET_SNAPSHOT_LENGTH_OUT_RX_SNAPLEN_MIN_LEN 4
14845 #define MC_CMD_GET_SNAPSHOT_LENGTH_OUT_RX_SNAPLEN_MAX_OFST 4
14846 #define MC_CMD_GET_SNAPSHOT_LENGTH_OUT_RX_SNAPLEN_MAX_LEN 4
14864 #define MC_CMD_FUSE_DIAGS_OUT_AREA0_MISMATCH_BITS_LEN 4
14866 #define MC_CMD_FUSE_DIAGS_OUT_AREA0_PAIR_A_BAD_BITS_OFST 4
14867 #define MC_CMD_FUSE_DIAGS_OUT_AREA0_PAIR_A_BAD_BITS_LEN 4
14870 #define MC_CMD_FUSE_DIAGS_OUT_AREA0_PAIR_B_BAD_BITS_LEN 4
14873 #define MC_CMD_FUSE_DIAGS_OUT_AREA0_CHECKSUM_LEN 4
14876 #define MC_CMD_FUSE_DIAGS_OUT_AREA1_MISMATCH_BITS_LEN 4
14879 #define MC_CMD_FUSE_DIAGS_OUT_AREA1_PAIR_A_BAD_BITS_LEN 4
14882 #define MC_CMD_FUSE_DIAGS_OUT_AREA1_PAIR_B_BAD_BITS_LEN 4
14885 #define MC_CMD_FUSE_DIAGS_OUT_AREA1_CHECKSUM_LEN 4
14888 #define MC_CMD_FUSE_DIAGS_OUT_AREA2_MISMATCH_BITS_LEN 4
14891 #define MC_CMD_FUSE_DIAGS_OUT_AREA2_PAIR_A_BAD_BITS_LEN 4
14894 #define MC_CMD_FUSE_DIAGS_OUT_AREA2_PAIR_B_BAD_BITS_LEN 4
14897 #define MC_CMD_FUSE_DIAGS_OUT_AREA2_CHECKSUM_LEN 4
14902 * only effects non-admin functions unless the admin privilege itself is
14914 #define MC_CMD_PRIVILEGE_MODIFY_IN_FN_GROUP_LEN 4
14922 #define MC_CMD_PRIVILEGE_MODIFY_IN_FUNCTION_OFST 4
14923 #define MC_CMD_PRIVILEGE_MODIFY_IN_FUNCTION_LEN 4
14932 #define MC_CMD_PRIVILEGE_MODIFY_IN_ADD_MASK_LEN 4
14937 #define MC_CMD_PRIVILEGE_MODIFY_IN_REMOVE_MASK_LEN 4
14955 #define MC_CMD_XPM_READ_BYTES_IN_ADDR_LEN 4
14957 #define MC_CMD_XPM_READ_BYTES_IN_COUNT_OFST 4
14958 #define MC_CMD_XPM_READ_BYTES_IN_COUNT_LEN 4
14985 #define MC_CMD_XPM_WRITE_BYTES_IN_ADDR_LEN 4
14987 #define MC_CMD_XPM_WRITE_BYTES_IN_COUNT_OFST 4
14988 #define MC_CMD_XPM_WRITE_BYTES_IN_COUNT_LEN 4
15011 #define MC_CMD_XPM_READ_SECTOR_IN_INDEX_LEN 4
15013 #define MC_CMD_XPM_READ_SECTOR_IN_SIZE_OFST 4
15014 #define MC_CMD_XPM_READ_SECTOR_IN_SIZE_LEN 4
15017 #define MC_CMD_XPM_READ_SECTOR_OUT_LENMIN 4
15019 #define MC_CMD_XPM_READ_SECTOR_OUT_LEN(num) (4+1*(num))
15022 #define MC_CMD_XPM_READ_SECTOR_OUT_TYPE_LEN 4
15029 #define MC_CMD_XPM_READ_SECTOR_OUT_DATA_OFST 4
15049 * made. Note that uncorrectable errors are unlikely, thanks to XPM self-repair
15057 #define MC_CMD_XPM_WRITE_SECTOR_IN_TYPE_OFST 4
15058 #define MC_CMD_XPM_WRITE_SECTOR_IN_TYPE_LEN 4
15063 #define MC_CMD_XPM_WRITE_SECTOR_IN_SIZE_LEN 4
15071 #define MC_CMD_XPM_WRITE_SECTOR_OUT_LEN 4
15074 #define MC_CMD_XPM_WRITE_SECTOR_OUT_INDEX_LEN 4
15086 #define MC_CMD_XPM_INVALIDATE_SECTOR_IN_LEN 4
15089 #define MC_CMD_XPM_INVALIDATE_SECTOR_IN_INDEX_LEN 4
15096 * Blank-check XPM memory and report bad locations
15107 #define MC_CMD_XPM_BLANK_CHECK_IN_ADDR_LEN 4
15109 #define MC_CMD_XPM_BLANK_CHECK_IN_COUNT_OFST 4
15110 #define MC_CMD_XPM_BLANK_CHECK_IN_COUNT_LEN 4
15113 #define MC_CMD_XPM_BLANK_CHECK_OUT_LENMIN 4
15115 #define MC_CMD_XPM_BLANK_CHECK_OUT_LEN(num) (4+2*(num))
15116 /* Total number of bad (non-blank) locations */
15118 #define MC_CMD_XPM_BLANK_CHECK_OUT_BAD_COUNT_LEN 4
15122 #define MC_CMD_XPM_BLANK_CHECK_OUT_BAD_ADDR_OFST 4
15129 * Blank-check and repair XPM memory
15140 #define MC_CMD_XPM_REPAIR_IN_ADDR_LEN 4
15142 #define MC_CMD_XPM_REPAIR_IN_COUNT_OFST 4
15143 #define MC_CMD_XPM_REPAIR_IN_COUNT_LEN 4
15201 #define MC_CMD_EXEC_SIGNED_IN_CODELEN_LEN 4
15203 #define MC_CMD_EXEC_SIGNED_IN_DATALEN_OFST 4
15204 #define MC_CMD_EXEC_SIGNED_IN_DATALEN_LEN 4
15207 #define MC_CMD_EXEC_SIGNED_IN_KEYSECTOR_LEN 4
15227 #define MC_CMD_PREPARE_SIGNED_IN_LEN 4
15230 #define MC_CMD_PREPARE_SIGNED_IN_DATALEN_LEN 4
15238 * (Medford-only; for use by SolarSecure apps, not directly by drivers. See
15239 * SF-114946-SW.) NOTE - this message definition is provisional. It has not yet
15252 #define MC_CMD_SET_SECURITY_RULE_IN_MATCH_FIELDS_LEN 4
15261 #define MC_CMD_SET_SECURITY_RULE_IN_MATCH_LOCAL_MAC_LBN 4
15284 #define MC_CMD_SET_SECURITY_RULE_IN_REMOTE_MAC_OFST 4
15307 /* Physical port to match (as little-endian 32-bit value) */
15309 #define MC_CMD_SET_SECURITY_RULE_IN_PHYSICAL_PORT_LEN 4
15312 #define MC_CMD_SET_SECURITY_RULE_IN_RESERVED_LEN 4
15323 /* remote subnet ID to match (as little-endian 32-bit value); note that remote
15329 #define MC_CMD_SET_SECURITY_RULE_IN_REMOTE_SUBNET_ID_LEN 4
15330 /* remote portrange ID to match (as little-endian 32-bit value); note that
15336 #define MC_CMD_SET_SECURITY_RULE_IN_REMOTE_PORTRANGE_ID_LEN 4
15337 /* local portrange ID to match (as little-endian 32-bit value); note that local
15343 #define MC_CMD_SET_SECURITY_RULE_IN_LOCAL_PORTRANGE_ID_LEN 4
15346 #define MC_CMD_SET_SECURITY_RULE_IN_TX_ACTION_LEN 4
15354 * rule (via MC_CMD_TSA_INFO_IN_PKT_SAMPLE messages); may be bitwise-ORed with
15362 #define MC_CMD_SET_SECURITY_RULE_IN_RX_ACTION_LEN 4
15370 * rule (via MC_CMD_TSA_INFO_IN_PKT_SAMPLE messages); may be bitwise-ORed with
15380 #define MC_CMD_SET_SECURITY_RULE_IN_COUNTER_ID_LEN 4
15392 #define MC_CMD_SET_SECURITY_RULE_OUT_COUNTER_REFCNT_LEN 4
15394 #define MC_CMD_SET_SECURITY_RULE_OUT_LUE_MATCH_BITS_OFST 4
15398 #define MC_CMD_SET_SECURITY_RULE_OUT_LUE_DISCRIMINATOR_LEN 4
15401 #define MC_CMD_SET_SECURITY_RULE_OUT_LUE_PROBE_BASE_LEN 4
15404 #define MC_CMD_SET_SECURITY_RULE_OUT_LUE_PROBE_STEP_LEN 4
15407 #define MC_CMD_SET_SECURITY_RULE_OUT_COUNTER_ID_LEN 4
15412 * all ports. (Medford-only; for use by SolarSecure apps, not directly by
15413 * drivers. See SF-114946-SW.) NOTE - this message definition is provisional.
15423 #define MC_CMD_RESET_SECURITY_RULES_IN_LEN 4
15426 #define MC_CMD_RESET_SECURITY_RULES_IN_PHYSICAL_PORT_LEN 4
15437 * (Medford-only; for use by SolarSecure apps, not directly by drivers. See
15438 * SF-114946-SW.) NOTE - this message definition is provisional. It has not yet
15462 * Allocate counters for use with blacklist / whitelist rules. (Medford-only;
15463 * for use by SolarSecure apps, not directly by drivers. See SF-114946-SW.)
15464 * NOTE - this message definition is provisional. It has not yet been used in
15474 #define MC_CMD_SECURITY_RULE_COUNTER_ALLOC_IN_LEN 4
15477 #define MC_CMD_SECURITY_RULE_COUNTER_ALLOC_IN_NUM_COUNTERS_LEN 4
15480 #define MC_CMD_SECURITY_RULE_COUNTER_ALLOC_OUT_LENMIN 4
15482 #define MC_CMD_SECURITY_RULE_COUNTER_ALLOC_OUT_LEN(num) (4+4*(num))
15487 #define MC_CMD_SECURITY_RULE_COUNTER_ALLOC_OUT_NUM_COUNTERS_LEN 4
15489 #define MC_CMD_SECURITY_RULE_COUNTER_ALLOC_OUT_COUNTER_ID_OFST 4
15490 #define MC_CMD_SECURITY_RULE_COUNTER_ALLOC_OUT_COUNTER_ID_LEN 4
15496 * Allocate counters for use with blacklist / whitelist rules. (Medford-only;
15497 * for use by SolarSecure apps, not directly by drivers. See SF-114946-SW.)
15498 * NOTE - this message definition is provisional. It has not yet been used in
15508 #define MC_CMD_SECURITY_RULE_COUNTER_FREE_IN_LENMIN 4
15510 #define MC_CMD_SECURITY_RULE_COUNTER_FREE_IN_LEN(num) (4+4*(num))
15513 #define MC_CMD_SECURITY_RULE_COUNTER_FREE_IN_NUM_COUNTERS_LEN 4
15515 #define MC_CMD_SECURITY_RULE_COUNTER_FREE_IN_COUNTER_ID_OFST 4
15516 #define MC_CMD_SECURITY_RULE_COUNTER_FREE_IN_COUNTER_ID_LEN 4
15527 * by the GET_SECURITY_RULE_INFO op of MC_CMD_GET_PARSER_DISP_INFO. (Medford-
15529 * SF-114946-SW.) NOTE - this message definition is provisional. It has not yet
15541 #define MC_CMD_SUBNET_MAP_SET_NODE_IN_LEN(num) (4+2*(num))
15542 /* node to update in the range 0 .. SUBNET_MAP_NUM_NODES-1 */
15544 #define MC_CMD_SUBNET_MAP_SET_NODE_IN_NODE_ID_LEN 4
15550 #define MC_CMD_SUBNET_MAP_SET_NODE_IN_ENTRY_OFST 4
15559 #define PORTRANGE_TREE_ENTRY_LEN 4
15579 * (Medford-only; for use by SolarSecure apps, not directly by drivers. See
15580 * SF-114946-SW.) NOTE - this message definition is provisional. It has not yet
15590 #define MC_CMD_REMOTE_PORTRANGE_MAP_SET_TREE_IN_LENMIN 4
15592 #define MC_CMD_REMOTE_PORTRANGE_MAP_SET_TREE_IN_LEN(num) (0+4*(num))
15597 #define MC_CMD_REMOTE_PORTRANGE_MAP_SET_TREE_IN_ENTRIES_LEN 4
15609 * (Medford-only; for use by SolarSecure apps, not directly by drivers. See
15610 * SF-114946-SW.) NOTE - this message definition is provisional. It has not yet
15620 #define MC_CMD_LOCAL_PORTRANGE_MAP_SET_TREE_IN_LENMIN 4
15622 #define MC_CMD_LOCAL_PORTRANGE_MAP_SET_TREE_IN_LEN(num) (0+4*(num))
15627 #define MC_CMD_LOCAL_PORTRANGE_MAP_SET_TREE_IN_ENTRIES_LEN 4
15635 #define TUNNEL_ENCAP_UDP_PORT_ENTRY_LEN 4
15658 * parser-dispatcher will attempt to parse traffic on these ports as tunnel
15669 #define MC_CMD_SET_TUNNEL_ENCAP_UDP_PORTS_IN_LENMIN 4
15671 #define MC_CMD_SET_TUNNEL_ENCAP_UDP_PORTS_IN_LEN(num) (4+4*(num))
15683 #define MC_CMD_SET_TUNNEL_ENCAP_UDP_PORTS_IN_ENTRIES_OFST 4
15684 #define MC_CMD_SET_TUNNEL_ENCAP_UDP_PORTS_IN_ENTRIES_LEN 4
15712 #define MC_CMD_RX_BALANCING_IN_PORT_LEN 4
15714 #define MC_CMD_RX_BALANCING_IN_PRIORITY_OFST 4
15715 #define MC_CMD_RX_BALANCING_IN_PRIORITY_LEN 4
15718 #define MC_CMD_RX_BALANCING_IN_SRC_DST_LEN 4
15721 #define MC_CMD_RX_BALANCING_IN_ENG_LEN 4
15728 * TSAN - TSAC binding communication protocol. Refer to SF-115479-TC for more
15737 #define MC_CMD_TSA_BIND_IN_LEN 4
15739 #define MC_CMD_TSA_BIND_IN_OP_LEN 4
15744 * Refer to SF-114946-SW for more information. This sub-command is only
15749 * as part of post-binding authentication procedure. More specifically, TSAN
15751 * to verify the signature. Note - The post-binding authentication occurs when
15752 * the TSAN-TSAC connection terminates and TSAN tries to reconnect. Refer to
15753 * SF-114946-SW for more information. This sub-command is only available over a
15757 /* enum: Request an insecure unbinding operation. This sub-command is available
15764 * TSAN persists the unbinding secret token. Refer to SF-115479-TC for more
15765 * information. This sub-command is only available over a TLS secure connection
15773 /* enum: Request a secure unbinding operation using unbinding token. This sub-
15777 /* enum: Request a secure decommissioning operation. This sub-command is
15793 #define MC_CMD_TSA_BIND_IN_GET_ID_OP_LEN 4
15795 * the nonce every time as part of the TSAN post-binding authentication
15796 * procedure when the TSAN-TSAC connection terminates and TSAN does need to re-
15797 * connect to the TSAC. Refer to SF-114946-SW for more information.
15799 #define MC_CMD_TSA_BIND_IN_GET_ID_NONCE_OFST 4
15803 #define MC_CMD_TSA_BIND_IN_GET_TICKET_LEN 4
15806 #define MC_CMD_TSA_BIND_IN_GET_TICKET_OP_LEN 4
15811 #define MC_CMD_TSA_BIND_IN_SET_KEY_LEN(num) (4+1*(num))
15814 #define MC_CMD_TSA_BIND_IN_SET_KEY_OP_LEN 4
15816 * this key for a signing operation. Note- This private key is used in
15817 * conjunction with the post-binding TSAN authentication procedure that occurs
15818 * when the TSAN-TSAC connection terminates and TSAN tries to reconnect. Refer
15819 * to SF-114946-SW for more information.
15821 #define MC_CMD_TSA_BIND_IN_SET_KEY_DATKEY_OFST 4
15832 #define MC_CMD_TSA_BIND_IN_UNBIND_OP_LEN 4
15834 #define MC_CMD_TSA_BIND_IN_UNBIND_TSANID_OFST 4
15845 #define MC_CMD_TSA_BIND_IN_UNBIND_EXT_OP_LEN 4
15847 #define MC_CMD_TSA_BIND_IN_UNBIND_EXT_TSANID_OFST 4
15854 * length. Note- The TSAID is the Organizational Unit Name filed as part of the
15862 * MC_CMD_TSA_BIND_IN_SET_UNBINDTOKEN msgrequest. Refer to SF-115479-TC for
15867 /* This is the signature of the above mentioned fields- TSANID, TSAID and
15869 * ECDSA ECC-384 based signature. The ECC curve is secp384r1. The signature is
15870 * also ASN-1 encoded. Note- The signature is verified based on the public key
15872 * This key is known as the PUKtsaid. Refer to SF-115479-TC for more
15884 #define MC_CMD_TSA_BIND_IN_SET_UNBINDTOKEN_OP_LEN 4
15886 * SF-115479-TC for more information.
15888 #define MC_CMD_TSA_BIND_IN_SET_UNBINDTOKEN_UNBINDTOKEN_OFST 4
15904 /* This is the signature of the above mentioned fields- TSAID, USER and REASON.
15905 * As per current requirements, the SIG opaque data blob contains ECDSA ECC-384
15906 * based signature. The ECC curve is secp384r1. The signature is also ASN-1
15907 * encoded . Note- The signature is verified based on the public key stored
15909 * is known as the PUKtsaid. Refer to SF-115479-TC for more information.
15917 #define MC_CMD_TSA_BIND_IN_DECOMMISSION_OP_LEN 4
15920 * length. Note- The TSAID is the Organizational Unit Name filed as part of the
15923 #define MC_CMD_TSA_BIND_IN_DECOMMISSION_TSAID_OFST 4
15926 /* User ID that comes, as an example, from the Controller. Note- The 33 byte
15936 /* Reason of why decommissioning happens Note- The list of reasons, defined as
15940 #define MC_CMD_TSA_BIND_IN_DECOMMISSION_REASON_LEN 4
15948 #define MC_CMD_TSA_BIND_IN_GET_CERTIFICATE_OP_LEN 4
15950 #define MC_CMD_TSA_BIND_IN_GET_CERTIFICATE_TYPE_OFST 4
15951 #define MC_CMD_TSA_BIND_IN_GET_CERTIFICATE_TYPE_LEN 4
15970 #define MC_CMD_TSA_BIND_IN_SECURE_UNBIND_OP_LEN 4
15974 #define MC_CMD_TSA_BIND_IN_SECURE_UNBIND_MESSAGE_TYPE_OFST 4
15975 #define MC_CMD_TSA_BIND_IN_SECURE_UNBIND_MESSAGE_TYPE_LEN 4
15982 /* A NUL padded US-ASCII string identifying the TSA infrastructure domain. This
15983 * field is for information only, and not used by the firmware. Note- The TSAID
15992 * MC_CMD_TSA_BIND_IN_SET_UNBINDTOKEN msgrequest. Refer to SF-115479-TC for
16011 #define MC_CMD_TSA_BIND_IN_SECURE_DECOMMISSION_OP_LEN 4
16015 #define MC_CMD_TSA_BIND_IN_SECURE_DECOMMISSION_MESSAGE_TYPE_OFST 4
16016 #define MC_CMD_TSA_BIND_IN_SECURE_DECOMMISSION_MESSAGE_TYPE_LEN 4
16017 /* A NUL padded US-ASCII string identifying the TSA infrastructure domain. This
16018 * field is for information only, and not used by the firmware. Note- The TSAID
16025 /* A NUL padded US-ASCII string containing user name of the creator of the
16034 #define MC_CMD_TSA_BIND_IN_SECURE_DECOMMISSION_REASON_LEN 4
16056 #define MC_CMD_TSA_BIND_IN_TEST_MCDI_OP_LEN 4
16058 #define MC_CMD_TSA_BIND_IN_TEST_MCDI_CTRL_OFST 4
16059 #define MC_CMD_TSA_BIND_IN_TEST_MCDI_CTRL_LEN 4
16073 #define MC_CMD_TSA_BIND_OUT_GET_ID_OP_LEN 4
16074 /* Rules engine type. Note- The rules engine type allows TSAC to further
16079 #define MC_CMD_TSA_BIND_OUT_GET_ID_RULE_ENGINE_OFST 4
16080 #define MC_CMD_TSA_BIND_OUT_GET_ID_RULE_ENGINE_LEN 4
16091 * formed by TSAN ID concatenated with the NONCE value. Refer to SF-115479-TC
16093 * sign the message based on TSAN pre/post-binding authentication procedure.
16103 #define MC_CMD_TSA_BIND_OUT_GET_TICKET_LEN(num) (4+1*(num))
16108 #define MC_CMD_TSA_BIND_OUT_GET_TICKET_OP_LEN 4
16111 * opaque construct. For more info refer to SF-115479-TC.
16113 #define MC_CMD_TSA_BIND_OUT_GET_TICKET_TICKET_OFST 4
16119 #define MC_CMD_TSA_BIND_OUT_SET_KEY_LEN 4
16124 #define MC_CMD_TSA_BIND_OUT_SET_KEY_OP_LEN 4
16131 #define MC_CMD_TSA_BIND_OUT_UNBIND_RESULT_LEN 4
16133 #define MC_CMD_TSA_BIND_OUT_UNBIND_INFO_OFST 4
16134 #define MC_CMD_TSA_BIND_OUT_UNBIND_INFO_LEN 4
16150 #define MC_CMD_TSA_BIND_OUT_UNBIND_EXT_RESULT_LEN 4
16152 #define MC_CMD_TSA_BIND_OUT_UNBIND_EXT_INFO_OFST 4
16153 #define MC_CMD_TSA_BIND_OUT_UNBIND_EXT_INFO_LEN 4
16168 #define MC_CMD_TSA_BIND_OUT_SET_UNBINDTOKEN_LEN 4
16173 #define MC_CMD_TSA_BIND_OUT_SET_UNBINDTOKEN_OP_LEN 4
16178 #define MC_CMD_TSA_BIND_OUT_DECOMMISSION_LEN 4
16183 #define MC_CMD_TSA_BIND_OUT_DECOMMISSION_OP_LEN 4
16193 #define MC_CMD_TSA_BIND_OUT_GET_CERTIFICATE_OP_LEN 4
16195 #define MC_CMD_TSA_BIND_OUT_GET_CERTIFICATE_TYPE_OFST 4
16196 #define MC_CMD_TSA_BIND_OUT_GET_CERTIFICATE_TYPE_LEN 4
16211 #define MC_CMD_TSA_BIND_OUT_SECURE_UNBIND_OP_LEN 4
16212 #define MC_CMD_TSA_BIND_OUT_SECURE_UNBIND_RESULT_OFST 4
16213 #define MC_CMD_TSA_BIND_OUT_SECURE_UNBIND_RESULT_LEN 4
16233 #define MC_CMD_TSA_BIND_OUT_SECURE_DECOMMISSION_OP_LEN 4
16234 #define MC_CMD_TSA_BIND_OUT_SECURE_DECOMMISSION_RESULT_OFST 4
16235 #define MC_CMD_TSA_BIND_OUT_SECURE_DECOMMISSION_RESULT_LEN 4
16250 #define MC_CMD_TSA_BIND_OUT_TEST_MCDI_LEN 4
16255 #define MC_CMD_TSA_BIND_OUT_TEST_MCDI_OP_LEN 4
16266 * valid) is also supported. (Medford-only; for use by SolarSecure apps, not
16267 * directly by drivers. See SF-114946-SW.) NOTE - The only sub-operation
16269 * OP_GET_CACHED_VERSION. All other sub-operations are prohibited.
16277 #define MC_CMD_MANAGE_SECURITY_RULESET_CACHE_IN_LEN 4
16280 #define MC_CMD_MANAGE_SECURITY_RULESET_CACHE_IN_OP_LEN 4
16297 #define MC_CMD_MANAGE_SECURITY_RULESET_CACHE_OUT_LEN(num) (4+1*(num))
16302 #define MC_CMD_MANAGE_SECURITY_RULESET_CACHE_OUT_STATE_LEN 4
16313 #define MC_CMD_MANAGE_SECURITY_RULESET_CACHE_OUT_VERSION_OFST 4
16334 #define MC_CMD_NVRAM_PRIVATE_APPEND_IN_TAG_LEN 4
16336 #define MC_CMD_NVRAM_PRIVATE_APPEND_IN_LENGTH_OFST 4
16337 #define MC_CMD_NVRAM_PRIVATE_APPEND_IN_LENGTH_LEN 4
16359 #define MC_CMD_XPM_VERIFY_CONTENTS_IN_LEN 4
16362 #define MC_CMD_XPM_VERIFY_CONTENTS_IN_DATA_TYPE_LEN 4
16370 #define MC_CMD_XPM_VERIFY_CONTENTS_OUT_NUM_SECTORS_LEN 4
16372 #define MC_CMD_XPM_VERIFY_CONTENTS_OUT_NUM_BYTES_OFST 4
16373 #define MC_CMD_XPM_VERIFY_CONTENTS_OUT_NUM_BYTES_LEN 4
16376 #define MC_CMD_XPM_VERIFY_CONTENTS_OUT_SIG_LENGTH_LEN 4
16399 /* Function-relative queue instance */
16401 #define MC_CMD_SET_EVQ_TMR_IN_INSTANCE_LEN 4
16403 #define MC_CMD_SET_EVQ_TMR_IN_TMR_LOAD_REQ_NS_OFST 4
16404 #define MC_CMD_SET_EVQ_TMR_IN_TMR_LOAD_REQ_NS_LEN 4
16407 #define MC_CMD_SET_EVQ_TMR_IN_TMR_RELOAD_REQ_NS_LEN 4
16410 #define MC_CMD_SET_EVQ_TMR_IN_TMR_MODE_LEN 4
16420 #define MC_CMD_SET_EVQ_TMR_OUT_TMR_LOAD_ACT_NS_LEN 4
16422 #define MC_CMD_SET_EVQ_TMR_OUT_TMR_RELOAD_ACT_NS_OFST 4
16423 #define MC_CMD_SET_EVQ_TMR_OUT_TMR_RELOAD_ACT_NS_LEN 4
16441 #define MC_CMD_GET_EVQ_TMR_PROPERTIES_OUT_FLAGS_LEN 4
16447 #define MC_CMD_GET_EVQ_TMR_PROPERTIES_OUT_TMR_REG_NS_PER_COUNT_OFST 4
16448 #define MC_CMD_GET_EVQ_TMR_PROPERTIES_OUT_TMR_REG_NS_PER_COUNT_LEN 4
16453 #define MC_CMD_GET_EVQ_TMR_PROPERTIES_OUT_TMR_REG_MAX_COUNT_LEN 4
16459 #define MC_CMD_GET_EVQ_TMR_PROPERTIES_OUT_TMR_REG_STEP_LEN 4
16464 #define MC_CMD_GET_EVQ_TMR_PROPERTIES_OUT_MCDI_TMR_MAX_NS_LEN 4
16469 #define MC_CMD_GET_EVQ_TMR_PROPERTIES_OUT_MCDI_TMR_STEP_NS_LEN 4
16477 #define MC_CMD_GET_EVQ_TMR_PROPERTIES_OUT_BUG35388_TMR_NS_PER_COUNT_LEN 4
16483 #define MC_CMD_GET_EVQ_TMR_PROPERTIES_OUT_BUG35388_TMR_MAX_COUNT_LEN 4
16490 #define MC_CMD_GET_EVQ_TMR_PROPERTIES_OUT_BUG35388_TMR_STEP_LEN 4
16508 #define MC_CMD_ALLOCATE_TX_VFIFO_CP_IN_INSTANCE_LEN 4
16510 #define MC_CMD_ALLOCATE_TX_VFIFO_CP_IN_MODE_OFST 4
16511 #define MC_CMD_ALLOCATE_TX_VFIFO_CP_IN_MODE_LEN 4
16517 #define MC_CMD_ALLOCATE_TX_VFIFO_CP_IN_SIZE_LEN 4
16520 #define MC_CMD_ALLOCATE_TX_VFIFO_CP_IN_INGRESS_LEN 4
16522 #define MC_CMD_ALLOCATE_TX_VFIFO_CP_IN_USE_FUNCTION_VALUE -0x1
16525 #define MC_CMD_ALLOCATE_TX_VFIFO_CP_IN_EGRESS_LEN 4
16527 /* MC_CMD_ALLOCATE_TX_VFIFO_CP_IN_USE_FUNCTION_VALUE -0x1 */
16538 #define MC_CMD_ALLOCATE_TX_VFIFO_CP_OUT_LEN 4
16541 #define MC_CMD_ALLOCATE_TX_VFIFO_CP_OUT_CP_ID_LEN 4
16558 #define MC_CMD_ALLOCATE_TX_VFIFO_VFIFO_IN_CP_LEN 4
16560 #define MC_CMD_ALLOCATE_TX_VFIFO_VFIFO_IN_EGRESS_OFST 4
16561 #define MC_CMD_ALLOCATE_TX_VFIFO_VFIFO_IN_EGRESS_LEN 4
16563 #define MC_CMD_ALLOCATE_TX_VFIFO_VFIFO_IN_USE_CP_VALUE -0x1
16574 #define MC_CMD_ALLOCATE_TX_VFIFO_VFIFO_IN_SIZE_LEN 4
16579 #define MC_CMD_ALLOCATE_TX_VFIFO_VFIFO_IN_MODE_LEN 4
16582 #define MC_CMD_ALLOCATE_TX_VFIFO_VFIFO_IN_PRIORITY_LEN 4
16584 #define MC_CMD_ALLOCATE_TX_VFIFO_VFIFO_IN_LOWEST_AVAILABLE -0x1
16590 #define MC_CMD_ALLOCATE_TX_VFIFO_VFIFO_OUT_VID_LEN 4
16592 #define MC_CMD_ALLOCATE_TX_VFIFO_VFIFO_OUT_PRIORITY_OFST 4
16593 #define MC_CMD_ALLOCATE_TX_VFIFO_VFIFO_OUT_PRIORITY_LEN 4
16598 * ready to be re-used.
16606 #define MC_CMD_TEARDOWN_TX_VFIFO_VF_IN_LEN 4
16609 #define MC_CMD_TEARDOWN_TX_VFIFO_VF_IN_VFIFO_LEN 4
16617 * it ready to be re-used.
16625 #define MC_CMD_DEALLOCATE_TX_VFIFO_CP_IN_LEN 4
16628 #define MC_CMD_DEALLOCATE_TX_VFIFO_CP_IN_POOL_ID_LEN 4
16635 * This request causes the NIC to generate a new per-NIC key and program it
16636 * into the write-once memory. During the process all flash partitions that are
16637 * protected with a CMAC are verified with the old per-NIC key and then signed
16638 * with the new per-NIC key. If the NIC has already reached its rekey limit the
16652 #define MC_CMD_REKEY_IN_LEN 4
16655 #define MC_CMD_REKEY_IN_OP_LEN 4
16681 #define MC_CMD_SWITCH_GET_UNASSIGNED_BUFFERS_OUT_NET_LEN 4
16683 #define MC_CMD_SWITCH_GET_UNASSIGNED_BUFFERS_OUT_ENG_OFST 4
16684 #define MC_CMD_SWITCH_GET_UNASSIGNED_BUFFERS_OUT_ENG_LEN 4
16688 * Change the security level of the adapter by setting bits in the write-once
16690 * hardware-defined or software-defined bits and sets these bits in the write-
16691 * once memory. For Medford the hardware-defined bits are defined in
16692 * SF-112079-PS 5.3, the software-defined bits are defined in xpm.h. Returns 0
16702 #define MC_CMD_SET_SECURITY_FUSES_IN_LEN 4
16705 #define MC_CMD_SET_SECURITY_FUSES_IN_FLAGS_LEN 4
16717 #define MC_CMD_SET_SECURITY_FUSES_V2_OUT_LEN 4
16723 #define MC_CMD_SET_SECURITY_FUSES_V2_OUT_FLAGS_LEN 4
16732 * SF-117371-SW
16740 #define MC_CMD_TSA_INFO_IN_LEN 4
16742 #define MC_CMD_TSA_INFO_IN_OP_HDR_LEN 4
16748 /* enum: Information about a sampled packet that either - did not match any
16749 * black/white-list filters and was allowed by the default filter or - did not
16750 * match any black/white-list filters and was denied by the default filter
16764 * assignment for a port. Doxbox reference SF-117371.
16772 #define MC_CMD_TSA_INFO_IN_LOCAL_IP_OP_HDR_LEN 4
16776 #define MC_CMD_TSA_INFO_IN_LOCAL_IP_META_OFST 4
16777 #define MC_CMD_TSA_INFO_IN_LOCAL_IP_META_LEN 4
16800 #define MC_CMD_TSA_INFO_IN_LOCAL_IP_IPV4_ADDR_LEN 4
16813 * black-list or white-list rules to allow or block packets as required.
16829 #define MC_CMD_TSA_INFO_IN_PKT_SAMPLE_OP_HDR_LEN 4
16831 #define MC_CMD_TSA_INFO_IN_PKT_SAMPLE_META_OFST 4
16832 #define MC_CMD_TSA_INFO_IN_PKT_SAMPLE_META_LEN 4
16840 #define MC_CMD_TSA_INFO_IN_PKT_SAMPLE_META_ACTION_MASK_WIDTH 4
16847 /* 128-byte raw prefix of the sampled packet which includes the ethernet
16851 * concerning rule-set updates.
16862 * Commands to appply or retrieve host-related information from an adapter.
16863 * Doxbox reference SF-117371-SW
16871 #define MC_CMD_HOST_INFO_IN_LEN 4
16872 /* sub-operation code info */
16874 #define MC_CMD_HOST_INFO_IN_OP_HDR_LEN 4
16877 /* enum: Read a 16-byte unique host identifier from the adapter. This UUID
16881 * 16-byte value into each supported SF adapter plugged into it. Host UUIDs may
16882 * change if the system is power-cycled, however, they persist across adapter
16885 * - SF-117371-SW section 'Host UUID'.
16888 /* enum: Set a 16-byte unique host identifier on the adapter to identify the
16895 #define MC_CMD_HOST_INFO_IN_GET_UUID_LEN 4
16896 /* sub-operation code info */
16898 #define MC_CMD_HOST_INFO_IN_GET_UUID_OP_HDR_LEN 4
16902 /* 16-byte host UUID read out of the adapter. See MC_CMD_HOST_INFO_OP_GET_UUID
16911 /* sub-operation code info */
16913 #define MC_CMD_HOST_INFO_IN_SET_UUID_OP_HDR_LEN 4
16914 /* 16-byte host UUID set on the adapter. See MC_CMD_HOST_INFO_OP_GET_UUID for
16917 #define MC_CMD_HOST_INFO_IN_SET_UUID_HOST_UUID_OFST 4
16927 * some configuration parameters of each adapter. Doxbox reference SF-117371-SW
16936 #define MC_CMD_TSAN_INFO_IN_LEN 4
16937 /* sub-operation code info */
16939 #define MC_CMD_TSAN_INFO_IN_OP_HDR_LEN 4
16943 * adapter. The parameters include - host identification, adapter
16949 #define MC_CMD_TSAN_INFO_IN_GET_CFG_LEN 4
16950 /* sub-operation code info */
16952 #define MC_CMD_TSAN_INFO_IN_GET_CFG_OP_HDR_LEN 4
16958 #define MC_CMD_TSAN_INFO_OUT_GET_CFG_CONFIG_WORD_LEN 4
16965 /* 16-byte host UUID read out of the adapter. See MC_CMD_HOST_INFO_OP_GET_UUID
16968 #define MC_CMD_TSAN_INFO_OUT_GET_CFG_HOST_UUID_OFST 4
16982 #define MC_CMD_TSAN_INFO_OUT_GET_CFG_V2_CONFIG_WORD_LEN 4
16989 /* 16-byte host UUID read out of the adapter. See MC_CMD_HOST_INFO_OP_GET_UUID
16992 #define MC_CMD_TSAN_INFO_OUT_GET_CFG_V2_HOST_UUID_OFST 4
17001 /* Unused bytes, defined for 32-bit alignment of new fields. */
17010 #define MC_CMD_TSAN_INFO_OUT_GET_CFG_V2_MAX_STATS_LEN 4
17015 #define MC_CMD_TSAN_INFO_OUT_GET_CFG_V2_STATS_WIDTH_LEN 4
17027 #define MC_CMD_TSA_STATISTICS_IN_LEN 4
17028 /* TSA statistics sub-operation code */
17030 #define MC_CMD_TSA_STATISTICS_IN_OP_CODE_LEN 4
17039 #define MC_CMD_TSA_STATISTICS_IN_GET_CONFIG_LEN 4
17040 /* TSA statistics sub-operation code */
17042 #define MC_CMD_TSA_STATISTICS_IN_GET_CONFIG_OP_CODE_LEN 4
17052 #define MC_CMD_TSA_STATISTICS_OUT_GET_CONFIG_MAX_STATS_LEN 4
17056 #define MC_CMD_TSA_STATISTICS_OUT_GET_CONFIG_STATS_WIDTH_OFST 4
17057 #define MC_CMD_TSA_STATISTICS_OUT_GET_CONFIG_STATS_WIDTH_LEN 4
17062 #define MC_CMD_TSA_STATISTICS_IN_READ_CLEAR_LEN(num) (16+4*(num))
17063 /* TSA statistics sub-operation code */
17065 #define MC_CMD_TSA_STATISTICS_IN_READ_CLEAR_OP_CODE_LEN 4
17067 #define MC_CMD_TSA_STATISTICS_IN_READ_CLEAR_FLAGS_OFST 4
17068 #define MC_CMD_TSA_STATISTICS_IN_READ_CLEAR_FLAGS_LEN 4
17075 #define MC_CMD_TSA_STATISTICS_IN_READ_CLEAR_MODE_LEN 4
17086 #define MC_CMD_TSA_STATISTICS_IN_READ_CLEAR_NUM_STATS_LEN 4
17093 #define MC_CMD_TSA_STATISTICS_IN_READ_CLEAR_COUNTER_ID_LEN 4
17103 #define MC_CMD_TSA_STATISTICS_OUT_READ_CLEAR_NUM_STATS_LEN 4
17105 * 64-bit aligned offset
17118 #define MC_TSA_STATISTICS_ENTRY_TX_STAT_HI_OFST 4
17134 * installing TSA binding certificates. See SF-117631-TC.
17158 #define MC_CMD_TSA_CONFIG_IN_LEN 4
17159 /* TSA configuration sub-operation code */
17161 #define MC_CMD_TSA_CONFIG_IN_OP_LEN 4
17163 * encrypted unless they are declared as non-sensitive. Returns
17179 /* TSA configuration sub-operation code. The value shall be
17183 #define MC_CMD_TSA_CONFIG_IN_APPEND_OP_LEN 4
17185 #define MC_CMD_TSA_CONFIG_IN_APPEND_TAG_OFST 4
17186 #define MC_CMD_TSA_CONFIG_IN_APPEND_TAG_LEN 4
17189 #define MC_CMD_TSA_CONFIG_IN_APPEND_LENGTH_LEN 4
17200 #define MC_CMD_TSA_CONFIG_IN_RESET_LEN 4
17201 /* TSA configuration sub-operation code. The value shall be
17205 #define MC_CMD_TSA_CONFIG_IN_RESET_OP_LEN 4
17212 /* TSA configuration sub-operation code. The value shall be
17216 #define MC_CMD_TSA_CONFIG_IN_READ_OP_LEN 4
17218 #define MC_CMD_TSA_CONFIG_IN_READ_TAG_OFST 4
17219 #define MC_CMD_TSA_CONFIG_IN_READ_TAG_LEN 4
17227 #define MC_CMD_TSA_CONFIG_OUT_READ_TAG_LEN 4
17229 #define MC_CMD_TSA_CONFIG_OUT_READ_LENGTH_OFST 4
17230 #define MC_CMD_TSA_CONFIG_OUT_READ_LENGTH_LEN 4
17244 #define MC_TSA_IPV4_ITEM_IPV4_ADDR_META_LEN 4
17250 #define MC_TSA_IPV4_ITEM_IPV4_ADDR_OFST 4
17251 #define MC_TSA_IPV4_ITEM_IPV4_ADDR_LEN 4
17267 #define MC_CMD_TSA_IPADDR_IN_LEN 4
17268 /* Header containing information to identify which sub-operation of this
17269 * command to perform. The header contains a 16-bit op-code. Unused space in
17273 #define MC_CMD_TSA_IPADDR_IN_OP_HDR_LEN 4
17294 /* Header containing information to identify which sub-operation of this
17295 * command to perform. The header contains a 16-bit op-code. Unused space in
17299 #define MC_CMD_TSA_IPADDR_IN_VALIDATE_IPV4_OP_HDR_LEN 4
17303 #define MC_CMD_TSA_IPADDR_IN_VALIDATE_IPV4_NUM_ITEMS_OFST 4
17304 #define MC_CMD_TSA_IPADDR_IN_VALIDATE_IPV4_NUM_ITEMS_LEN 4
17320 /* Header containing information to identify which sub-operation of this
17321 * command to perform. The header contains a 16-bit op-code. Unused space in
17325 #define MC_CMD_TSA_IPADDR_IN_REMOVE_IPV4_OP_HDR_LEN 4
17329 #define MC_CMD_TSA_IPADDR_IN_REMOVE_IPV4_NUM_ITEMS_OFST 4
17330 #define MC_CMD_TSA_IPADDR_IN_REMOVE_IPV4_NUM_ITEMS_LEN 4
17354 #define MC_CMD_SECURE_NIC_INFO_IN_LEN 4
17355 /* sub-operation code info */
17357 #define MC_CMD_SECURE_NIC_INFO_IN_OP_HDR_LEN 4
17367 /* sub-operation code, must be MC_CMD_SECURE_NIC_INFO_OP_STATUS */
17369 #define MC_CMD_SECURE_NIC_INFO_IN_STATUS_OP_HDR_LEN 4
17371 #define MC_CMD_SECURE_NIC_INFO_IN_STATUS_KEY_TYPE_OFST 4
17372 #define MC_CMD_SECURE_NIC_INFO_IN_STATUS_KEY_TYPE_LEN 4
17392 #define MC_CMD_SECURE_NIC_INFO_OUT_STATUS_MSG_SIGNATURE_LEN_LEN 4
17398 #define MC_CMD_SECURE_NIC_INFO_OUT_STATUS_MSG_SIGNATURE_OFST 4
17406 #define MC_CMD_SECURE_NIC_INFO_OUT_STATUS_MESSAGE_TYPE_LEN 4
17421 #define MC_CMD_SECURE_NIC_INFO_OUT_STATUS_XPM_STATUS_BITS_LEN 4
17433 * A simple ping-pong command just to test the adapter<>controller MCDI
17454 * apply an allow-all or deny-all operation on all packets, thereby completely
17455 * ignoring the rule-set configured on the adapter. The main purpose of this
17457 * rule-set transitions.
17465 #define MC_CMD_TSA_RULESET_OVERRIDE_IN_LEN 4
17468 #define MC_CMD_TSA_RULESET_OVERRIDE_IN_STATE_LEN 4
17469 /* enum: No override in place - the existing ruleset is in operation. */
17472 * required for basic configuration of the TSA NIC such as ARPs and TSA-
17496 #define MC_CMD_TSAC_REQUEST_IN_LEN 4
17499 #define MC_CMD_TSAC_REQUEST_IN_TYPE_LEN 4
17523 /* The SUC firmware version as four numbers - a.b.c.d */
17525 #define MC_CMD_SUC_VERSION_OUT_VERSION_LEN 4
17526 #define MC_CMD_SUC_VERSION_OUT_VERSION_NUM 4
17531 #define MC_CMD_SUC_VERSION_OUT_BUILD_DATE_LEN 4
17533 * indicates family, memory sizes etc. See SF-116728-SW for further details.
17536 #define MC_CMD_SUC_VERSION_OUT_CHIP_ID_LEN 4
17541 #define MC_CMD_SUC_BOOT_VERSION_IN_LEN 4
17543 #define MC_CMD_SUC_BOOT_VERSION_IN_MAGIC_LEN 4
17548 #define MC_CMD_SUC_BOOT_VERSION_OUT_LEN 4
17551 #define MC_CMD_SUC_BOOT_VERSION_OUT_VERSION_LEN 4
17563 #define MC_CMD_SUC_MANFTEST_IN_LEN 4
17566 #define MC_CMD_SUC_MANFTEST_IN_OP_LEN 4
17582 * FRU_INFORMATION partition. Attempts to write to read-only FRUs are rejected.
17590 #define MC_CMD_SUC_MANFTEST_WEAROUT_READ_IN_LEN 4
17595 #define MC_CMD_SUC_MANFTEST_WEAROUT_READ_IN_OP_LEN 4
17599 /* The serial number of the wearout adapter, see SF-112717-PR for format. */
17604 #define MC_CMD_SUC_MANFTEST_WEAROUT_READ_OUT_USE_COUNT_LEN 4
17607 #define MC_CMD_SUC_MANFTEST_WEAROUT_UPDATE_IN_LEN 4
17612 #define MC_CMD_SUC_MANFTEST_WEAROUT_UPDATE_IN_OP_LEN 4
17618 #define MC_CMD_SUC_MANFTEST_ADC_CALIBRATE_START_IN_LEN 4
17623 #define MC_CMD_SUC_MANFTEST_ADC_CALIBRATE_START_IN_OP_LEN 4
17629 #define MC_CMD_SUC_MANFTEST_ADC_CALIBRATE_STATUS_IN_LEN 4
17634 #define MC_CMD_SUC_MANFTEST_ADC_CALIBRATE_STATUS_IN_OP_LEN 4
17637 #define MC_CMD_SUC_MANFTEST_ADC_CALIBRATE_STATUS_OUT_LEN 4
17640 #define MC_CMD_SUC_MANFTEST_ADC_CALIBRATE_STATUS_OUT_FLAGS_LEN 4
17646 #define MC_CMD_SUC_MANFTEST_ADC_CALIBRATE_STATUS_OUT_RESULT_WIDTH 4
17651 #define MC_CMD_SUC_MANFTEST_ADC_CALIBRATE_RESULT_IN_LEN 4
17656 #define MC_CMD_SUC_MANFTEST_ADC_CALIBRATE_RESULT_IN_OP_LEN 4
17662 #define MC_CMD_SUC_MANFTEST_ADC_CALIBRATE_RESULT_OUT_VALUE_LEN 4
17666 #define MC_CMD_SUC_MANFTEST_CONFIG_PCIE_READ_IN_LEN 4
17671 #define MC_CMD_SUC_MANFTEST_CONFIG_PCIE_READ_IN_OP_LEN 4
17674 #define MC_CMD_SUC_MANFTEST_CONFIG_PCIE_READ_OUT_LEN 4
17688 #define MC_CMD_SUC_MANFTEST_CONFIG_PCIE_WRITE_IN_OP_LEN 4
17690 #define MC_CMD_SUC_MANFTEST_CONFIG_PCIE_WRITE_IN_VENDOR_ID_OFST 4
17700 #define MC_CMD_SUC_MANFTEST_FRU_WRITE_IN_LEN 4
17705 #define MC_CMD_SUC_MANFTEST_FRU_WRITE_IN_OP_LEN 4
17723 #define MC_CMD_GET_CERTIFICATE_IN_TYPE_LEN 4
17754 #define MC_CMD_GET_CERTIFICATE_IN_OFFSET_OFST 4
17755 #define MC_CMD_GET_CERTIFICATE_IN_OFFSET_LEN 4
17763 #define MC_CMD_GET_CERTIFICATE_OUT_TYPE_LEN 4
17769 #define MC_CMD_GET_CERTIFICATE_OUT_OFFSET_OFST 4
17770 #define MC_CMD_GET_CERTIFICATE_OUT_OFFSET_LEN 4
17773 #define MC_CMD_GET_CERTIFICATE_OUT_TOTAL_LENGTH_LEN 4
17790 #define MC_CMD_GET_NIC_GLOBAL_IN_LEN 4
17796 #define MC_CMD_GET_NIC_GLOBAL_IN_KEY_LEN 4
17799 #define MC_CMD_GET_NIC_GLOBAL_OUT_LEN 4
17802 #define MC_CMD_GET_NIC_GLOBAL_OUT_VALUE_LEN 4
17821 #define MC_CMD_SET_NIC_GLOBAL_IN_KEY_LEN 4
17822 /* enum: Request switching the datapath firmware sub-variant. Currently only
17826 * to switch back to the default sub-variant, and will thus reset this value.
17827 * If a sub-variant switch happens, all other PCI functions will get their
17832 #define MC_CMD_SET_NIC_GLOBAL_IN_VALUE_OFST 4
17833 #define MC_CMD_SET_NIC_GLOBAL_IN_VALUE_LEN 4
17834 /* enum: Only if KEY = FIRMWARE_SUBVARIANT. Default sub-variant with support
17864 #define MC_CMD_LTSSM_TRACE_POLL_IN_LEN 4
17869 #define MC_CMD_LTSSM_TRACE_POLL_IN_MAX_ROW_COUNT_LEN 4
17876 #define MC_CMD_LTSSM_TRACE_POLL_OUT_FLAGS_LEN 4
17884 #define MC_CMD_LTSSM_TRACE_POLL_OUT_ROW_COUNT_OFST 4
17885 #define MC_CMD_LTSSM_TRACE_POLL_OUT_ROW_COUNT_LEN 4
17906 #define MC_CMD_LTSSM_TRACE_POLL_OUT_TIMESTAMP_US_LEN 4