/* This function converts a string to ACPI table signature. */
STATIC UINT32 ConvertStrToAcpiSignature(IN CONST CHAR16 *Str)
/* This function converts a string to ACPI table signature. */
STATIC UINT32 ConvertStrToAcpiSignature(IN CONST CHAR16 *Str)
{
  UINT8  Index;
  CHAR8  Ptr[4];
  ZeroMem (Ptr, sizeof (Ptr));
  Index = 0;
  while ((Index < 4) && (Str[Index] != 0)) {
    if ((Str[Index] >= L'a') && (Str[Index] <= L'z')) {
      Ptr[Index] = (CHAR8)(Str[Index] - (L'a' - L'A'));
    } else {
      Ptr[Index] = (CHAR8)Str[Index];
    }
    Index++;
  }
  return *(UINT32 *)Ptr;
}