1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * QLogic iSCSI Offload Driver
4 * Copyright (c) 2016 Cavium Inc.
7 #ifndef _QEDI_FW_SCSI_H_
8 #define _QEDI_FW_SCSI_H_
10 #include <linux/types.h>
11 #include <asm/byteorder.h>
13 #include <linux/qed/qed_if.h>
15 struct scsi_sgl_task_params
{
17 struct regpair sgl_phys_addr
;
18 u32 total_buffer_size
;
23 struct scsi_dif_task_params
{
25 bool initial_ref_tag_is_valid
;
27 u16 application_tag_mask
;
28 u16 dif_block_size_log
;
35 bool tx_dif_conn_err_en
;
37 bool keep_ref_tag_const
;
39 bool validate_app_tag
;
40 bool validate_ref_tag
;
44 bool forward_app_tag_with_mask
;
45 bool forward_ref_tag_with_mask
;
48 struct scsi_initiator_cmd_params
{
49 struct scsi_sge extended_cdb_sge
;
50 struct regpair sense_data_buffer_phys_addr
;