/* Stop specified slot in transfer list of a UFS device. */
VOID UfsStopExecCmd(IN UFS_PEIM_HC_PRIVATE_DATA *Private, IN UINT8 Slot)
/* Stop specified slot in transfer list of a UFS device. */
VOID UfsStopExecCmd(IN UFS_PEIM_HC_PRIVATE_DATA *Private, IN UINT8 Slot)
{
  UINTN   UfsHcBase;
  UINTN   Address;
  UINT32  Data;
  UfsHcBase = Private->UfsHcBase;
  Address = UfsHcBase + UFS_HC_UTRLDBR_OFFSET;
  Data    = MmioRead32 (Address);
  if ((Data & (BIT0 << Slot)) != 0) {
    Address = UfsHcBase + UFS_HC_UTRLCLR_OFFSET;
    Data    = MmioRead32 (Address);
    MmioWrite32 (Address, (Data & ~(BIT0 << Slot)));
  }
}