summaryrefslogtreecommitdiff
path: root/drivers/scsi/qedi/qedi_hsi.h
blob: d82ab99acb042b2356101ad9d76384052b5de241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * QLogic iSCSI Offload Driver
 * Copyright (c) 2016 Cavium Inc.
 */
#ifndef __QEDI_HSI__
#define __QEDI_HSI__
/*
 * Add include to common target
 */
#include <linux/qed/common_hsi.h>

/*
 * Add include to common storage target
 */
#include <linux/qed/storage_common.h>

/*
 * Add include to common TCP target
 */
#include <linux/qed/tcp_common.h>

/*
 * Add include to common iSCSI target for both eCore and protocol driver
 */
#include <linux/qed/iscsi_common.h>

/*
 * iSCSI CMDQ element
 */
struct iscsi_cmdqe {
	__le16 conn_id;
	u8 invalid_command;
	u8 cmd_hdr_type;
	__le32 reserved1[2];
	__le32 cmd_payload[13];
};

/*
 * iSCSI CMD header type
 */
enum iscsi_cmd_hdr_type {
	ISCSI_CMD_HDR_TYPE_BHS_ONLY /* iSCSI BHS with no expected AHS */,
	ISCSI_CMD_HDR_TYPE_BHS_W_AHS /* iSCSI BHS with expected AHS */,
	ISCSI_CMD_HDR_TYPE_AHS /* iSCSI AHS */,
	MAX_ISCSI_CMD_HDR_TYPE
};

#endif /* __QEDI_HSI__ */