/* This routine prepares the mailbox command for enabling HBA asynchronous event support on a IOCB ring.  */
void lpfc_config_async(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb, uint32_t ring)
/* This routine prepares the mailbox command for enabling HBA asynchronous event support on a IOCB ring.  */
void lpfc_config_async(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb, uint32_t ring)
{
	MAILBOX_t *mb;
	mb = &pmb->u.mb;
	memset(pmb, 0, sizeof (LPFC_MBOXQ_t));
	mb->mbxCommand = MBX_ASYNCEVT_ENABLE;
	mb->un.varCfgAsyncEvent.ring = ring;
	mb->mbxOwner = OWN_HOST;
	return;
}