/* The ASL NameString is converted to an AML NameString before being compared with the ASL NameString. This allows to expand NameSegs shorter than 4 chars. E.g.: AslName: "DEV" will be expanded to "DEV_" before being compared. */
BOOLEAN EFIAPI CompareAmlWithAslNameString(IN CONST CHAR8 *AmlName1, IN CONST CHAR8 *AslName2)
/* The ASL NameString is converted to an AML NameString before being compared with the ASL NameString. This allows to expand NameSegs shorter than 4 chars. E.g.: AslName: "DEV" will be expanded to "DEV_" before being compared. */
BOOLEAN EFIAPI CompareAmlWithAslNameString(IN CONST CHAR8 *AmlName1, IN CONST CHAR8 *AslName2)
{
  EFI_STATUS  Status;
  CHAR8    *AmlName2;
  BOOLEAN  RetVal;
  if ((AmlName1 == NULL) ||
      (AslName2 == NULL))
  {
    ASSERT (0);
    return FALSE;
  }
  Status = ConvertAmlNameToAslName (AslName2, &AmlName2);
  if (EFI_ERROR (Status)) {
    ASSERT (0);
    return FALSE;
  }
  RetVal = AmlCompareNameString (AmlName1, AmlName2);
  FreePool (AmlName2);
  return RetVal;
}