/* This function wraps the ResetDevice() invocation for ATA pass through function for an ATA device. */
EFI_STATUS ResetAtaDevice(IN ATA_DEVICE *AtaDevice)
/* This function wraps the ResetDevice() invocation for ATA pass through function for an ATA device. */
EFI_STATUS ResetAtaDevice(IN ATA_DEVICE *AtaDevice)
{
  EFI_ATA_PASS_THRU_PROTOCOL  *AtaPassThru;
  AtaPassThru = AtaDevice->AtaBusDriverData->AtaPassThru;
  REPORT_STATUS_CODE_WITH_DEVICE_PATH (
    EFI_PROGRESS_CODE,
    (EFI_IO_BUS_ATA_ATAPI | EFI_IOB_PC_RESET),
    AtaDevice->AtaBusDriverData->ParentDevicePath
    );
  return AtaPassThru->ResetDevice (
                        AtaPassThru,
                        AtaDevice->Port,
                        AtaDevice->PortMultiplierPort
                        );
}