Manish Rangankar | ace7f46 | 2016-12-01 00:21:08 -0800 | [diff] [blame] | 1 | /* |
| 2 | * QLogic iSCSI Offload Driver |
| 3 | * Copyright (c) 2016 Cavium Inc. |
| 4 | * |
| 5 | * This software is available under the terms of the GNU General Public License |
| 6 | * (GPL) Version 2, available from the file COPYING in the main directory of |
| 7 | * this source tree. |
| 8 | */ |
| 9 | #ifndef __QEDI_HSI__ |
| 10 | #define __QEDI_HSI__ |
| 11 | /* |
| 12 | * Add include to common target |
| 13 | */ |
| 14 | #include <linux/qed/common_hsi.h> |
| 15 | |
| 16 | /* |
| 17 | * Add include to common storage target |
| 18 | */ |
| 19 | #include <linux/qed/storage_common.h> |
| 20 | |
| 21 | /* |
| 22 | * Add include to common TCP target |
| 23 | */ |
| 24 | #include <linux/qed/tcp_common.h> |
| 25 | |
| 26 | /* |
| 27 | * Add include to common iSCSI target for both eCore and protocol driver |
| 28 | */ |
| 29 | #include <linux/qed/iscsi_common.h> |
| 30 | |
| 31 | /* |
| 32 | * iSCSI CMDQ element |
| 33 | */ |
| 34 | struct iscsi_cmdqe { |
| 35 | __le16 conn_id; |
| 36 | u8 invalid_command; |
| 37 | u8 cmd_hdr_type; |
| 38 | __le32 reserved1[2]; |
| 39 | __le32 cmd_payload[13]; |
| 40 | }; |
| 41 | |
| 42 | /* |
| 43 | * iSCSI CMD header type |
| 44 | */ |
| 45 | enum iscsi_cmd_hdr_type { |
| 46 | ISCSI_CMD_HDR_TYPE_BHS_ONLY /* iSCSI BHS with no expected AHS */, |
| 47 | ISCSI_CMD_HDR_TYPE_BHS_W_AHS /* iSCSI BHS with expected AHS */, |
| 48 | ISCSI_CMD_HDR_TYPE_AHS /* iSCSI AHS */, |
| 49 | MAX_ISCSI_CMD_HDR_TYPE |
| 50 | }; |
| 51 | |
| 52 | #endif /* __QEDI_HSI__ */ |