/* Get maximum variable size, covering both non-volatile and volatile variables. */
UINTN GetMaxVariableSize(VOID)
/* Get maximum variable size, covering both non-volatile and volatile variables. */
UINTN GetMaxVariableSize(VOID)
{
  UINTN  MaxVariableSize;
  MaxVariableSize = GetNonVolatileMaxVariableSize ();
  if (MaxVariableSize < PcdGet32 (PcdMaxVolatileVariableSize)) {
    MaxVariableSize = PcdGet32 (PcdMaxVolatileVariableSize);
  }
  return MaxVariableSize;
}