.. | .. |
---|
1 | 1 | /******************************************************************* |
---|
2 | 2 | * This file is part of the Emulex Linux Device Driver for * |
---|
3 | 3 | * Fibre Channel Host Bus Adapters. * |
---|
4 | | - * Copyright (C) 2017-2018 Broadcom. All Rights Reserved. The term * |
---|
| 4 | + * Copyright (C) 2017-2019 Broadcom. All Rights Reserved. The term * |
---|
5 | 5 | * “Broadcom” refers to Broadcom Inc and/or its subsidiaries. * |
---|
6 | 6 | * Copyright (C) 2004-2016 Emulex. All rights reserved. * |
---|
7 | 7 | * EMULEX and SLI are trademarks of Emulex. * |
---|
.. | .. |
---|
130 | 130 | uint32_t cmd_count; |
---|
131 | 131 | }; |
---|
132 | 132 | |
---|
133 | | -struct lpfc_scsi_buf { |
---|
134 | | - struct list_head list; |
---|
135 | | - struct scsi_cmnd *pCmd; |
---|
136 | | - struct lpfc_rport_data *rdata; |
---|
137 | | - struct lpfc_nodelist *ndlp; |
---|
138 | | - |
---|
139 | | - uint32_t timeout; |
---|
140 | | - |
---|
141 | | - uint16_t flags; /* TBD convert exch_busy to flags */ |
---|
142 | | -#define LPFC_SBUF_XBUSY 0x1 /* SLI4 hba reported XB on WCQE cmpl */ |
---|
143 | | -#define LPFC_SBUF_BUMP_QDEPTH 0x8 /* bumped queue depth counter */ |
---|
144 | | - uint16_t exch_busy; /* SLI4 hba reported XB on complete WCQE */ |
---|
145 | | - uint16_t status; /* From IOCB Word 7- ulpStatus */ |
---|
146 | | - uint32_t result; /* From IOCB Word 4. */ |
---|
147 | | - |
---|
148 | | - uint32_t seg_cnt; /* Number of scatter-gather segments returned by |
---|
149 | | - * dma_map_sg. The driver needs this for calls |
---|
150 | | - * to dma_unmap_sg. */ |
---|
151 | | - uint32_t prot_seg_cnt; /* seg_cnt's counterpart for protection data */ |
---|
152 | | - |
---|
153 | | - dma_addr_t nonsg_phys; /* Non scatter-gather physical address. */ |
---|
154 | | - |
---|
155 | | - /* |
---|
156 | | - * data and dma_handle are the kernel virtual and bus address of the |
---|
157 | | - * dma-able buffer containing the fcp_cmd, fcp_rsp and a scatter |
---|
158 | | - * gather bde list that supports the sg_tablesize value. |
---|
159 | | - */ |
---|
160 | | - void *data; |
---|
161 | | - dma_addr_t dma_handle; |
---|
162 | | - |
---|
163 | | - struct fcp_cmnd *fcp_cmnd; |
---|
164 | | - struct fcp_rsp *fcp_rsp; |
---|
165 | | - struct ulp_bde64 *fcp_bpl; |
---|
166 | | - |
---|
167 | | - dma_addr_t dma_phys_bpl; |
---|
168 | | - |
---|
169 | | - /* cur_iocbq has phys of the dma-able buffer. |
---|
170 | | - * Iotag is in here |
---|
171 | | - */ |
---|
172 | | - struct lpfc_iocbq cur_iocbq; |
---|
173 | | - uint16_t cpu; |
---|
174 | | - |
---|
175 | | - wait_queue_head_t *waitq; |
---|
176 | | - unsigned long start_time; |
---|
177 | | - |
---|
178 | | -#ifdef CONFIG_SCSI_LPFC_DEBUG_FS |
---|
179 | | - /* Used to restore any changes to protection data for error injection */ |
---|
180 | | - void *prot_data_segment; |
---|
181 | | - uint32_t prot_data; |
---|
182 | | - uint32_t prot_data_type; |
---|
183 | | -#define LPFC_INJERR_REFTAG 1 |
---|
184 | | -#define LPFC_INJERR_APPTAG 2 |
---|
185 | | -#define LPFC_INJERR_GUARD 3 |
---|
186 | | -#endif |
---|
187 | | -}; |
---|
188 | | - |
---|
189 | 133 | #define LPFC_SCSI_DMA_EXT_SIZE 264 |
---|
190 | 134 | #define LPFC_BPL_SIZE 1024 |
---|
191 | 135 | #define MDAC_DIRECT_CMD 0x22 |
---|
.. | .. |
---|
194 | 138 | #define NO_MORE_OAS_LUN -1 |
---|
195 | 139 | #define NOT_OAS_ENABLED_LUN NO_MORE_OAS_LUN |
---|
196 | 140 | |
---|
| 141 | +#ifndef FC_PORTSPEED_128GBIT |
---|
| 142 | +#define FC_PORTSPEED_128GBIT 0x2000 |
---|
| 143 | +#endif |
---|
| 144 | + |
---|
197 | 145 | #define TXRDY_PAYLOAD_LEN 12 |
---|
198 | 146 | |
---|
199 | | -int lpfc_sli4_scmd_to_wqidx_distr(struct lpfc_hba *phba, |
---|
200 | | - struct lpfc_scsi_buf *lpfc_cmd); |
---|
| 147 | +/* For sysfs/debugfs tmp string max len */ |
---|
| 148 | +#define LPFC_MAX_SCSI_INFO_TMP_LEN 79 |
---|
| 149 | + |
---|