/* Convert the GUID representation of terminal type to enum type. */
TERMINAL_TYPE TerminalTypeFromGuid(IN EFI_GUID *Guid)
/* Convert the GUID representation of terminal type to enum type. */
TERMINAL_TYPE TerminalTypeFromGuid(IN EFI_GUID *Guid)
{
  TERMINAL_TYPE  Type;
  for (Type = 0; Type < ARRAY_SIZE (mTerminalType); Type++) {
    if (CompareGuid (Guid, mTerminalType[Type])) {
      break;
    }
  }
  return Type;
}