/* Get the AML_BYTE_ENCODING entry in the field encoding table by providing an OpCode/SubOpCode couple. */
CONST AML_BYTE_ENCODING* EFIAPI AmlGetFieldEncodingByOpCode(IN UINT8 OpCode, IN UINT8 SubOpCode)
/* Get the AML_BYTE_ENCODING entry in the field encoding table by providing an OpCode/SubOpCode couple. */
CONST AML_BYTE_ENCODING* EFIAPI AmlGetFieldEncodingByOpCode(IN UINT8 OpCode, IN UINT8 SubOpCode)
{
  UINT32  Index;
  for (Index = 0;
       Index < (sizeof (mAmlFieldEncoding) / sizeof (mAmlFieldEncoding[0]));
       Index++)
  {
    if ((mAmlFieldEncoding[Index].OpCode == OpCode) &&
        (mAmlFieldEncoding[Index].SubOpCode == SubOpCode))
    {
      return &mAmlFieldEncoding[Index];
    }
  }
  return NULL;
}