xref: /openbmc/linux/drivers/scsi/qedi/qedi_hsi.h (revision 75cc1867)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * QLogic iSCSI Offload Driver
4  * Copyright (c) 2016 Cavium Inc.
5  */
6 #ifndef __QEDI_HSI__
7 #define __QEDI_HSI__
8 /*
9  * Add include to common target
10  */
11 #include <linux/qed/common_hsi.h>
12 
13 /*
14  * Add include to common storage target
15  */
16 #include <linux/qed/storage_common.h>
17 
18 /*
19  * Add include to common TCP target
20  */
21 #include <linux/qed/tcp_common.h>
22 
23 /*
24  * Add include to common iSCSI target for both eCore and protocol driver
25  */
26 #include <linux/qed/iscsi_common.h>
27 
28 /*
29  * iSCSI CMDQ element
30  */
31 struct iscsi_cmdqe {
32 	__le16 conn_id;
33 	u8 invalid_command;
34 	u8 cmd_hdr_type;
35 	__le32 reserved1[2];
36 	__le32 cmd_payload[13];
37 };
38 
39 /*
40  * iSCSI CMD header type
41  */
42 enum iscsi_cmd_hdr_type {
43 	ISCSI_CMD_HDR_TYPE_BHS_ONLY /* iSCSI BHS with no expected AHS */,
44 	ISCSI_CMD_HDR_TYPE_BHS_W_AHS /* iSCSI BHS with expected AHS */,
45 	ISCSI_CMD_HDR_TYPE_AHS /* iSCSI AHS */,
46 	MAX_ISCSI_CMD_HDR_TYPE
47 };
48 
49 #endif /* __QEDI_HSI__ */
50