162306a36Sopenharmony_ci/* bnx2fc_constants.h: QLogic Linux FCoE offload driver. 262306a36Sopenharmony_ci * Handles operations such as session offload/upload etc, and manages 362306a36Sopenharmony_ci * session resources such as connection id and qp resources. 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (c) 2008-2013 Broadcom Corporation 662306a36Sopenharmony_ci * Copyright (c) 2014-2016 QLogic Corporation 762306a36Sopenharmony_ci * Copyright (c) 2016-2017 Cavium Inc. 862306a36Sopenharmony_ci * 962306a36Sopenharmony_ci * This program is free software; you can redistribute it and/or modify 1062306a36Sopenharmony_ci * it under the terms of the GNU General Public License as published by 1162306a36Sopenharmony_ci * the Free Software Foundation. 1262306a36Sopenharmony_ci * 1362306a36Sopenharmony_ci */ 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci#ifndef __BNX2FC_CONSTANTS_H_ 1662306a36Sopenharmony_ci#define __BNX2FC_CONSTANTS_H_ 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci/** 1962306a36Sopenharmony_ci * This file defines HSI constants for the FCoE flows 2062306a36Sopenharmony_ci */ 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci/* Current FCoE HSI version number composed of two fields (16 bit) */ 2362306a36Sopenharmony_ci/* Implies on a change broken previous HSI */ 2462306a36Sopenharmony_ci#define FCOE_HSI_MAJOR_VERSION (2) 2562306a36Sopenharmony_ci/* Implies on a change which does not broken previous HSI */ 2662306a36Sopenharmony_ci#define FCOE_HSI_MINOR_VERSION (1) 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci/* KWQ/KCQ FCoE layer code */ 2962306a36Sopenharmony_ci#define FCOE_KWQE_LAYER_CODE (7) 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ci/* KWQ (kernel work queue) request op codes */ 3262306a36Sopenharmony_ci#define FCOE_KWQE_OPCODE_INIT1 (0) 3362306a36Sopenharmony_ci#define FCOE_KWQE_OPCODE_INIT2 (1) 3462306a36Sopenharmony_ci#define FCOE_KWQE_OPCODE_INIT3 (2) 3562306a36Sopenharmony_ci#define FCOE_KWQE_OPCODE_OFFLOAD_CONN1 (3) 3662306a36Sopenharmony_ci#define FCOE_KWQE_OPCODE_OFFLOAD_CONN2 (4) 3762306a36Sopenharmony_ci#define FCOE_KWQE_OPCODE_OFFLOAD_CONN3 (5) 3862306a36Sopenharmony_ci#define FCOE_KWQE_OPCODE_OFFLOAD_CONN4 (6) 3962306a36Sopenharmony_ci#define FCOE_KWQE_OPCODE_ENABLE_CONN (7) 4062306a36Sopenharmony_ci#define FCOE_KWQE_OPCODE_DISABLE_CONN (8) 4162306a36Sopenharmony_ci#define FCOE_KWQE_OPCODE_DESTROY_CONN (9) 4262306a36Sopenharmony_ci#define FCOE_KWQE_OPCODE_DESTROY (10) 4362306a36Sopenharmony_ci#define FCOE_KWQE_OPCODE_STAT (11) 4462306a36Sopenharmony_ci 4562306a36Sopenharmony_ci/* KCQ (kernel completion queue) response op codes */ 4662306a36Sopenharmony_ci#define FCOE_KCQE_OPCODE_INIT_FUNC (0x10) 4762306a36Sopenharmony_ci#define FCOE_KCQE_OPCODE_DESTROY_FUNC (0x11) 4862306a36Sopenharmony_ci#define FCOE_KCQE_OPCODE_STAT_FUNC (0x12) 4962306a36Sopenharmony_ci#define FCOE_KCQE_OPCODE_OFFLOAD_CONN (0x15) 5062306a36Sopenharmony_ci#define FCOE_KCQE_OPCODE_ENABLE_CONN (0x16) 5162306a36Sopenharmony_ci#define FCOE_KCQE_OPCODE_DISABLE_CONN (0x17) 5262306a36Sopenharmony_ci#define FCOE_KCQE_OPCODE_DESTROY_CONN (0x18) 5362306a36Sopenharmony_ci#define FCOE_KCQE_OPCODE_CQ_EVENT_NOTIFICATION (0x20) 5462306a36Sopenharmony_ci#define FCOE_KCQE_OPCODE_FCOE_ERROR (0x21) 5562306a36Sopenharmony_ci 5662306a36Sopenharmony_ci/* KCQ (kernel completion queue) completion status */ 5762306a36Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_SUCCESS (0x0) 5862306a36Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_ERROR (0x1) 5962306a36Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_INVALID_OPCODE (0x2) 6062306a36Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE (0x3) 6162306a36Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_CTX_FREE_FAILURE (0x4) 6262306a36Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_NIC_ERROR (0x5) 6362306a36Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_WRONG_HSI_VERSION (0x6) 6462306a36Sopenharmony_ci#define FCOE_KCQE_COMPLETION_STATUS_PARITY_ERROR (0x81) 6562306a36Sopenharmony_ci 6662306a36Sopenharmony_ci/* CQE type */ 6762306a36Sopenharmony_ci#define FCOE_PENDING_CQE_TYPE 0 6862306a36Sopenharmony_ci#define FCOE_UNSOLIC_CQE_TYPE 1 6962306a36Sopenharmony_ci 7062306a36Sopenharmony_ci/* Unsolicited CQE type */ 7162306a36Sopenharmony_ci#define FCOE_UNSOLICITED_FRAME_CQE_TYPE 0 7262306a36Sopenharmony_ci#define FCOE_ERROR_DETECTION_CQE_TYPE 1 7362306a36Sopenharmony_ci#define FCOE_WARNING_DETECTION_CQE_TYPE 2 7462306a36Sopenharmony_ci 7562306a36Sopenharmony_ci/* E_D_TOV timer resolution in ms */ 7662306a36Sopenharmony_ci#define FCOE_E_D_TOV_TIMER_RESOLUTION_MS (20) 7762306a36Sopenharmony_ci 7862306a36Sopenharmony_ci/* E_D_TOV timer resolution for SDM (4 micro) */ 7962306a36Sopenharmony_ci#define FCOE_E_D_TOV_SDM_TIMER_RESOLUTION \ 8062306a36Sopenharmony_ci (FCOE_E_D_TOV_TIMER_RESOLUTION_MS * 1000 / 4) 8162306a36Sopenharmony_ci 8262306a36Sopenharmony_ci/* REC timer resolution in ms */ 8362306a36Sopenharmony_ci#define FCOE_REC_TIMER_RESOLUTION_MS (20) 8462306a36Sopenharmony_ci 8562306a36Sopenharmony_ci/* REC timer resolution for SDM (4 micro) */ 8662306a36Sopenharmony_ci#define FCOE_REC_SDM_TIMER_RESOLUTION (FCOE_REC_TIMER_RESOLUTION_MS * 1000 / 4) 8762306a36Sopenharmony_ci 8862306a36Sopenharmony_ci/* E_D_TOV timer default wraparound value (2 sec) in 20 ms resolution */ 8962306a36Sopenharmony_ci#define FCOE_E_D_TOV_DEFAULT_WRAPAROUND_VAL \ 9062306a36Sopenharmony_ci (2000 / FCOE_E_D_TOV_TIMER_RESOLUTION_MS) 9162306a36Sopenharmony_ci 9262306a36Sopenharmony_ci/* REC_TOV timer default wraparound value (3 sec) in 20 ms resolution */ 9362306a36Sopenharmony_ci#define FCOE_REC_TOV_DEFAULT_WRAPAROUND_VAL \ 9462306a36Sopenharmony_ci (3000 / FCOE_REC_TIMER_RESOLUTION_MS) 9562306a36Sopenharmony_ci 9662306a36Sopenharmony_ci#define FCOE_NUM_OF_TIMER_TASKS (8 * 1024) 9762306a36Sopenharmony_ci 9862306a36Sopenharmony_ci#define FCOE_NUM_OF_CACHED_TASKS_TIMER (8) 9962306a36Sopenharmony_ci 10062306a36Sopenharmony_ci/* Task context constants */ 10162306a36Sopenharmony_ci/******** Remove FCP_CMD write tce sleep ***********************/ 10262306a36Sopenharmony_ci/* In case timer services are required then shall be updated by Xstorm after 10362306a36Sopenharmony_ci * start processing the task. In case no timer facilities are required then the 10462306a36Sopenharmony_ci * driver would initialize the state to this value 10562306a36Sopenharmony_ci * 10662306a36Sopenharmony_ci#define FCOE_TASK_TX_STATE_NORMAL 0 10762306a36Sopenharmony_ci * After driver has initialize the task in case timer services required * 10862306a36Sopenharmony_ci#define FCOE_TASK_TX_STATE_INIT 1 10962306a36Sopenharmony_ci******** Remove FCP_CMD write tce sleep ***********************/ 11062306a36Sopenharmony_ci/* After driver has initialize the task in case timer services required */ 11162306a36Sopenharmony_ci#define FCOE_TASK_TX_STATE_INIT 0 11262306a36Sopenharmony_ci/* In case timer services are required then shall be updated by Xstorm after 11362306a36Sopenharmony_ci * start processing the task. In case no timer facilities are required then the 11462306a36Sopenharmony_ci * driver would initialize the state to this value 11562306a36Sopenharmony_ci */ 11662306a36Sopenharmony_ci#define FCOE_TASK_TX_STATE_NORMAL 1 11762306a36Sopenharmony_ci/* Task is under abort procedure. Updated in order to stop processing of 11862306a36Sopenharmony_ci * pending WQEs on this task 11962306a36Sopenharmony_ci */ 12062306a36Sopenharmony_ci#define FCOE_TASK_TX_STATE_ABORT 2 12162306a36Sopenharmony_ci/* For E_D_T_TOV timer expiration in Xstorm (Class 2 only) */ 12262306a36Sopenharmony_ci#define FCOE_TASK_TX_STATE_ERROR 3 12362306a36Sopenharmony_ci/* For REC_TOV timer expiration indication received from Xstorm */ 12462306a36Sopenharmony_ci#define FCOE_TASK_TX_STATE_WARNING 4 12562306a36Sopenharmony_ci/* For completed unsolicited task */ 12662306a36Sopenharmony_ci#define FCOE_TASK_TX_STATE_UNSOLICITED_COMPLETED 5 12762306a36Sopenharmony_ci/* For exchange cleanup request task */ 12862306a36Sopenharmony_ci#define FCOE_TASK_TX_STATE_EXCHANGE_CLEANUP 6 12962306a36Sopenharmony_ci/* For sequence cleanup request task */ 13062306a36Sopenharmony_ci#define FCOE_TASK_TX_STATE_SEQUENCE_CLEANUP 7 13162306a36Sopenharmony_ci/* For completion the ABTS task. */ 13262306a36Sopenharmony_ci#define FCOE_TASK_TX_STATE_ABTS_TX 8 13362306a36Sopenharmony_ci 13462306a36Sopenharmony_ci#define FCOE_TASK_RX_STATE_NORMAL 0 13562306a36Sopenharmony_ci#define FCOE_TASK_RX_STATE_COMPLETED 1 13662306a36Sopenharmony_ci/* Obsolete: Intermediate completion (middle path with local completion) */ 13762306a36Sopenharmony_ci#define FCOE_TASK_RX_STATE_INTER_COMP 2 13862306a36Sopenharmony_ci/* For REC_TOV timer expiration indication received from Xstorm */ 13962306a36Sopenharmony_ci#define FCOE_TASK_RX_STATE_WARNING 3 14062306a36Sopenharmony_ci/* For E_D_T_TOV timer expiration in Ustorm */ 14162306a36Sopenharmony_ci#define FCOE_TASK_RX_STATE_ERROR 4 14262306a36Sopenharmony_ci/* FW only: First visit at rx-path, part of the abts round trip */ 14362306a36Sopenharmony_ci#define FCOE_TASK_RX_STATE_ABTS_IN_PROCESS 5 14462306a36Sopenharmony_ci/* FW only: Second visit at rx-path, after ABTS frame transmitted */ 14562306a36Sopenharmony_ci#define FCOE_TASK_RX_STATE_ABTS_TRANSMITTED 6 14662306a36Sopenharmony_ci/* Special completion indication in case of task was aborted. */ 14762306a36Sopenharmony_ci#define FCOE_TASK_RX_STATE_ABTS_COMPLETED 7 14862306a36Sopenharmony_ci/* FW only: First visit at rx-path, part of the cleanup round trip */ 14962306a36Sopenharmony_ci#define FCOE_TASK_RX_STATE_EXCHANGE_CLEANUP_IN_PROCESS 8 15062306a36Sopenharmony_ci/* FW only: Special completion indication in case of task was cleaned. */ 15162306a36Sopenharmony_ci#define FCOE_TASK_RX_STATE_EXCHANGE_CLEANUP_COMPLETED 9 15262306a36Sopenharmony_ci/* Not in used: Special completion indication (in task requested the exchange 15362306a36Sopenharmony_ci * cleanup) in case cleaned task is in non-valid. 15462306a36Sopenharmony_ci */ 15562306a36Sopenharmony_ci#define FCOE_TASK_RX_STATE_ABORT_CLEANUP_COMPLETED 10 15662306a36Sopenharmony_ci/* Special completion indication (in task requested the sequence cleanup) in 15762306a36Sopenharmony_ci * case cleaned task was already returned to normal. 15862306a36Sopenharmony_ci */ 15962306a36Sopenharmony_ci#define FCOE_TASK_RX_STATE_IGNORED_SEQUENCE_CLEANUP 11 16062306a36Sopenharmony_ci 16162306a36Sopenharmony_ci 16262306a36Sopenharmony_ci#define FCOE_TASK_TYPE_WRITE 0 16362306a36Sopenharmony_ci#define FCOE_TASK_TYPE_READ 1 16462306a36Sopenharmony_ci#define FCOE_TASK_TYPE_MIDPATH 2 16562306a36Sopenharmony_ci#define FCOE_TASK_TYPE_UNSOLICITED 3 16662306a36Sopenharmony_ci#define FCOE_TASK_TYPE_ABTS 4 16762306a36Sopenharmony_ci#define FCOE_TASK_TYPE_EXCHANGE_CLEANUP 5 16862306a36Sopenharmony_ci#define FCOE_TASK_TYPE_SEQUENCE_CLEANUP 6 16962306a36Sopenharmony_ci 17062306a36Sopenharmony_ci#define FCOE_TASK_DEV_TYPE_DISK 0 17162306a36Sopenharmony_ci#define FCOE_TASK_DEV_TYPE_TAPE 1 17262306a36Sopenharmony_ci 17362306a36Sopenharmony_ci#define FCOE_TASK_CLASS_TYPE_3 0 17462306a36Sopenharmony_ci#define FCOE_TASK_CLASS_TYPE_2 1 17562306a36Sopenharmony_ci 17662306a36Sopenharmony_ci/* FCoE/FC packet fields */ 17762306a36Sopenharmony_ci#define FCOE_ETH_TYPE 0x8906 17862306a36Sopenharmony_ci 17962306a36Sopenharmony_ci/* FCoE maximum elements in hash table */ 18062306a36Sopenharmony_ci#define FCOE_MAX_ELEMENTS_IN_HASH_TABLE_ROW 8 18162306a36Sopenharmony_ci 18262306a36Sopenharmony_ci/* FCoE half of the elements in hash table */ 18362306a36Sopenharmony_ci#define FCOE_HALF_ELEMENTS_IN_HASH_TABLE_ROW \ 18462306a36Sopenharmony_ci (FCOE_MAX_ELEMENTS_IN_HASH_TABLE_ROW / 2) 18562306a36Sopenharmony_ci 18662306a36Sopenharmony_ci/* FcoE number of cached T2 entries */ 18762306a36Sopenharmony_ci#define T_FCOE_NUMBER_OF_CACHED_T2_ENTRIES (4) 18862306a36Sopenharmony_ci 18962306a36Sopenharmony_ci/* FCoE maximum elements in hash table */ 19062306a36Sopenharmony_ci#define FCOE_HASH_TBL_CHUNK_SIZE 16384 19162306a36Sopenharmony_ci 19262306a36Sopenharmony_ci/* Everest FCoE connection type */ 19362306a36Sopenharmony_ci#define B577XX_FCOE_CONNECTION_TYPE 4 19462306a36Sopenharmony_ci 19562306a36Sopenharmony_ci/* FCoE number of rows (in log). This number derives 19662306a36Sopenharmony_ci * from the maximum connections supported which is 2048. 19762306a36Sopenharmony_ci * TBA: Need a different constant for E2 19862306a36Sopenharmony_ci */ 19962306a36Sopenharmony_ci#define FCOE_MAX_NUM_SESSIONS_LOG 11 20062306a36Sopenharmony_ci 20162306a36Sopenharmony_ci#define FC_ABTS_REPLY_MAX_PAYLOAD_LEN 12 20262306a36Sopenharmony_ci 20362306a36Sopenharmony_ci/* Error codes for Error Reporting in slow path flows */ 20462306a36Sopenharmony_ci#define FCOE_SLOW_PATH_ERROR_CODE_TOO_MANY_FUNCS 0 20562306a36Sopenharmony_ci#define FCOE_SLOW_PATH_ERROR_CODE_NO_LICENSE 1 20662306a36Sopenharmony_ci 20762306a36Sopenharmony_ci/* Error codes for Error Reporting in fast path flows 20862306a36Sopenharmony_ci * XFER error codes 20962306a36Sopenharmony_ci */ 21062306a36Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_OOO_RO 0 21162306a36Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_RO_NOT_ALIGNED 1 21262306a36Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_NULL_BURST_LEN 2 21362306a36Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_RO_GREATER_THAN_DATA2TRNS 3 21462306a36Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_INVALID_PAYLOAD_SIZE 4 21562306a36Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_TASK_TYPE_NOT_WRITE 5 21662306a36Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_PEND_XFER_SET 6 21762306a36Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_OPENED_SEQ 7 21862306a36Sopenharmony_ci#define FCOE_ERROR_CODE_XFER_FCTL 8 21962306a36Sopenharmony_ci 22062306a36Sopenharmony_ci/* FCP RSP error codes */ 22162306a36Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_BIDI_FLAGS_SET 9 22262306a36Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_UNDERFLOW 10 22362306a36Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_OVERFLOW 11 22462306a36Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_INVALID_LENGTH_FIELD 12 22562306a36Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_INVALID_SNS_FIELD 13 22662306a36Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_INVALID_PAYLOAD_SIZE 14 22762306a36Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_PEND_XFER_SET 15 22862306a36Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_OPENED_SEQ 16 22962306a36Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_FCTL 17 23062306a36Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_LAST_SEQ_RESET 18 23162306a36Sopenharmony_ci#define FCOE_ERROR_CODE_FCP_RSP_CONF_REQ_NOT_SUPPORTED_YET 19 23262306a36Sopenharmony_ci 23362306a36Sopenharmony_ci/* FCP DATA error codes */ 23462306a36Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_OOO_RO 20 23562306a36Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_EXCEEDS_DEFINED_MAX_FRAME_SIZE 21 23662306a36Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_EXCEEDS_DATA2TRNS 22 23762306a36Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_SOFI3_SEQ_ACTIVE_SET 23 23862306a36Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_SOFN_SEQ_ACTIVE_RESET 24 23962306a36Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_EOFN_END_SEQ_SET 25 24062306a36Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_EOFT_END_SEQ_RESET 26 24162306a36Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_TASK_TYPE_NOT_READ 27 24262306a36Sopenharmony_ci#define FCOE_ERROR_CODE_DATA_FCTL 28 24362306a36Sopenharmony_ci 24462306a36Sopenharmony_ci/* Middle path error codes */ 24562306a36Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_INVALID_TYPE 29 24662306a36Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_SOFI3_SEQ_ACTIVE_SET 30 24762306a36Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_SOFN_SEQ_ACTIVE_RESET 31 24862306a36Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_EOFN_END_SEQ_SET 32 24962306a36Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_EOFT_END_SEQ_RESET 33 25062306a36Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_REPLY_FCTL 34 25162306a36Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_INVALID_REPLY 35 25262306a36Sopenharmony_ci#define FCOE_ERROR_CODE_MIDPATH_ELS_REPLY_RCTL 36 25362306a36Sopenharmony_ci 25462306a36Sopenharmony_ci/* ABTS error codes */ 25562306a36Sopenharmony_ci#define FCOE_ERROR_CODE_ABTS_REPLY_F_CTL 37 25662306a36Sopenharmony_ci#define FCOE_ERROR_CODE_ABTS_REPLY_DDF_RCTL_FIELD 38 25762306a36Sopenharmony_ci#define FCOE_ERROR_CODE_ABTS_REPLY_INVALID_BLS_RCTL 39 25862306a36Sopenharmony_ci#define FCOE_ERROR_CODE_ABTS_REPLY_INVALID_RCTL 40 25962306a36Sopenharmony_ci#define FCOE_ERROR_CODE_ABTS_REPLY_RCTL_GENERAL_MISMATCH 41 26062306a36Sopenharmony_ci 26162306a36Sopenharmony_ci/* Common error codes */ 26262306a36Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_MIDDLE_FRAME_WITH_PAD 42 26362306a36Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_SEQ_INIT_IN_TCE 43 26462306a36Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_FC_HDR_RX_ID_MISMATCH 44 26562306a36Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_INCORRECT_SEQ_CNT 45 26662306a36Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_DATA_FC_HDR_FCP_TYPE_MISMATCH 46 26762306a36Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_DATA_NO_MORE_SGES 47 26862306a36Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_OPTIONAL_FC_HDR 48 26962306a36Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_READ_TCE_OX_ID_TOO_BIG 49 27062306a36Sopenharmony_ci#define FCOE_ERROR_CODE_COMMON_DATA_WAS_NOT_TRANSMITTED 50 27162306a36Sopenharmony_ci 27262306a36Sopenharmony_ci/* Unsolicited Rx error codes */ 27362306a36Sopenharmony_ci#define FCOE_ERROR_CODE_UNSOLICITED_TYPE_NOT_ELS 51 27462306a36Sopenharmony_ci#define FCOE_ERROR_CODE_UNSOLICITED_TYPE_NOT_BLS 52 27562306a36Sopenharmony_ci#define FCOE_ERROR_CODE_UNSOLICITED_FCTL_ELS 53 27662306a36Sopenharmony_ci#define FCOE_ERROR_CODE_UNSOLICITED_FCTL_BLS 54 27762306a36Sopenharmony_ci#define FCOE_ERROR_CODE_UNSOLICITED_R_CTL 55 27862306a36Sopenharmony_ci 27962306a36Sopenharmony_ci#define FCOE_ERROR_CODE_RW_TASK_DDF_RCTL_INFO_FIELD 56 28062306a36Sopenharmony_ci#define FCOE_ERROR_CODE_RW_TASK_INVALID_RCTL 57 28162306a36Sopenharmony_ci#define FCOE_ERROR_CODE_RW_TASK_RCTL_GENERAL_MISMATCH 58 28262306a36Sopenharmony_ci 28362306a36Sopenharmony_ci/* Timer error codes */ 28462306a36Sopenharmony_ci#define FCOE_ERROR_CODE_E_D_TOV_TIMER_EXPIRATION 60 28562306a36Sopenharmony_ci#define FCOE_ERROR_CODE_REC_TOV_TIMER_EXPIRATION 61 28662306a36Sopenharmony_ci 28762306a36Sopenharmony_ci 28862306a36Sopenharmony_ci#endif /* BNX2FC_CONSTANTS_H_ */ 289