18c2ecf20Sopenharmony_ci/* bnx2fc_constants.h: QLogic Linux FCoE offload driver. 28c2ecf20Sopenharmony_ci * Handles operations such as session offload/upload etc, and manages 38c2ecf20Sopenharmony_ci * session resources such as connection id and qp resources. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2008-2013 Broadcom Corporation 68c2ecf20Sopenharmony_ci * Copyright (c) 2014-2016 QLogic Corporation 78c2ecf20Sopenharmony_ci * Copyright (c) 2016-2017 Cavium Inc. 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify 108c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License as published by 118c2ecf20Sopenharmony_ci * the Free Software Foundation. 128c2ecf20Sopenharmony_ci * 138c2ecf20Sopenharmony_ci */ 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#ifndef __BNX2FC_CONSTANTS_H_ 168c2ecf20Sopenharmony_ci#define __BNX2FC_CONSTANTS_H_ 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci/** 198c2ecf20Sopenharmony_ci * This file defines HSI constants for the FCoE flows 208c2ecf20Sopenharmony_ci */ 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci/* Current FCoE HSI version number composed of two fields (16 bit) */ 238c2ecf20Sopenharmony_ci/* Implies on a change broken previous HSI */ 248c2ecf20Sopenharmony_ci#define FCOE_HSI_MAJOR_VERSION (2) 258c2ecf20Sopenharmony_ci/* Implies on a change which does not broken previous HSI */ 268c2ecf20Sopenharmony_ci#define FCOE_HSI_MINOR_VERSION (1) 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci/* KWQ/KCQ FCoE layer code */ 298c2ecf20Sopenharmony_ci#define FCOE_KWQE_LAYER_CODE (7) 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci/* KWQ (kernel work queue) request op codes */ 328c2ecf20Sopenharmony_ci#define FCOE_KWQE_OPCODE_INIT1 (0) 338c2ecf20Sopenharmony_ci#define FCOE_KWQE_OPCODE_INIT2 (1) 348c2ecf20Sopenharmony_ci#define FCOE_KWQE_OPCODE_INIT3 (2) 358c2ecf20Sopenharmony_ci#define FCOE_KWQE_OPCODE_OFFLOAD_CONN1 (3) 368c2ecf20Sopenharmony_ci#define FCOE_KWQE_OPCODE_OFFLOAD_CONN2 (4) 378c2ecf20Sopenharmony_ci#define FCOE_KWQE_OPCODE_OFFLOAD_CONN3 (5) 388c2ecf20Sopenharmony_ci#define FCOE_KWQE_OPCODE_OFFLOAD_CONN4 (6) 398c2ecf20Sopenharmony_ci#define FCOE_KWQE_OPCODE_ENABLE_CONN (7) 408c2ecf20Sopenharmony_ci#define FCOE_KWQE_OPCODE_DISABLE_CONN (8) 418c2ecf20Sopenharmony_ci#define FCOE_KWQE_OPCODE_DESTROY_CONN (9) 428c2ecf20Sopenharmony_ci#define FCOE_KWQE_OPCODE_DESTROY (10) 438c2ecf20Sopenharmony_ci#define FCOE_KWQE_OPCODE_STAT (11) 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci/* KCQ (kernel completion queue) response op codes */ 468c2ecf20Sopenharmony_ci#define FCOE_KCQE_OPCODE_INIT_FUNC (0x10) 478c2ecf20Sopenharmony_ci#define FCOE_KCQE_OPCODE_DESTROY_FUNC (0x11) 488c2ecf20Sopenharmony_ci#define FCOE_KCQE_OPCODE_STAT_FUNC (0x12) 498c2ecf20Sopenharmony_ci#define FCOE_KCQE_OPCODE_OFFLOAD_CONN (0x15) 508c2ecf20Sopenharmony_ci#define FCOE_KCQE_OPCODE_ENABLE_CONN (0x16) 518c2ecf20Sopenharmony_ci#define FCOE_KCQE_OPCODE_DISABLE_CONN (0x17) 528c2ecf20Sopenharmony_ci#define FCOE_KCQE_OPCODE_DESTROY_CONN (0x18) 538c2ecf20Sopenharmony_ci#define FCOE_KCQE_OPCODE_CQ_EVENT_NOTIFICATION (0x20) 548c2ecf20Sopenharmony_ci#define FCOE_KCQE_OPCODE_FCOE_ERROR (0x21) 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci/* KCQ (kernel completion queue) completion status */ 578c2ecf20Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_SUCCESS (0x0) 588c2ecf20Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_ERROR (0x1) 598c2ecf20Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_INVALID_OPCODE (0x2) 608c2ecf20Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE (0x3) 618c2ecf20Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_CTX_FREE_FAILURE (0x4) 628c2ecf20Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_NIC_ERROR (0x5) 638c2ecf20Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_WRONG_HSI_VERSION (0x6) 648c2ecf20Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_PARITY_ERROR (0x81) 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ci/* CQE type */ 678c2ecf20Sopenharmony_ci#define FCOE_PENDING_CQE_TYPE 0 688c2ecf20Sopenharmony_ci#define FCOE_UNSOLIC_CQE_TYPE 1 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ci/* Unsolicited CQE type */ 718c2ecf20Sopenharmony_ci#define FCOE_UNSOLICITED_FRAME_CQE_TYPE 0 728c2ecf20Sopenharmony_ci#define FCOE_ERROR_DETECTION_CQE_TYPE 1 738c2ecf20Sopenharmony_ci#define FCOE_WARNING_DETECTION_CQE_TYPE 2 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ci/* E_D_TOV timer resolution in ms */ 768c2ecf20Sopenharmony_ci#define FCOE_E_D_TOV_TIMER_RESOLUTION_MS (20) 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci/* E_D_TOV timer resolution for SDM (4 micro) */ 798c2ecf20Sopenharmony_ci#define FCOE_E_D_TOV_SDM_TIMER_RESOLUTION \ 808c2ecf20Sopenharmony_ci (FCOE_E_D_TOV_TIMER_RESOLUTION_MS * 1000 / 4) 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_ci/* REC timer resolution in ms */ 838c2ecf20Sopenharmony_ci#define FCOE_REC_TIMER_RESOLUTION_MS (20) 848c2ecf20Sopenharmony_ci 858c2ecf20Sopenharmony_ci/* REC timer resolution for SDM (4 micro) */ 868c2ecf20Sopenharmony_ci#define FCOE_REC_SDM_TIMER_RESOLUTION (FCOE_REC_TIMER_RESOLUTION_MS * 1000 / 4) 878c2ecf20Sopenharmony_ci 888c2ecf20Sopenharmony_ci/* E_D_TOV timer default wraparound value (2 sec) in 20 ms resolution */ 898c2ecf20Sopenharmony_ci#define FCOE_E_D_TOV_DEFAULT_WRAPAROUND_VAL \ 908c2ecf20Sopenharmony_ci (2000 / FCOE_E_D_TOV_TIMER_RESOLUTION_MS) 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ci/* REC_TOV timer default wraparound value (3 sec) in 20 ms resolution */ 938c2ecf20Sopenharmony_ci#define FCOE_REC_TOV_DEFAULT_WRAPAROUND_VAL \ 948c2ecf20Sopenharmony_ci (3000 / FCOE_REC_TIMER_RESOLUTION_MS) 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_ci#define FCOE_NUM_OF_TIMER_TASKS (8 * 1024) 978c2ecf20Sopenharmony_ci 988c2ecf20Sopenharmony_ci#define FCOE_NUM_OF_CACHED_TASKS_TIMER (8) 998c2ecf20Sopenharmony_ci 1008c2ecf20Sopenharmony_ci/* Task context constants */ 1018c2ecf20Sopenharmony_ci/******** Remove FCP_CMD write tce sleep ***********************/ 1028c2ecf20Sopenharmony_ci/* In case timer services are required then shall be updated by Xstorm after 1038c2ecf20Sopenharmony_ci * start processing the task. In case no timer facilities are required then the 1048c2ecf20Sopenharmony_ci * driver would initialize the state to this value 1058c2ecf20Sopenharmony_ci * 1068c2ecf20Sopenharmony_ci#define FCOE_TASK_TX_STATE_NORMAL 0 1078c2ecf20Sopenharmony_ci * After driver has initialize the task in case timer services required * 1088c2ecf20Sopenharmony_ci#define FCOE_TASK_TX_STATE_INIT 1 1098c2ecf20Sopenharmony_ci******** Remove FCP_CMD write tce sleep ***********************/ 1108c2ecf20Sopenharmony_ci/* After driver has initialize the task in case timer services required */ 1118c2ecf20Sopenharmony_ci#define FCOE_TASK_TX_STATE_INIT 0 1128c2ecf20Sopenharmony_ci/* In case timer services are required then shall be updated by Xstorm after 1138c2ecf20Sopenharmony_ci * start processing the task. In case no timer facilities are required then the 1148c2ecf20Sopenharmony_ci * driver would initialize the state to this value 1158c2ecf20Sopenharmony_ci */ 1168c2ecf20Sopenharmony_ci#define FCOE_TASK_TX_STATE_NORMAL 1 1178c2ecf20Sopenharmony_ci/* Task is under abort procedure. Updated in order to stop processing of 1188c2ecf20Sopenharmony_ci * pending WQEs on this task 1198c2ecf20Sopenharmony_ci */ 1208c2ecf20Sopenharmony_ci#define FCOE_TASK_TX_STATE_ABORT 2 1218c2ecf20Sopenharmony_ci/* For E_D_T_TOV timer expiration in Xstorm (Class 2 only) */ 1228c2ecf20Sopenharmony_ci#define FCOE_TASK_TX_STATE_ERROR 3 1238c2ecf20Sopenharmony_ci/* For REC_TOV timer expiration indication received from Xstorm */ 1248c2ecf20Sopenharmony_ci#define FCOE_TASK_TX_STATE_WARNING 4 1258c2ecf20Sopenharmony_ci/* For completed unsolicited task */ 1268c2ecf20Sopenharmony_ci#define FCOE_TASK_TX_STATE_UNSOLICITED_COMPLETED 5 1278c2ecf20Sopenharmony_ci/* For exchange cleanup request task */ 1288c2ecf20Sopenharmony_ci#define FCOE_TASK_TX_STATE_EXCHANGE_CLEANUP 6 1298c2ecf20Sopenharmony_ci/* For sequence cleanup request task */ 1308c2ecf20Sopenharmony_ci#define FCOE_TASK_TX_STATE_SEQUENCE_CLEANUP 7 1318c2ecf20Sopenharmony_ci/* For completion the ABTS task. */ 1328c2ecf20Sopenharmony_ci#define FCOE_TASK_TX_STATE_ABTS_TX 8 1338c2ecf20Sopenharmony_ci 1348c2ecf20Sopenharmony_ci#define FCOE_TASK_RX_STATE_NORMAL 0 1358c2ecf20Sopenharmony_ci#define FCOE_TASK_RX_STATE_COMPLETED 1 1368c2ecf20Sopenharmony_ci/* Obsolete: Intermediate completion (middle path with local completion) */ 1378c2ecf20Sopenharmony_ci#define FCOE_TASK_RX_STATE_INTER_COMP 2 1388c2ecf20Sopenharmony_ci/* For REC_TOV timer expiration indication received from Xstorm */ 1398c2ecf20Sopenharmony_ci#define FCOE_TASK_RX_STATE_WARNING 3 1408c2ecf20Sopenharmony_ci/* For E_D_T_TOV timer expiration in Ustorm */ 1418c2ecf20Sopenharmony_ci#define FCOE_TASK_RX_STATE_ERROR 4 1428c2ecf20Sopenharmony_ci/* FW only: First visit at rx-path, part of the abts round trip */ 1438c2ecf20Sopenharmony_ci#define FCOE_TASK_RX_STATE_ABTS_IN_PROCESS 5 1448c2ecf20Sopenharmony_ci/* FW only: Second visit at rx-path, after ABTS frame transmitted */ 1458c2ecf20Sopenharmony_ci#define FCOE_TASK_RX_STATE_ABTS_TRANSMITTED 6 1468c2ecf20Sopenharmony_ci/* Special completion indication in case of task was aborted. */ 1478c2ecf20Sopenharmony_ci#define FCOE_TASK_RX_STATE_ABTS_COMPLETED 7 1488c2ecf20Sopenharmony_ci/* FW only: First visit at rx-path, part of the cleanup round trip */ 1498c2ecf20Sopenharmony_ci#define FCOE_TASK_RX_STATE_EXCHANGE_CLEANUP_IN_PROCESS 8 1508c2ecf20Sopenharmony_ci/* FW only: Special completion indication in case of task was cleaned. */ 1518c2ecf20Sopenharmony_ci#define FCOE_TASK_RX_STATE_EXCHANGE_CLEANUP_COMPLETED 9 1528c2ecf20Sopenharmony_ci/* Not in used: Special completion indication (in task requested the exchange 1538c2ecf20Sopenharmony_ci * cleanup) in case cleaned task is in non-valid. 1548c2ecf20Sopenharmony_ci */ 1558c2ecf20Sopenharmony_ci#define FCOE_TASK_RX_STATE_ABORT_CLEANUP_COMPLETED 10 1568c2ecf20Sopenharmony_ci/* Special completion indication (in task requested the sequence cleanup) in 1578c2ecf20Sopenharmony_ci * case cleaned task was already returned to normal. 1588c2ecf20Sopenharmony_ci */ 1598c2ecf20Sopenharmony_ci#define FCOE_TASK_RX_STATE_IGNORED_SEQUENCE_CLEANUP 11 1608c2ecf20Sopenharmony_ci 1618c2ecf20Sopenharmony_ci 1628c2ecf20Sopenharmony_ci#define FCOE_TASK_TYPE_WRITE 0 1638c2ecf20Sopenharmony_ci#define FCOE_TASK_TYPE_READ 1 1648c2ecf20Sopenharmony_ci#define FCOE_TASK_TYPE_MIDPATH 2 1658c2ecf20Sopenharmony_ci#define FCOE_TASK_TYPE_UNSOLICITED 3 1668c2ecf20Sopenharmony_ci#define FCOE_TASK_TYPE_ABTS 4 1678c2ecf20Sopenharmony_ci#define FCOE_TASK_TYPE_EXCHANGE_CLEANUP 5 1688c2ecf20Sopenharmony_ci#define FCOE_TASK_TYPE_SEQUENCE_CLEANUP 6 1698c2ecf20Sopenharmony_ci 1708c2ecf20Sopenharmony_ci#define FCOE_TASK_DEV_TYPE_DISK 0 1718c2ecf20Sopenharmony_ci#define FCOE_TASK_DEV_TYPE_TAPE 1 1728c2ecf20Sopenharmony_ci 1738c2ecf20Sopenharmony_ci#define FCOE_TASK_CLASS_TYPE_3 0 1748c2ecf20Sopenharmony_ci#define FCOE_TASK_CLASS_TYPE_2 1 1758c2ecf20Sopenharmony_ci 1768c2ecf20Sopenharmony_ci/* FCoE/FC packet fields */ 1778c2ecf20Sopenharmony_ci#define FCOE_ETH_TYPE 0x8906 1788c2ecf20Sopenharmony_ci 1798c2ecf20Sopenharmony_ci/* FCoE maximum elements in hash table */ 1808c2ecf20Sopenharmony_ci#define FCOE_MAX_ELEMENTS_IN_HASH_TABLE_ROW 8 1818c2ecf20Sopenharmony_ci 1828c2ecf20Sopenharmony_ci/* FCoE half of the elements in hash table */ 1838c2ecf20Sopenharmony_ci#define FCOE_HALF_ELEMENTS_IN_HASH_TABLE_ROW \ 1848c2ecf20Sopenharmony_ci (FCOE_MAX_ELEMENTS_IN_HASH_TABLE_ROW / 2) 1858c2ecf20Sopenharmony_ci 1868c2ecf20Sopenharmony_ci/* FcoE number of cached T2 entries */ 1878c2ecf20Sopenharmony_ci#define T_FCOE_NUMBER_OF_CACHED_T2_ENTRIES (4) 1888c2ecf20Sopenharmony_ci 1898c2ecf20Sopenharmony_ci/* FCoE maximum elements in hash table */ 1908c2ecf20Sopenharmony_ci#define FCOE_HASH_TBL_CHUNK_SIZE 16384 1918c2ecf20Sopenharmony_ci 1928c2ecf20Sopenharmony_ci/* Everest FCoE connection type */ 1938c2ecf20Sopenharmony_ci#define B577XX_FCOE_CONNECTION_TYPE 4 1948c2ecf20Sopenharmony_ci 1958c2ecf20Sopenharmony_ci/* FCoE number of rows (in log). This number derives 1968c2ecf20Sopenharmony_ci * from the maximum connections supported which is 2048. 1978c2ecf20Sopenharmony_ci * TBA: Need a different constant for E2 1988c2ecf20Sopenharmony_ci */ 1998c2ecf20Sopenharmony_ci#define FCOE_MAX_NUM_SESSIONS_LOG 11 2008c2ecf20Sopenharmony_ci 2018c2ecf20Sopenharmony_ci#define FC_ABTS_REPLY_MAX_PAYLOAD_LEN 12 2028c2ecf20Sopenharmony_ci 2038c2ecf20Sopenharmony_ci/* Error codes for Error Reporting in slow path flows */ 2048c2ecf20Sopenharmony_ci#define FCOE_SLOW_PATH_ERROR_CODE_TOO_MANY_FUNCS 0 2058c2ecf20Sopenharmony_ci#define FCOE_SLOW_PATH_ERROR_CODE_NO_LICENSE 1 2068c2ecf20Sopenharmony_ci 2078c2ecf20Sopenharmony_ci/* Error codes for Error Reporting in fast path flows 2088c2ecf20Sopenharmony_ci * XFER error codes 2098c2ecf20Sopenharmony_ci */ 2108c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_OOO_RO 0 2118c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_RO_NOT_ALIGNED 1 2128c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_NULL_BURST_LEN 2 2138c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_RO_GREATER_THAN_DATA2TRNS 3 2148c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_INVALID_PAYLOAD_SIZE 4 2158c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_TASK_TYPE_NOT_WRITE 5 2168c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_PEND_XFER_SET 6 2178c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_OPENED_SEQ 7 2188c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_FCTL 8 2198c2ecf20Sopenharmony_ci 2208c2ecf20Sopenharmony_ci/* FCP RSP error codes */ 2218c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_BIDI_FLAGS_SET 9 2228c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_UNDERFLOW 10 2238c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_OVERFLOW 11 2248c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_INVALID_LENGTH_FIELD 12 2258c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_INVALID_SNS_FIELD 13 2268c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_INVALID_PAYLOAD_SIZE 14 2278c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_PEND_XFER_SET 15 2288c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_OPENED_SEQ 16 2298c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_FCTL 17 2308c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_LAST_SEQ_RESET 18 2318c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_CONF_REQ_NOT_SUPPORTED_YET 19 2328c2ecf20Sopenharmony_ci 2338c2ecf20Sopenharmony_ci/* FCP DATA error codes */ 2348c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_OOO_RO 20 2358c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_EXCEEDS_DEFINED_MAX_FRAME_SIZE 21 2368c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_EXCEEDS_DATA2TRNS 22 2378c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_SOFI3_SEQ_ACTIVE_SET 23 2388c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_SOFN_SEQ_ACTIVE_RESET 24 2398c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_EOFN_END_SEQ_SET 25 2408c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_EOFT_END_SEQ_RESET 26 2418c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_TASK_TYPE_NOT_READ 27 2428c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_FCTL 28 2438c2ecf20Sopenharmony_ci 2448c2ecf20Sopenharmony_ci/* Middle path error codes */ 2458c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_INVALID_TYPE 29 2468c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_SOFI3_SEQ_ACTIVE_SET 30 2478c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_SOFN_SEQ_ACTIVE_RESET 31 2488c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_EOFN_END_SEQ_SET 32 2498c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_EOFT_END_SEQ_RESET 33 2508c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_REPLY_FCTL 34 2518c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_INVALID_REPLY 35 2528c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_ELS_REPLY_RCTL 36 2538c2ecf20Sopenharmony_ci 2548c2ecf20Sopenharmony_ci/* ABTS error codes */ 2558c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_ABTS_REPLY_F_CTL 37 2568c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_ABTS_REPLY_DDF_RCTL_FIELD 38 2578c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_ABTS_REPLY_INVALID_BLS_RCTL 39 2588c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_ABTS_REPLY_INVALID_RCTL 40 2598c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_ABTS_REPLY_RCTL_GENERAL_MISMATCH 41 2608c2ecf20Sopenharmony_ci 2618c2ecf20Sopenharmony_ci/* Common error codes */ 2628c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_MIDDLE_FRAME_WITH_PAD 42 2638c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_SEQ_INIT_IN_TCE 43 2648c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_FC_HDR_RX_ID_MISMATCH 44 2658c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_INCORRECT_SEQ_CNT 45 2668c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_DATA_FC_HDR_FCP_TYPE_MISMATCH 46 2678c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_DATA_NO_MORE_SGES 47 2688c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_OPTIONAL_FC_HDR 48 2698c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_READ_TCE_OX_ID_TOO_BIG 49 2708c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_DATA_WAS_NOT_TRANSMITTED 50 2718c2ecf20Sopenharmony_ci 2728c2ecf20Sopenharmony_ci/* Unsolicited Rx error codes */ 2738c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_UNSOLICITED_TYPE_NOT_ELS 51 2748c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_UNSOLICITED_TYPE_NOT_BLS 52 2758c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_UNSOLICITED_FCTL_ELS 53 2768c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_UNSOLICITED_FCTL_BLS 54 2778c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_UNSOLICITED_R_CTL 55 2788c2ecf20Sopenharmony_ci 2798c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_RW_TASK_DDF_RCTL_INFO_FIELD 56 2808c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_RW_TASK_INVALID_RCTL 57 2818c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_RW_TASK_RCTL_GENERAL_MISMATCH 58 2828c2ecf20Sopenharmony_ci 2838c2ecf20Sopenharmony_ci/* Timer error codes */ 2848c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_E_D_TOV_TIMER_EXPIRATION 60 2858c2ecf20Sopenharmony_ci#define FCOE_ERROR_CODE_REC_TOV_TIMER_EXPIRATION 61 2868c2ecf20Sopenharmony_ci 2878c2ecf20Sopenharmony_ci 2888c2ecf20Sopenharmony_ci#endif /* BNX2FC_CONSTANTS_H_ */ 289