50 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 * QLogic iSCSI Offload Driver4 * Copyright (c) 2016 Cavium Inc.5 */6#ifndef __QEDI_HSI__7#define __QEDI_HSI__8/*9 * Add include to common target10 */11#include <linux/qed/common_hsi.h>12 13/*14 * Add include to common storage target15 */16#include <linux/qed/storage_common.h>17 18/*19 * Add include to common TCP target20 */21#include <linux/qed/tcp_common.h>22 23/*24 * Add include to common iSCSI target for both eCore and protocol driver25 */26#include <linux/qed/iscsi_common.h>27 28/*29 * iSCSI CMDQ element30 */31struct 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 type41 */42enum 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_TYPE47};48 49#endif /* __QEDI_HSI__ */50