| @@ -12532,67 +12532,67 @@ struct public_drv_mb { · 12531 unmodified lines |
| 12532 | #define DRV_MB_PARAM_SET_LED_MODE_ON 0x1 | 12532 | #define DRV_MB_PARAM_SET_LED_MODE_ON 0x1 |
| 12533 | #define DRV_MB_PARAM_SET_LED_MODE_OFF 0x2 | 12533 | #define DRV_MB_PARAM_SET_LED_MODE_OFF 0x2 |
| 12534 | | 12534 | |
| 12535 | #define DRV_MB_PARAM_TRANSCEIVER_PORT_OFFSET 0 | 12535 | #define DRV_MB_PARAM_TRANSCEIVER_PORT_OFFSET 0 |
| 12536 | #define DRV_MB_PARAM_TRANSCEIVER_PORT_MASK 0x00000003 | 12536 | #define DRV_MB_PARAM_TRANSCEIVER_PORT_MASK 0x00000003 |
| 12537 | #define DRV_MB_PARAM_TRANSCEIVER_SIZE_OFFSET 2 | 12537 | #define DRV_MB_PARAM_TRANSCEIVER_SIZE_OFFSET 2 |
| 12538 | #define DRV_MB_PARAM_TRANSCEIVER_SIZE_MASK 0x000000FC | 12538 | #define DRV_MB_PARAM_TRANSCEIVER_SIZE_MASK 0x000000fc |
| 12539 | #define DRV_MB_PARAM_TRANSCEIVER_I2C_ADDRESS_OFFSET 8 | 12539 | #define DRV_MB_PARAM_TRANSCEIVER_I2C_ADDRESS_OFFSET 8 |
| 12540 | #define DRV_MB_PARAM_TRANSCEIVER_I2C_ADDRESS_MASK 0x0000FF00 | 12540 | #define DRV_MB_PARAM_TRANSCEIVER_I2C_ADDRESS_MASK 0x0000ff00 |
| 12541 | #define DRV_MB_PARAM_TRANSCEIVER_OFFSET_OFFSET 16 | 12541 | #define DRV_MB_PARAM_TRANSCEIVER_OFFSET_OFFSET 16 |
| 12542 | #define DRV_MB_PARAM_TRANSCEIVER_OFFSET_MASK 0xFFFF0000 | 12542 | #define DRV_MB_PARAM_TRANSCEIVER_OFFSET_MASK 0xffff0000 |
| 12543 | | 12543 | |
| 12544 | /* Resource Allocation params - Driver version support */ | 12544 | /* Resource Allocation params - Driver version support */ |
| 12545 | #define DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR_MASK 0xFFFF0000 | 12545 | #define DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR_MASK 0xffff0000 |
| 12546 | #define DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR_SHIFT 16 | 12546 | #define DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR_SHIFT 16 |
| 12547 | #define DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR_MASK 0x0000FFFF | 12547 | #define DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR_MASK 0x0000ffff |
| 12548 | #define DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR_SHIFT 0 | 12548 | #define DRV_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR_SHIFT 0 |
| 12549 | | 12549 | |
| 12550 | #define DRV_MB_PARAM_BIST_REGISTER_TEST 1 | 12550 | #define DRV_MB_PARAM_BIST_REGISTER_TEST 1 |
| 12551 | #define DRV_MB_PARAM_BIST_CLOCK_TEST 2 | 12551 | #define DRV_MB_PARAM_BIST_CLOCK_TEST 2 |
| 12552 | #define DRV_MB_PARAM_BIST_NVM_TEST_NUM_IMAGES 3 | 12552 | #define DRV_MB_PARAM_BIST_NVM_TEST_NUM_IMAGES 3 |
| 12553 | #define DRV_MB_PARAM_BIST_NVM_TEST_IMAGE_BY_INDEX 4 | 12553 | #define DRV_MB_PARAM_BIST_NVM_TEST_IMAGE_BY_INDEX 4 |
| 12554 | | 12554 | |
| 12555 | #define DRV_MB_PARAM_BIST_RC_UNKNOWN 0 | 12555 | #define DRV_MB_PARAM_BIST_RC_UNKNOWN 0 |
| 12556 | #define DRV_MB_PARAM_BIST_RC_PASSED 1 | 12556 | #define DRV_MB_PARAM_BIST_RC_PASSED 1 |
| 12557 | #define DRV_MB_PARAM_BIST_RC_FAILED 2 | 12557 | #define DRV_MB_PARAM_BIST_RC_FAILED 2 |
| 12558 | #define DRV_MB_PARAM_BIST_RC_INVALID_PARAMETER 3 | 12558 | #define DRV_MB_PARAM_BIST_RC_INVALID_PARAMETER 3 |
| 12559 | | 12559 | |
| 12560 | #define DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT 0 | 12560 | #define DRV_MB_PARAM_BIST_TEST_INDEX_SHIFT 0 |
| 12561 | #define DRV_MB_PARAM_BIST_TEST_INDEX_MASK 0x000000FF | 12561 | #define DRV_MB_PARAM_BIST_TEST_INDEX_MASK 0x000000ff |
| 12562 | #define DRV_MB_PARAM_BIST_TEST_IMAGE_INDEX_SHIFT 8 | 12562 | #define DRV_MB_PARAM_BIST_TEST_IMAGE_INDEX_SHIFT 8 |
| 12563 | #define DRV_MB_PARAM_BIST_TEST_IMAGE_INDEX_MASK 0x0000FF00 | 12563 | #define DRV_MB_PARAM_BIST_TEST_IMAGE_INDEX_MASK 0x0000ff00 |
| 12564 | | 12564 | |
| 12565 | #define DRV_MB_PARAM_FEATURE_SUPPORT_PORT_MASK 0x0000FFFF | 12565 | #define DRV_MB_PARAM_FEATURE_SUPPORT_PORT_MASK 0x0000ffff |
| 12566 | #define DRV_MB_PARAM_FEATURE_SUPPORT_PORT_OFFSET 0 | 12566 | #define DRV_MB_PARAM_FEATURE_SUPPORT_PORT_OFFSET 0 |
| 12567 | #define DRV_MB_PARAM_FEATURE_SUPPORT_PORT_EEE 0x00000002 | 12567 | #define DRV_MB_PARAM_FEATURE_SUPPORT_PORT_EEE 0x00000002 |
| 12568 | #define DRV_MB_PARAM_FEATURE_SUPPORT_PORT_FEC_CONTROL 0x00000004 | 12568 | #define DRV_MB_PARAM_FEATURE_SUPPORT_PORT_FEC_CONTROL 0x00000004 |
| 12569 | #define DRV_MB_PARAM_FEATURE_SUPPORT_FUNC_VLINK 0x00010000 | 12569 | #define DRV_MB_PARAM_FEATURE_SUPPORT_FUNC_VLINK 0x00010000 |
| 12570 | | 12570 | |
| 12571 | /* DRV_MSG_CODE_DEBUG_DATA_SEND parameters */ | 12571 | /* DRV_MSG_CODE_DEBUG_DATA_SEND parameters */ |
| 12572 | #define DRV_MSG_CODE_DEBUG_DATA_SEND_SIZE_OFFSET 0 | 12572 | #define DRV_MSG_CODE_DEBUG_DATA_SEND_SIZE_OFFSET 0 |
| 12573 | #define DRV_MSG_CODE_DEBUG_DATA_SEND_SIZE_MASK 0xFF | 12573 | #define DRV_MSG_CODE_DEBUG_DATA_SEND_SIZE_MASK 0xff |
| 12574 | | 12574 | |
| 12575 | /* Driver attributes params */ | 12575 | /* Driver attributes params */ |
| 12576 | #define DRV_MB_PARAM_ATTRIBUTE_KEY_OFFSET 0 | 12576 | #define DRV_MB_PARAM_ATTRIBUTE_KEY_OFFSET 0 |
| 12577 | #define DRV_MB_PARAM_ATTRIBUTE_KEY_MASK 0x00FFFFFF | 12577 | #define DRV_MB_PARAM_ATTRIBUTE_KEY_MASK 0x00ffffff |
| 12578 | #define DRV_MB_PARAM_ATTRIBUTE_CMD_OFFSET 24 | 12578 | #define DRV_MB_PARAM_ATTRIBUTE_CMD_OFFSET 24 |
| 12579 | #define DRV_MB_PARAM_ATTRIBUTE_CMD_MASK 0xFF000000 | 12579 | #define DRV_MB_PARAM_ATTRIBUTE_CMD_MASK 0xff000000 |
| 12580 | | 12580 | |
| 12581 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ID_OFFSET 0 | 12581 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ID_OFFSET 0 |
| 12582 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ID_SHIFT 0 | 12582 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ID_SHIFT 0 |
| 12583 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ID_MASK 0x0000FFFF | 12583 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ID_MASK 0x0000ffff |
| 12584 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ALL_SHIFT 16 | 12584 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ALL_SHIFT 16 |
| 12585 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ALL_MASK 0x00010000 | 12585 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ALL_MASK 0x00010000 |
| 12586 | #define DRV_MB_PARAM_NVM_CFG_OPTION_INIT_SHIFT 17 | 12586 | #define DRV_MB_PARAM_NVM_CFG_OPTION_INIT_SHIFT 17 |
| 12587 | #define DRV_MB_PARAM_NVM_CFG_OPTION_INIT_MASK 0x00020000 | 12587 | #define DRV_MB_PARAM_NVM_CFG_OPTION_INIT_MASK 0x00020000 |
| 12588 | #define DRV_MB_PARAM_NVM_CFG_OPTION_COMMIT_SHIFT 18 | 12588 | #define DRV_MB_PARAM_NVM_CFG_OPTION_COMMIT_SHIFT 18 |
| 12589 | #define DRV_MB_PARAM_NVM_CFG_OPTION_COMMIT_MASK 0x00040000 | 12589 | #define DRV_MB_PARAM_NVM_CFG_OPTION_COMMIT_MASK 0x00040000 |
| 12590 | #define DRV_MB_PARAM_NVM_CFG_OPTION_FREE_SHIFT 19 | 12590 | #define DRV_MB_PARAM_NVM_CFG_OPTION_FREE_SHIFT 19 |
| 12591 | #define DRV_MB_PARAM_NVM_CFG_OPTION_FREE_MASK 0x00080000 | 12591 | #define DRV_MB_PARAM_NVM_CFG_OPTION_FREE_MASK 0x00080000 |
| 12592 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ENTITY_SEL_SHIFT 20 | 12592 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ENTITY_SEL_SHIFT 20 |
| 12593 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ENTITY_SEL_MASK 0x00100000 | 12593 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ENTITY_SEL_MASK 0x00100000 |
| 12594 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ENTITY_ID_SHIFT 24 | 12594 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ENTITY_ID_SHIFT 24 |
| 12595 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ENTITY_ID_MASK 0x0f000000 | 12595 | #define DRV_MB_PARAM_NVM_CFG_OPTION_ENTITY_ID_MASK 0x0f000000 |
| 12596 | | 12596 | |
| 12597 | u32 fw_mb_header; | 12597 | u32 fw_mb_header; |
| 12598 | #define FW_MSG_CODE_MASK 0xffff0000 | 12598 | #define FW_MSG_CODE_MASK 0xffff0000 |
| @@ -12639,56 +12639,56 @@ struct public_drv_mb { · 40 unmodified lines |
| 12639 | | 12639 | |
| 12640 | #define FW_MSG_CODE_MDUMP_INVALID_CMD 0x00030000 | 12640 | #define FW_MSG_CODE_MDUMP_INVALID_CMD 0x00030000 |
| 12641 | | 12641 | |
| 12642 | u32 fw_mb_param; | 12642 | u32 fw_mb_param; |
| 12643 | #define FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR_MASK 0xffff0000 | 12643 | #define FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR_MASK 0xffff0000 |
| 12644 | #define FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR_SHIFT 16 | 12644 | #define FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MAJOR_SHIFT 16 |
| 12645 | #define FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR_MASK 0x0000ffff | 12645 | #define FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR_MASK 0x0000ffff |
| 12646 | #define FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR_SHIFT 0 | 12646 | #define FW_MB_PARAM_RESOURCE_ALLOC_VERSION_MINOR_SHIFT 0 |
| 12647 | | 12647 | |
| 12648 | /* Get PF RDMA protocol command response */ | 12648 | /* Get PF RDMA protocol command response */ |
| 12649 | #define FW_MB_PARAM_GET_PF_RDMA_NONE 0x0 | 12649 | #define FW_MB_PARAM_GET_PF_RDMA_NONE 0x0 |
| 12650 | #define FW_MB_PARAM_GET_PF_RDMA_ROCE 0x1 | 12650 | #define FW_MB_PARAM_GET_PF_RDMA_ROCE 0x1 |
| 12651 | #define FW_MB_PARAM_GET_PF_RDMA_IWARP 0x2 | 12651 | #define FW_MB_PARAM_GET_PF_RDMA_IWARP 0x2 |
| 12652 | #define FW_MB_PARAM_GET_PF_RDMA_BOTH 0x3 | 12652 | #define FW_MB_PARAM_GET_PF_RDMA_BOTH 0x3 |
| 12653 | | 12653 | |
| 12654 | /* Get MFW feature support response */ | 12654 | /* Get MFW feature support response */ |
| 12655 | #define FW_MB_PARAM_FEATURE_SUPPORT_SMARTLINQ 0x00000001 | 12655 | #define FW_MB_PARAM_FEATURE_SUPPORT_SMARTLINQ BIT(0) |
| 12656 | #define FW_MB_PARAM_FEATURE_SUPPORT_EEE 0x00000002 | 12656 | #define FW_MB_PARAM_FEATURE_SUPPORT_EEE BIT(1) |
| 12657 | #define FW_MB_PARAM_FEATURE_SUPPORT_FEC_CONTROL 0x00000020 | 12657 | #define FW_MB_PARAM_FEATURE_SUPPORT_FEC_CONTROL BIT(5) |
| 12658 | #define FW_MB_PARAM_FEATURE_SUPPORT_VLINK 0x00010000 | 12658 | #define FW_MB_PARAM_FEATURE_SUPPORT_VLINK BIT(16) |
| 12659 | | 12659 | |
| 12660 | #define FW_MB_PARAM_LOAD_DONE_DID_EFUSE_ERROR BIT(0) | 12660 | #define FW_MB_PARAM_LOAD_DONE_DID_EFUSE_ERROR BIT(0) |
| 12661 | | 12661 | |
| 12662 | #define FW_MB_PARAM_ENG_CFG_FIR_AFFIN_VALID_MASK 0x00000001 | 12662 | #define FW_MB_PARAM_ENG_CFG_FIR_AFFIN_VALID_MASK 0x00000001 |
| 12663 | #define FW_MB_PARAM_ENG_CFG_FIR_AFFIN_VALID_SHIFT 0 | 12663 | #define FW_MB_PARAM_ENG_CFG_FIR_AFFIN_VALID_SHIFT 0 |
| 12664 | #define FW_MB_PARAM_ENG_CFG_FIR_AFFIN_VALUE_MASK 0x00000002 | 12664 | #define FW_MB_PARAM_ENG_CFG_FIR_AFFIN_VALUE_MASK 0x00000002 |
| 12665 | #define FW_MB_PARAM_ENG_CFG_FIR_AFFIN_VALUE_SHIFT 1 | 12665 | #define FW_MB_PARAM_ENG_CFG_FIR_AFFIN_VALUE_SHIFT 1 |
| 12666 | #define FW_MB_PARAM_ENG_CFG_L2_AFFIN_VALID_MASK 0x00000004 | 12666 | #define FW_MB_PARAM_ENG_CFG_L2_AFFIN_VALID_MASK 0x00000004 |
| 12667 | #define FW_MB_PARAM_ENG_CFG_L2_AFFIN_VALID_SHIFT 2 | 12667 | #define FW_MB_PARAM_ENG_CFG_L2_AFFIN_VALID_SHIFT 2 |
| 12668 | #define FW_MB_PARAM_ENG_CFG_L2_AFFIN_VALUE_MASK 0x00000008 | 12668 | #define FW_MB_PARAM_ENG_CFG_L2_AFFIN_VALUE_MASK 0x00000008 |
| 12669 | #define FW_MB_PARAM_ENG_CFG_L2_AFFIN_VALUE_SHIFT 3 | 12669 | #define FW_MB_PARAM_ENG_CFG_L2_AFFIN_VALUE_SHIFT 3 |
| 12670 | | 12670 | |
| 12671 | #define FW_MB_PARAM_PPFID_BITMAP_MASK 0xff | 12671 | #define FW_MB_PARAM_PPFID_BITMAP_MASK 0xff |
| 12672 | #define FW_MB_PARAM_PPFID_BITMAP_SHIFT 0 | 12672 | #define FW_MB_PARAM_PPFID_BITMAP_SHIFT 0 |
| 12673 | | 12673 | |
| 12674 | u32 drv_pulse_mb; | 12674 | u32 drv_pulse_mb; |
| 12675 | #define DRV_PULSE_SEQ_MASK 0x00007fff | 12675 | #define DRV_PULSE_SEQ_MASK 0x00007fff |
| 12676 | #define DRV_PULSE_SYSTEM_TIME_MASK 0xffff0000 | 12676 | #define DRV_PULSE_SYSTEM_TIME_MASK 0xffff0000 |
| 12677 | #define DRV_PULSE_ALWAYS_ALIVE 0x00008000 | 12677 | #define DRV_PULSE_ALWAYS_ALIVE 0x00008000 |
| 12678 | | 12678 | |
| 12679 | u32 mcp_pulse_mb; | 12679 | u32 mcp_pulse_mb; |
| 12680 | #define MCP_PULSE_SEQ_MASK 0x00007fff | 12680 | #define MCP_PULSE_SEQ_MASK 0x00007fff |
| 12681 | #define MCP_PULSE_ALWAYS_ALIVE 0x00008000 | 12681 | #define MCP_PULSE_ALWAYS_ALIVE 0x00008000 |
| 12682 | #define MCP_EVENT_MASK 0xffff0000 | 12682 | #define MCP_EVENT_MASK 0xffff0000 |
| 12683 | #define MCP_EVENT_OTHER_DRIVER_RESET_REQ 0x00010000 | 12683 | #define MCP_EVENT_OTHER_DRIVER_RESET_REQ 0x00010000 |
| 12684 | | 12684 | |
| 12685 | union drv_union_data union_data; | 12685 | union drv_union_data union_data; |
| 12686 | }; | 12686 | }; |
| 12687 | | 12687 | |
| 12688 | #define FW_MB_PARAM_NVM_PUT_FILE_REQ_OFFSET_MASK 0x00ffffff | 12688 | #define FW_MB_PARAM_NVM_PUT_FILE_REQ_OFFSET_MASK 0x00ffffff |
| 12689 | #define FW_MB_PARAM_NVM_PUT_FILE_REQ_OFFSET_SHIFT 0 | 12689 | #define FW_MB_PARAM_NVM_PUT_FILE_REQ_OFFSET_SHIFT 0 |
| 12690 | #define FW_MB_PARAM_NVM_PUT_FILE_REQ_SIZE_MASK 0xff000000 | 12690 | #define FW_MB_PARAM_NVM_PUT_FILE_REQ_SIZE_MASK 0xff000000 |
| 12691 | #define FW_MB_PARAM_NVM_PUT_FILE_REQ_SIZE_SHIFT 24 | 12691 | #define FW_MB_PARAM_NVM_PUT_FILE_REQ_SIZE_SHIFT 24 |
| 12692 | | 12692 | |
| 12693 | enum MFW_DRV_MSG_TYPE { | 12693 | enum MFW_DRV_MSG_TYPE { |
| 12694 | MFW_DRV_MSG_LINK_CHANGE, | 12694 | MFW_DRV_MSG_LINK_CHANGE, |
| @@ -12975,86 +12975,93 @@ enum tlvs { · 280 unmodified lines |
| 12975 | }; | 12975 | }; |
| 12976 | | 12976 | |
| 12977 | struct nvm_cfg_mac_address { | 12977 | struct nvm_cfg_mac_address { |
| 12978 | u32 mac_addr_hi; | 12978 | u32 mac_addr_hi; |
| 12979 | #define NVM_CFG_MAC_ADDRESS_HI_MASK 0x0000FFFF | 12979 | #define NVM_CFG_MAC_ADDRESS_HI_MASK 0x0000ffff |
| 12980 | #define NVM_CFG_MAC_ADDRESS_HI_OFFSET 0 | 12980 | #define NVM_CFG_MAC_ADDRESS_HI_OFFSET 0 |
| 12981 | u32 mac_addr_lo; | 12981 | |
| | 12982 | u32 mac_addr_lo; |
| 12982 | }; | 12983 | }; |
| 12983 | | 12984 | |
| 12984 | struct nvm_cfg1_glob { | 12985 | struct nvm_cfg1_glob { |
| 12985 | u32 generic_cont0; | 12986 | u32 generic_cont0; |
| 12986 | #define NVM_CFG1_GLOB_MF_MODE_MASK 0x00000FF0 | 12987 | #define NVM_CFG1_GLOB_MF_MODE_MASK 0x00000ff0 |
| 12987 | #define NVM_CFG1_GLOB_MF_MODE_OFFSET 4 | 12988 | #define NVM_CFG1_GLOB_MF_MODE_OFFSET 4 |
| 12988 | #define NVM_CFG1_GLOB_MF_MODE_MF_ALLOWED 0x0 | 12989 | #define NVM_CFG1_GLOB_MF_MODE_MF_ALLOWED 0x0 |
| 12989 | #define NVM_CFG1_GLOB_MF_MODE_DEFAULT 0x1 | 12990 | #define NVM_CFG1_GLOB_MF_MODE_DEFAULT 0x1 |
| 12990 | #define NVM_CFG1_GLOB_MF_MODE_SPIO4 0x2 | 12991 | #define NVM_CFG1_GLOB_MF_MODE_SPIO4 0x2 |
| 12991 | #define NVM_CFG1_GLOB_MF_MODE_NPAR1_0 0x3 | 12992 | #define NVM_CFG1_GLOB_MF_MODE_NPAR1_0 0x3 |
| 12992 | #define NVM_CFG1_GLOB_MF_MODE_NPAR1_5 0x4 | 12993 | #define NVM_CFG1_GLOB_MF_MODE_NPAR1_5 0x4 |
| 12993 | #define NVM_CFG1_GLOB_MF_MODE_NPAR2_0 0x5 | 12994 | #define NVM_CFG1_GLOB_MF_MODE_NPAR2_0 0x5 |
| 12994 | #define NVM_CFG1_GLOB_MF_MODE_BD 0x6 | 12995 | #define NVM_CFG1_GLOB_MF_MODE_BD 0x6 |
| 12995 | #define NVM_CFG1_GLOB_MF_MODE_UFP 0x7 | 12996 | #define NVM_CFG1_GLOB_MF_MODE_UFP 0x7 |
| 12996 | u32 engineering_change[3]; | 12997 | |
| 12997 | u32 manufacturing_id; | 12998 | u32 engineering_change[3]; |
| 12998 | u32 serial_number[4]; | 12999 | u32 manufacturing_id; |
| 12999 | u32 pcie_cfg; | 13000 | u32 serial_number[4]; |
| 13000 | u32 mgmt_traffic; | 13001 | u32 pcie_cfg; |
| 13001 | u32 core_cfg; | 13002 | u32 mgmt_traffic; |
| 13002 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_MASK 0x000000FF | 13003 | |
| 13003 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_OFFSET 0 | 13004 | u32 core_cfg; |
| 13004 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_2X40G 0x0 | 13005 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_MASK 0x000000ff |
| 13005 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_2X50G 0x1 | 13006 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_OFFSET 0 |
| 13006 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_1X100G 0x2 | 13007 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_2X40G 0x0 |
| 13007 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_4X10G_F 0x3 | 13008 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_2X50G 0x1 |
| 13008 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_4X10G_E 0x4 | 13009 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_1X100G 0x2 |
| 13009 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_4X20G 0x5 | 13010 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_4X10G_F 0x3 |
| 13010 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_1X40G 0xB | 13011 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_4X10G_E 0x4 |
| 13011 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_2X25G 0xC | 13012 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_4X20G 0x5 |
| 13012 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_1X25G 0xD | 13013 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_1X40G 0xb |
| 13013 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_4X25G 0xE | 13014 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_2X25G 0xc |
| 13014 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_2X10G 0xF | 13015 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_1X25G 0xd |
| 13015 | | 13016 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_4X25G 0xe |
| 13016 | u32 e_lane_cfg1; | 13017 | #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_2X10G 0xf |
| 13017 | u32 e_lane_cfg2; | 13018 | |
| 13018 | u32 f_lane_cfg1; | 13019 | u32 e_lane_cfg1; |
| 13019 | u32 f_lane_cfg2; | 13020 | u32 e_lane_cfg2; |
| 13020 | u32 mps10_preemphasis; | 13021 | u32 f_lane_cfg1; |
| 13021 | u32 mps10_driver_current; | 13022 | u32 f_lane_cfg2; |
| 13022 | u32 mps25_preemphasis; | 13023 | u32 mps10_preemphasis; |
| 13023 | u32 mps25_driver_current; | 13024 | u32 mps10_driver_current; |
| 13024 | u32 pci_id; | 13025 | u32 mps25_preemphasis; |
| 13025 | u32 pci_subsys_id; | 13026 | u32 mps25_driver_current; |
| 13026 | u32 bar; | 13027 | u32 pci_id; |
| 13027 | u32 mps10_txfir_main; | 13028 | u32 pci_subsys_id; |
| 13028 | u32 mps10_txfir_post; | 13029 | u32 bar; |
| 13029 | u32 mps25_txfir_main; | 13030 | u32 mps10_txfir_main; |
| 13030 | u32 mps25_txfir_post; | 13031 | u32 mps10_txfir_post; |
| 13031 | u32 manufacture_ver; | 13032 | u32 mps25_txfir_main; |
| 13032 | u32 manufacture_time; | 13033 | u32 mps25_txfir_post; |
| 13033 | u32 led_global_settings; | 13034 | u32 manufacture_ver; |
| 13034 | u32 generic_cont1; | 13035 | u32 manufacture_time; |
| 13035 | u32 mbi_version; | 13036 | u32 led_global_settings; |
| 13036 | #define NVM_CFG1_GLOB_MBI_VERSION_0_MASK 0x000000FF | 13037 | u32 generic_cont1; |
| 13037 | #define NVM_CFG1_GLOB_MBI_VERSION_0_OFFSET 0 | 13038 | |
| 13038 | #define NVM_CFG1_GLOB_MBI_VERSION_1_MASK 0x0000FF00 | 13039 | u32 mbi_version; |
| 13039 | #define NVM_CFG1_GLOB_MBI_VERSION_1_OFFSET 8 | 13040 | #define NVM_CFG1_GLOB_MBI_VERSION_0_MASK 0x000000ff |
| 13040 | #define NVM_CFG1_GLOB_MBI_VERSION_2_MASK 0x00FF0000 | 13041 | #define NVM_CFG1_GLOB_MBI_VERSION_0_OFFSET 0 |
| 13041 | #define NVM_CFG1_GLOB_MBI_VERSION_2_OFFSET 16 | 13042 | #define NVM_CFG1_GLOB_MBI_VERSION_1_MASK 0x0000ff00 |
| 13042 | u32 mbi_date; | 13043 | #define NVM_CFG1_GLOB_MBI_VERSION_1_OFFSET 8 |
| 13043 | u32 misc_sig; | 13044 | #define NVM_CFG1_GLOB_MBI_VERSION_2_MASK 0x00ff0000 |
| 13044 | u32 device_capabilities; | 13045 | #define NVM_CFG1_GLOB_MBI_VERSION_2_OFFSET 16 |
| 13045 | #define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_ETHERNET 0x1 | 13046 | |
| 13046 | #define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_FCOE 0x2 | 13047 | u32 mbi_date; |
| 13047 | #define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_ISCSI 0x4 | 13048 | u32 misc_sig; |
| 13048 | #define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_ROCE 0x8 | 13049 | |
| 13049 | u32 power_dissipated; | 13050 | u32 device_capabilities; |
| 13050 | u32 power_consumed; | 13051 | #define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_ETHERNET 0x1 |
| 13051 | u32 efi_version; | 13052 | #define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_FCOE 0x2 |
| 13052 | u32 multi_network_modes_capability; | 13053 | #define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_ISCSI 0x4 |
| 13053 | u32 reserved[41]; | 13054 | #define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_ROCE 0x8 |
| | 13055 | |
| | 13056 | u32 power_dissipated; |
| | 13057 | u32 power_consumed; |
| | 13058 | u32 efi_version; |
| | 13059 | u32 multi_net_modes_cap; |
| | 13060 | u32 reserved[41]; |
| 13054 | }; | 13061 | }; |
| 13055 | | 13062 | |
| 13056 | struct nvm_cfg1_path { | 13063 | struct nvm_cfg1_path { |
| 13057 | u32 reserved[30]; | 13064 | u32 reserved[30]; |
| 13058 | }; | 13065 | }; |
| 13059 | | 13066 | |
| 13060 | struct nvm_cfg1_port { | 13067 | struct nvm_cfg1_port { |
| @@ -13082,7 +13089,7 @@ struct nvm_cfg1_port { · 21 unmodified lines |
| 13082 | #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_OFFSET 0 | 13089 | #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_OFFSET 0 |
| 13083 | #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_1G 0x1 | 13090 | #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_1G 0x1 |
| 13084 | #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_10G 0x2 | 13091 | #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_10G 0x2 |
| 13085 | #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_20G 0x4 | 13092 | #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_20G 0x4 |
| 13086 | #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_25G 0x8 | 13093 | #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_25G 0x8 |
| 13087 | #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_40G 0x10 | 13094 | #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_40G 0x10 |
| 13088 | #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_50G 0x20 | 13095 | #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_50G 0x20 |
| @@ -13094,7 +13101,7 @@ struct nvm_cfg1_port { · 5 unmodified lines |
| 13094 | #define NVM_CFG1_PORT_DRV_LINK_SPEED_AUTONEG 0x0 | 13101 | #define NVM_CFG1_PORT_DRV_LINK_SPEED_AUTONEG 0x0 |
| 13095 | #define NVM_CFG1_PORT_DRV_LINK_SPEED_1G 0x1 | 13102 | #define NVM_CFG1_PORT_DRV_LINK_SPEED_1G 0x1 |
| 13096 | #define NVM_CFG1_PORT_DRV_LINK_SPEED_10G 0x2 | 13103 | #define NVM_CFG1_PORT_DRV_LINK_SPEED_10G 0x2 |
| 13097 | #define NVM_CFG1_PORT_DRV_LINK_SPEED_20G 0x3 | 13104 | #define NVM_CFG1_PORT_DRV_LINK_SPEED_20G 0x3 |
| 13098 | #define NVM_CFG1_PORT_DRV_LINK_SPEED_25G 0x4 | 13105 | #define NVM_CFG1_PORT_DRV_LINK_SPEED_25G 0x4 |
| 13099 | #define NVM_CFG1_PORT_DRV_LINK_SPEED_40G 0x5 | 13106 | #define NVM_CFG1_PORT_DRV_LINK_SPEED_40G 0x5 |
| 13100 | #define NVM_CFG1_PORT_DRV_LINK_SPEED_50G 0x6 | 13107 | #define NVM_CFG1_PORT_DRV_LINK_SPEED_50G 0x6 |