aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/lpfc/lpfc.h')
-rw-r--r--drivers/scsi/lpfc/lpfc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc.h b/drivers/scsi/lpfc/lpfc.h
index dc73a2f8f12c..1f3873ae9d68 100644
--- a/drivers/scsi/lpfc/lpfc.h
+++ b/drivers/scsi/lpfc/lpfc.h
@@ -45,6 +45,11 @@ struct lpfc_sli2_slim;
45 45
46#define MAX_HBAEVT 32 46#define MAX_HBAEVT 32
47 47
48enum lpfc_polling_flags {
49 ENABLE_FCP_RING_POLLING = 0x1,
50 DISABLE_FCP_RING_INT = 0x2
51};
52
48/* Provide DMA memory definitions the driver uses per port instance. */ 53/* Provide DMA memory definitions the driver uses per port instance. */
49struct lpfc_dmabuf { 54struct lpfc_dmabuf {
50 struct list_head list; 55 struct list_head list;
@@ -287,6 +292,8 @@ struct lpfc_hba {
287 uint32_t cfg_fcp_bind_method; 292 uint32_t cfg_fcp_bind_method;
288 uint32_t cfg_discovery_threads; 293 uint32_t cfg_discovery_threads;
289 uint32_t cfg_max_luns; 294 uint32_t cfg_max_luns;
295 uint32_t cfg_poll;
296 uint32_t cfg_poll_tmo;
290 uint32_t cfg_sg_seg_cnt; 297 uint32_t cfg_sg_seg_cnt;
291 uint32_t cfg_sg_dma_buf_size; 298 uint32_t cfg_sg_dma_buf_size;
292 299
@@ -338,7 +345,9 @@ struct lpfc_hba {
338#define VPD_PORT 0x8 /* valid vpd port data */ 345#define VPD_PORT 0x8 /* valid vpd port data */
339#define VPD_MASK 0xf /* mask for any vpd data */ 346#define VPD_MASK 0xf /* mask for any vpd data */
340 347
348 struct timer_list fcp_poll_timer;
341 struct timer_list els_tmofunc; 349 struct timer_list els_tmofunc;
350
342 /* 351 /*
343 * stat counters 352 * stat counters
344 */ 353 */
@@ -349,6 +358,7 @@ struct lpfc_hba {
349 struct lpfc_sysfs_mbox sysfs_mbox; 358 struct lpfc_sysfs_mbox sysfs_mbox;
350 359
351 /* fastpath list. */ 360 /* fastpath list. */
361 spinlock_t scsi_buf_list_lock;
352 struct list_head lpfc_scsi_buf_list; 362 struct list_head lpfc_scsi_buf_list;
353 uint32_t total_scsi_bufs; 363 uint32_t total_scsi_bufs;
354 struct list_head lpfc_iocb_list; 364 struct list_head lpfc_iocb_list;