/* Set all interrupt status bits in Normal and Error Interrupt Status Enable register. */
EFI_STATUS EmmcPeimHcEnableInterrupt(IN UINTN Bar)
/* Set all interrupt status bits in Normal and Error Interrupt Status Enable register. */
EFI_STATUS EmmcPeimHcEnableInterrupt(IN UINTN Bar)
{
  EFI_STATUS  Status;
  UINT16      IntStatus;
  IntStatus = 0xFFFF;
  Status    = EmmcPeimHcRwMmio (Bar + EMMC_HC_ERR_INT_STS_EN, FALSE, sizeof (IntStatus), &IntStatus);
  if (EFI_ERROR (Status)) {
    return Status;
  }
  IntStatus = 0xFFFF;
  Status    = EmmcPeimHcRwMmio (Bar + EMMC_HC_NOR_INT_STS_EN, FALSE, sizeof (IntStatus), &IntStatus);
  return Status;
}