1
2
3
4
5 #ifndef _SCSI_FW_FUNCS_H
6 #define _SCSI_FW_FUNCS_H
7 #include <linux/qed/common_hsi.h>
8 #include <linux/qed/storage_common.h>
9 #include <linux/qed/fcoe_common.h>
10
11 struct scsi_sgl_task_params {
12 struct scsi_sge *sgl;
13 struct regpair sgl_phys_addr;
14 u32 total_buffer_size;
15 u16 num_sges;
16
17
18
19
20 bool small_mid_sge;
21 };
22
23 struct scsi_dif_task_params {
24 u32 initial_ref_tag;
25 bool initial_ref_tag_is_valid;
26 u16 application_tag;
27 u16 application_tag_mask;
28 u16 dif_block_size_log;
29 bool dif_on_network;
30 bool dif_on_host;
31 u8 host_guard_type;
32 u8 protection_type;
33 u8 ref_tag_mask;
34 bool crc_seed;
35
36
37
38
39 bool tx_dif_conn_err_en;
40 bool ignore_app_tag;
41 bool keep_ref_tag_const;
42 bool validate_guard;
43 bool validate_app_tag;
44 bool validate_ref_tag;
45 bool forward_guard;
46 bool forward_app_tag;
47 bool forward_ref_tag;
48 bool forward_app_tag_with_mask;
49 bool forward_ref_tag_with_mask;
50 };
51
52 struct scsi_initiator_cmd_params {
53
54
55
56 struct scsi_sge extended_cdb_sge;
57
58
59 struct regpair sense_data_buffer_phys_addr;
60 };
61
62
63
64
65
66
67
68
69 bool scsi_is_slow_sgl(u16 num_sges, bool small_mid_sge);
70
71
72
73
74
75
76
77
78
79 void init_scsi_sgl_context(struct scsi_sgl_params *sgl_params,
80 struct scsi_cached_sges *ctx_data_desc,
81 struct scsi_sgl_task_params *sgl_task_params);
82 #endif