scsi: lpfc: Rework sli4 doorbell infrastructure
Up until now, all SLI-4 devices had the same doorbells at the same bar locations. With newer hardware, there are now independent EQ and CQ doorbells and the bar locations differ. Prepare the code for new hardware by separating the eq/cq doorbell into separate components. The components can be set based on if_type. Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <james.smart@broadcom.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
b71413dd01
commit
9dd35425a5
@@ -126,12 +126,13 @@
|
||||
#define LPFC_DRB_ACC_WR_CMD_ARG 2
|
||||
#define LPFC_DRB_ACC_BUF_SIZE 256
|
||||
|
||||
#define LPFC_DRB_EQCQ 1
|
||||
#define LPFC_DRB_MQ 2
|
||||
#define LPFC_DRB_WQ 3
|
||||
#define LPFC_DRB_RQ 4
|
||||
#define LPFC_DRB_EQ 1
|
||||
#define LPFC_DRB_CQ 2
|
||||
#define LPFC_DRB_MQ 3
|
||||
#define LPFC_DRB_WQ 4
|
||||
#define LPFC_DRB_RQ 5
|
||||
|
||||
#define LPFC_DRB_MAX 4
|
||||
#define LPFC_DRB_MAX 5
|
||||
|
||||
#define IDIAG_DRBACC_REGID_INDX 0
|
||||
#define IDIAG_DRBACC_VALUE_INDX 1
|
||||
|
Reference in New Issue
Block a user