diff options
author | James Smart <james.smart@emulex.com> | 2010-02-12 14:42:03 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-02-17 18:40:48 -0500 |
commit | 28baac7492fa084dbff6a1b9c4b42ed0d014b558 (patch) | |
tree | dcf6dc190d0b85153eb8606b64f83089fae8084f /drivers/scsi/lpfc/lpfc_mbox.c | |
parent | ecfd03c6a99ad98fea5cb75ec83cd9945adff8d9 (diff) |
[SCSI] lpfc 8.3.9: SLI enhancments to support new hardware.
- Add support for the INTF (Interface) PCI register.
- Add support for greater than 2 page SGLs.
- Add support for up to 32 bit BDE lengths.
- Implement the Port Capabilities Mailbox command.
- Stop checking the Minor Code in the EQE structure.
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_mbox.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_mbox.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_mbox.c b/drivers/scsi/lpfc/lpfc_mbox.c index c2cc29f70a4b..6c1d8b3fe8cc 100644 --- a/drivers/scsi/lpfc/lpfc_mbox.c +++ b/drivers/scsi/lpfc/lpfc_mbox.c | |||
@@ -2052,3 +2052,41 @@ lpfc_resume_rpi(struct lpfcMboxq *mbox, struct lpfc_nodelist *ndlp) | |||
2052 | bf_set(lpfc_resume_rpi_ii, resume_rpi, RESUME_INDEX_RPI); | 2052 | bf_set(lpfc_resume_rpi_ii, resume_rpi, RESUME_INDEX_RPI); |
2053 | resume_rpi->event_tag = ndlp->phba->fc_eventTag; | 2053 | resume_rpi->event_tag = ndlp->phba->fc_eventTag; |
2054 | } | 2054 | } |
2055 | |||
2056 | /** | ||
2057 | * lpfc_supported_pages - Initialize the PORT_CAPABILITIES supported pages | ||
2058 | * mailbox command. | ||
2059 | * @mbox: pointer to lpfc mbox command to initialize. | ||
2060 | * | ||
2061 | * The PORT_CAPABILITIES supported pages mailbox command is issued to | ||
2062 | * retrieve the particular feature pages supported by the port. | ||
2063 | **/ | ||
2064 | void | ||
2065 | lpfc_supported_pages(struct lpfcMboxq *mbox) | ||
2066 | { | ||
2067 | struct lpfc_mbx_supp_pages *supp_pages; | ||
2068 | |||
2069 | memset(mbox, 0, sizeof(*mbox)); | ||
2070 | supp_pages = &mbox->u.mqe.un.supp_pages; | ||
2071 | bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_PORT_CAPABILITIES); | ||
2072 | bf_set(cpn, supp_pages, LPFC_SUPP_PAGES); | ||
2073 | } | ||
2074 | |||
2075 | /** | ||
2076 | * lpfc_sli4_params - Initialize the PORT_CAPABILITIES SLI4 Params | ||
2077 | * mailbox command. | ||
2078 | * @mbox: pointer to lpfc mbox command to initialize. | ||
2079 | * | ||
2080 | * The PORT_CAPABILITIES SLI4 parameters mailbox command is issued to | ||
2081 | * retrieve the particular SLI4 features supported by the port. | ||
2082 | **/ | ||
2083 | void | ||
2084 | lpfc_sli4_params(struct lpfcMboxq *mbox) | ||
2085 | { | ||
2086 | struct lpfc_mbx_sli4_params *sli4_params; | ||
2087 | |||
2088 | memset(mbox, 0, sizeof(*mbox)); | ||
2089 | sli4_params = &mbox->u.mqe.un.sli4_params; | ||
2090 | bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_PORT_CAPABILITIES); | ||
2091 | bf_set(cpn, sli4_params, LPFC_SLI4_PARAMETERS); | ||
2092 | } | ||