/* Get the MMIO base address of UFS host controller. */
EFI_STATUS EFIAPI GetUfsHcMmioBar(IN EDKII_UFS_HOST_CONTROLLER_PPI *This, IN UINT8 ControllerId, OUT UINTN *MmioBar)
/* Get the MMIO base address of UFS host controller. */
EFI_STATUS EFIAPI GetUfsHcMmioBar(IN EDKII_UFS_HOST_CONTROLLER_PPI *This, IN UINT8 ControllerId, OUT UINTN *MmioBar)
{
  UFS_HC_PEI_PRIVATE_DATA  *Private;
  if ((This == NULL) || (MmioBar == NULL)) {
    return EFI_INVALID_PARAMETER;
  }
  Private = UFS_HC_PEI_PRIVATE_DATA_FROM_THIS (This);
  if (ControllerId >= Private->TotalUfsHcs) {
    return EFI_INVALID_PARAMETER;
  }
  *MmioBar = (UINTN)Private->UfsHcPciAddr[ControllerId];
  return EFI_SUCCESS;
}