/* This function converts ATA device model name from ATA identify data to a string in ATA device structure. It needs to change the character order in the original model name string. */
VOID PrintAtaModelName(IN OUT ATA_DEVICE *AtaDevice)
/* This function converts ATA device model name from ATA identify data to a string in ATA device structure. It needs to change the character order in the original model name string. */
VOID PrintAtaModelName(IN OUT ATA_DEVICE *AtaDevice)
{
  UINTN   Index;
  CHAR8   *Source;
  CHAR16  *Destination;
  Source      = AtaDevice->IdentifyData->ModelName;
  Destination = AtaDevice->ModelName;
  for (Index = 0; Index < MAX_MODEL_NAME_LEN; Index += 2) {
    Destination[Index]     = Source[Index + 1];
    Destination[Index + 1] = Source[Index];
  }
  AtaDevice->ModelName[MAX_MODEL_NAME_LEN] = L'\0';
}