diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/scsi/lpfc/lpfc.h b/drivers/scsi/lpfc/lpfc.h index aa10f7951634..1cc23a69db5e 100644 --- a/drivers/scsi/lpfc/lpfc.h +++ b/drivers/scsi/lpfc/lpfc.h | |||
@@ -109,7 +109,8 @@ struct hbq_dmabuf { | |||
109 | struct lpfc_dmabuf dbuf; | 109 | struct lpfc_dmabuf dbuf; |
110 | uint32_t size; | 110 | uint32_t size; |
111 | uint32_t tag; | 111 | uint32_t tag; |
112 | struct lpfc_rcqe rcqe; | 112 | struct lpfc_cq_event cq_event; |
113 | unsigned long time_stamp; | ||
113 | }; | 114 | }; |
114 | 115 | ||
115 | /* Priority bit. Set value to exceed low water mark in lpfc_mem. */ | 116 | /* Priority bit. Set value to exceed low water mark in lpfc_mem. */ |
@@ -201,6 +202,7 @@ struct lpfc_stats { | |||
201 | uint32_t elsRcvLIRR; | 202 | uint32_t elsRcvLIRR; |
202 | uint32_t elsRcvRPS; | 203 | uint32_t elsRcvRPS; |
203 | uint32_t elsRcvRPL; | 204 | uint32_t elsRcvRPL; |
205 | uint32_t elsRcvRRQ; | ||
204 | uint32_t elsXmitFLOGI; | 206 | uint32_t elsXmitFLOGI; |
205 | uint32_t elsXmitFDISC; | 207 | uint32_t elsXmitFDISC; |
206 | uint32_t elsXmitPLOGI; | 208 | uint32_t elsXmitPLOGI; |
@@ -289,8 +291,8 @@ struct lpfc_vport { | |||
289 | 291 | ||
290 | uint16_t vpi; | 292 | uint16_t vpi; |
291 | uint16_t vfi; | 293 | uint16_t vfi; |
292 | uint8_t vfi_state; | 294 | uint8_t vpi_state; |
293 | #define LPFC_VFI_REGISTERED 0x1 | 295 | #define LPFC_VPI_REGISTERED 0x1 |
294 | 296 | ||
295 | uint32_t fc_flag; /* FC flags */ | 297 | uint32_t fc_flag; /* FC flags */ |
296 | /* Several of these flags are HBA centric and should be moved to | 298 | /* Several of these flags are HBA centric and should be moved to |
@@ -405,6 +407,7 @@ struct lpfc_vport { | |||
405 | uint8_t stat_data_enabled; | 407 | uint8_t stat_data_enabled; |
406 | uint8_t stat_data_blocked; | 408 | uint8_t stat_data_blocked; |
407 | struct list_head rcv_buffer_list; | 409 | struct list_head rcv_buffer_list; |
410 | unsigned long rcv_buffer_time_stamp; | ||
408 | uint32_t vport_flag; | 411 | uint32_t vport_flag; |
409 | #define STATIC_VPORT 1 | 412 | #define STATIC_VPORT 1 |
410 | }; | 413 | }; |
@@ -527,13 +530,16 @@ struct lpfc_hba { | |||
527 | #define HBA_ERATT_HANDLED 0x1 /* This flag is set when eratt handled */ | 530 | #define HBA_ERATT_HANDLED 0x1 /* This flag is set when eratt handled */ |
528 | #define DEFER_ERATT 0x2 /* Deferred error attention in progress */ | 531 | #define DEFER_ERATT 0x2 /* Deferred error attention in progress */ |
529 | #define HBA_FCOE_SUPPORT 0x4 /* HBA function supports FCOE */ | 532 | #define HBA_FCOE_SUPPORT 0x4 /* HBA function supports FCOE */ |
530 | #define HBA_RECEIVE_BUFFER 0x8 /* Rcv buffer posted to worker thread */ | 533 | #define HBA_SP_QUEUE_EVT 0x8 /* Slow-path qevt posted to worker thread*/ |
531 | #define HBA_POST_RECEIVE_BUFFER 0x10 /* Rcv buffers need to be posted */ | 534 | #define HBA_POST_RECEIVE_BUFFER 0x10 /* Rcv buffers need to be posted */ |
532 | #define FCP_XRI_ABORT_EVENT 0x20 | 535 | #define FCP_XRI_ABORT_EVENT 0x20 |
533 | #define ELS_XRI_ABORT_EVENT 0x40 | 536 | #define ELS_XRI_ABORT_EVENT 0x40 |
534 | #define ASYNC_EVENT 0x80 | 537 | #define ASYNC_EVENT 0x80 |
535 | #define LINK_DISABLED 0x100 /* Link disabled by user */ | 538 | #define LINK_DISABLED 0x100 /* Link disabled by user */ |
536 | #define FCF_DISC_INPROGRESS 0x200 /* FCF discovery in progress */ | 539 | #define FCF_DISC_INPROGRESS 0x200 /* FCF discovery in progress */ |
540 | #define HBA_FIP_SUPPORT 0x400 /* FIP support in HBA */ | ||
541 | #define HBA_AER_ENABLED 0x800 /* AER enabled with HBA */ | ||
542 | uint32_t fcp_ring_in_use; /* When polling test if intr-hndlr active*/ | ||
537 | struct lpfc_dmabuf slim2p; | 543 | struct lpfc_dmabuf slim2p; |
538 | 544 | ||
539 | MAILBOX_t *mbox; | 545 | MAILBOX_t *mbox; |
@@ -551,6 +557,7 @@ struct lpfc_hba { | |||
551 | uint8_t fc_linkspeed; /* Link speed after last READ_LA */ | 557 | uint8_t fc_linkspeed; /* Link speed after last READ_LA */ |
552 | 558 | ||
553 | uint32_t fc_eventTag; /* event tag for link attention */ | 559 | uint32_t fc_eventTag; /* event tag for link attention */ |
560 | uint32_t link_events; | ||
554 | 561 | ||
555 | /* These fields used to be binfo */ | 562 | /* These fields used to be binfo */ |
556 | uint32_t fc_pref_DID; /* preferred D_ID */ | 563 | uint32_t fc_pref_DID; /* preferred D_ID */ |
@@ -604,8 +611,8 @@ struct lpfc_hba { | |||
604 | uint32_t cfg_enable_hba_reset; | 611 | uint32_t cfg_enable_hba_reset; |
605 | uint32_t cfg_enable_hba_heartbeat; | 612 | uint32_t cfg_enable_hba_heartbeat; |
606 | uint32_t cfg_enable_bg; | 613 | uint32_t cfg_enable_bg; |
607 | uint32_t cfg_enable_fip; | ||
608 | uint32_t cfg_log_verbose; | 614 | uint32_t cfg_log_verbose; |
615 | uint32_t cfg_aer_support; | ||
609 | 616 | ||
610 | lpfc_vpd_t vpd; /* vital product data */ | 617 | lpfc_vpd_t vpd; /* vital product data */ |
611 | 618 | ||