/* Root, ParentPrefix and SegCount cannot be 0 at the same time. This function works for ASL and AML name strings. */
BOOLEAN EFIAPI AmlIsNameString(IN UINT32 Root, IN UINT32 ParentPrefix, IN UINT32 SegCount)
/* Root, ParentPrefix and SegCount cannot be 0 at the same time. This function works for ASL and AML name strings. */
BOOLEAN EFIAPI AmlIsNameString(IN UINT32 Root, IN UINT32 ParentPrefix, IN UINT32 SegCount)
{
  if (((Root == 0) || (Root == 1))            &&
      (ParentPrefix <= MAX_UINT8)             &&
      (!((ParentPrefix != 0) && (Root != 0))) &&
      (SegCount <= MAX_UINT8)                 &&
      ((SegCount + Root + ParentPrefix) != 0))
  {
    return TRUE;
  }
  return FALSE;
}