2 * QLogic iSCSI Offload Driver
3 * Copyright (c) 2016 Cavium Inc.
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
10 #ifndef _QEDI_FW_SCSI_H_
11 #define _QEDI_FW_SCSI_H_
13 #include <linux/types.h>
14 #include <asm/byteorder.h>
16 #include <linux/qed/qed_if.h>
18 struct scsi_sgl_task_params
{
20 struct regpair sgl_phys_addr
;
21 u32 total_buffer_size
;
26 struct scsi_dif_task_params
{
28 bool initial_ref_tag_is_valid
;
30 u16 application_tag_mask
;
31 u16 dif_block_size_log
;
38 bool tx_dif_conn_err_en
;
40 bool keep_ref_tag_const
;
42 bool validate_app_tag
;
43 bool validate_ref_tag
;
47 bool forward_app_tag_with_mask
;
48 bool forward_ref_tag_with_mask
;
51 struct scsi_initiator_cmd_params
{
52 struct scsi_sge extended_cdb_sge
;
53 struct regpair sense_data_buffer_phys_addr
;