/* Check if device state is unclear according to sense data. */
BOOLEAN IsDeviceStateUnclear(IN ATAPI_REQUEST_SENSE_DATA *SenseData, IN UINTN SenseCounts)
/* Check if device state is unclear according to sense data. */
BOOLEAN IsDeviceStateUnclear(IN ATAPI_REQUEST_SENSE_DATA *SenseData, IN UINTN SenseCounts)
{
  ATAPI_REQUEST_SENSE_DATA  *SensePtr;
  UINTN                     Index;
  BOOLEAN                   Unclear;
  Unclear = FALSE;
  SensePtr = SenseData;
  for (Index = 0; Index < SenseCounts; Index++) {
    if (SensePtr->sense_key == 0x06) {
      Unclear = TRUE;
      break;
    }
    SensePtr++;
  }
  return Unclear;
}