/* Look for an OpCode/SubOpCode couple in the AML field element grammar, and return a corresponding string. */
CONST CHAR8* AmlGetFieldOpCodeStr(IN UINT8 OpCode, IN UINT8 SubOpCode)
/* Look for an OpCode/SubOpCode couple in the AML field element grammar, and return a corresponding string. */
CONST CHAR8* AmlGetFieldOpCodeStr(IN UINT8 OpCode, IN UINT8 SubOpCode)
{
  EAML_PARSE_INDEX  Index;
  if (SubOpCode != 0) {
    ASSERT (0);
    return NULL;
  }
  for (Index = 0;
       Index < (sizeof (mAmlFieldEncoding) / sizeof (mAmlFieldEncoding[0]));
       Index++)
  {
    if ((mAmlFieldEncoding[Index].OpCode == OpCode)) {
      return mAmlFieldEncoding[Index].Str;
    }
  }
  ASSERT (0);
  return NULL;
}