/* This function returns AmlByteEncoding according to OpCode Byte. */
AML_BYTE_ENCODING* AmlSearchByOpByte(IN UINT8 *OpByteBuffer)
/* This function returns AmlByteEncoding according to OpCode Byte. */
AML_BYTE_ENCODING* AmlSearchByOpByte(IN UINT8 *OpByteBuffer)
{
  UINT8  OpCode;
  UINT8  SubOpCode;
  UINTN  Index;
  OpCode = OpByteBuffer[0];
  if (OpCode == AML_EXT_OP) {
    SubOpCode = OpByteBuffer[1];
  } else {
    SubOpCode = 0;
  }
  for (Index = 0; Index < sizeof (mAmlByteEncoding)/sizeof (mAmlByteEncoding[0]); Index++) {
    if ((mAmlByteEncoding[Index].OpCode == OpCode) && (mAmlByteEncoding[Index].SubOpCode == SubOpCode)) {
      return &mAmlByteEncoding[Index];
    }
  }
  return NULL;
}