/* Get the driver strength to be set on bus. */
EDKII_SD_MMC_DRIVER_STRENGTH EmmcGetTargetDriverStrength(IN SD_MMC_HC_PRIVATE_DATA *Private, IN UINT8 SlotIndex, IN EMMC_EXT_CSD *ExtCsd, IN SD_MMC_BUS_MODE BusTiming)
/* Get the driver strength to be set on bus. */
EDKII_SD_MMC_DRIVER_STRENGTH EmmcGetTargetDriverStrength(IN SD_MMC_HC_PRIVATE_DATA *Private, IN UINT8 SlotIndex, IN EMMC_EXT_CSD *ExtCsd, IN SD_MMC_BUS_MODE BusTiming)
{
  EDKII_SD_MMC_DRIVER_STRENGTH  PreferredDriverStrength;
  EDKII_SD_MMC_DRIVER_STRENGTH  DriverStrength;
  PreferredDriverStrength = Private->Slot[SlotIndex].OperatingParameters.DriverStrength;
  DriverStrength.Emmc     = EmmcDriverStrengthType0;
  if ((PreferredDriverStrength.Emmc != EDKII_SD_MMC_DRIVER_STRENGTH_IGNORE) &&
      (ExtCsd->DriverStrength & (BIT0 << PreferredDriverStrength.Emmc)))
  {
    DriverStrength.Emmc = PreferredDriverStrength.Emmc;
  }
  return DriverStrength;
}