diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_sli.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_sli.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_sli.h b/drivers/scsi/lpfc/lpfc_sli.h index 2d64a2bab36a..4b9b44e8e064 100644 --- a/drivers/scsi/lpfc/lpfc_sli.h +++ b/drivers/scsi/lpfc/lpfc_sli.h | |||
@@ -131,7 +131,9 @@ typedef struct lpfcMboxq { | |||
131 | 131 | ||
132 | #define LPFC_MAX_RING_MASK 5 /* max num of rctl/type masks allowed per | 132 | #define LPFC_MAX_RING_MASK 5 /* max num of rctl/type masks allowed per |
133 | ring */ | 133 | ring */ |
134 | #define LPFC_MAX_RING 4 /* max num of SLI rings used by driver */ | 134 | #define LPFC_SLI3_MAX_RING 4 /* Max num of SLI3 rings used by driver. |
135 | For SLI4, an additional ring for each | ||
136 | FCP WQ will be allocated. */ | ||
135 | 137 | ||
136 | struct lpfc_sli_ring; | 138 | struct lpfc_sli_ring; |
137 | 139 | ||
@@ -172,7 +174,7 @@ struct lpfc_sli3_ring { | |||
172 | }; | 174 | }; |
173 | 175 | ||
174 | struct lpfc_sli4_ring { | 176 | struct lpfc_sli4_ring { |
175 | void *wqp; /* Pointer to associated WQ */ | 177 | struct lpfc_queue *wqp; /* Pointer to associated WQ */ |
176 | }; | 178 | }; |
177 | 179 | ||
178 | 180 | ||
@@ -284,7 +286,7 @@ struct lpfc_sli { | |||
284 | #define LPFC_MENLO_MAINT 0x1000 /* need for menl fw download */ | 286 | #define LPFC_MENLO_MAINT 0x1000 /* need for menl fw download */ |
285 | #define LPFC_SLI_ASYNC_MBX_BLK 0x2000 /* Async mailbox is blocked */ | 287 | #define LPFC_SLI_ASYNC_MBX_BLK 0x2000 /* Async mailbox is blocked */ |
286 | 288 | ||
287 | struct lpfc_sli_ring ring[LPFC_MAX_RING]; | 289 | struct lpfc_sli_ring *ring; |
288 | int fcp_ring; /* ring used for FCP initiator commands */ | 290 | int fcp_ring; /* ring used for FCP initiator commands */ |
289 | int next_ring; | 291 | int next_ring; |
290 | 292 | ||