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