4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, v.1, (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://opensource.org/licenses/CDDL-1.0.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2014-2017 Cavium, Inc.
24 * The contents of this file are subject to the terms of the Common Development
25 * and Distribution License, v.1, (the "License").
27 * You may not use this file except in compliance with the License.
29 * You can obtain a copy of the License at available
30 * at http://opensource.org/licenses/CDDL-1.0
32 * See the License for the specific language governing permissions and
33 * limitations under the License.
38 /********************************/
39 /* Add include to common target */
40 /********************************/
41 #include "common_hsi.h"
43 /********************************************************/
44 /* Add include to common storage target for upper driver*/
45 /*******************************************************/
48 /****************************************/
49 /* Add include to common storage target */
50 /****************************************/
51 #include "storage_common.h"
53 /************************************************************************/
54 /* Add include to common TCP target */
55 /************************************************************************/
56 #include "tcp_common.h"
58 /*************************************************************************/
59 /* Add include to common iSCSI target for both eCore and protocol driver */
60 /************************************************************************/
61 #include "iscsi_common.h"
70 u8 cmdqe_opcode
/* indicates the iscsi cmdqe type */;
72 #define ISCSI_CMDQE_DIF_ERR_BITS_MASK 0x7 /* dif error bit map: [0]-CRC/checksum, [1]-app tag, [2]-reference tag */
73 #define ISCSI_CMDQE_DIF_ERR_BITS_SHIFT 0
74 #define ISCSI_CMDQE_DATA_DIGEST_ERR_MASK 0x1 /* Signal Immediate Data Digest Error */
75 #define ISCSI_CMDQE_DATA_DIGEST_ERR_SHIFT 3
76 #define ISCSI_CMDQE_RCV_ON_INVALID_CONN_MASK 0x1 /* Signal Connection Error */
77 #define ISCSI_CMDQE_RCV_ON_INVALID_CONN_SHIFT 4
78 #define ISCSI_CMDQE_RESERVED_MASK 0x7 /* reserved */
79 #define ISCSI_CMDQE_RESERVED_SHIFT 5
80 struct regpair imm_bd_opaque
/* Immediate Data BDs opaque data */;
81 __le32 cmd_payload
[13] /* iSCSI Basic/Additional Header Segment */;
88 enum iscsi_cmdqe_opcode
90 ISCSI_CMDQE_OPCODE_NONE
/* Used by FW only to indicate that no CMDQE should be consumed */,
91 ISCSI_CMDQE_OPCODE_BHS_ONLY
/* iSCSI BHS without AHS and without immediate data BD */,
92 ISCSI_CMDQE_OPCODE_BHS_W_IMM
/* iSCSI BHS with immediate data BD */,
93 ISCSI_CMDQE_OPCODE_BHS_W_IMM_NO_BD
/* iSCSI BHS arrived with immediate data but BD wasnt consumed */,
94 ISCSI_CMDQE_OPCODE_BHS_W_AHS
/* iSCSI BHS with expected AHS, without immediate data BD */,
95 ISCSI_CMDQE_OPCODE_BHS_W_AHS_W_IMM
/* iSCSI BHS with expected AHS, with immediate data BD */,
96 ISCSI_CMDQE_OPCODE_AHS
/* iSCSI AHS without immediate data BD */,
97 ISCSI_CMDQE_OPCODE_AHS_W_IMM
/* iSCSI AHS, with immediate data BD */,
98 ISCSI_CMDQE_OPCODE_AHS_W_IMM_NO_BD
/* iSCSI AHS where the Command arrived with immediate data but BD wasnt consumed */,
99 ISCSI_CMDQE_OPCODE_TMF
/* iSCSI TMF */,
100 MAX_ISCSI_CMDQE_OPCODE
103 #endif /* __QEDI_HSI__ */