/* Get specified SMI register based on given register ID */
PLD_GENERIC_REGISTER* GetRegisterById(UINT64 Id)
/* Get specified SMI register based on given register ID */
PLD_GENERIC_REGISTER* GetRegisterById(UINT64 Id)
{
  UINT32  Index;
  for (Index = 0; Index < mSmmRegisterHob->Count; Index++) {
    if (mSmmRegisterHob->Registers[Index].Id == Id) {
      return &mSmmRegisterHob->Registers[Index];
    }
  }
  return NULL;
}