diff options
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 | } | ||