/* This function prohibits access to the SMRAM region. This function is usually implemented such that it is a write-once operation. */
STATIC EFI_STATUS EFIAPI SmmAccessPeiLock(IN EFI_PEI_SERVICES **PeiServices, IN PEI_SMM_ACCESS_PPI *This, IN UINTN DescriptorIndex)
/* This function prohibits access to the SMRAM region. This function is usually implemented such that it is a write-once operation. */
STATIC EFI_STATUS EFIAPI SmmAccessPeiLock(IN EFI_PEI_SERVICES **PeiServices, IN PEI_SMM_ACCESS_PPI *This, IN UINTN DescriptorIndex)
{
  if (DescriptorIndex >= DescIdxCount) {
    return EFI_INVALID_PARAMETER;
  }
  return SmramAccessLock (&This->LockState, &This->OpenState);
}