X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=OvmfPkg%2FSmmAccess%2FSmramInternal.h;h=74d962b4ecae770af16f90c99aebff36c46cf550;hb=a7ef158b07524f9afd0cefa3180aeac0fcb6e436;hp=4e9ac05fad1cc789754066ab91ff86a6eeee4c35;hpb=9d560947f6d35790306f495a69c22fbb1a3656ff;p=mirror_edk2.git diff --git a/OvmfPkg/SmmAccess/SmramInternal.h b/OvmfPkg/SmmAccess/SmramInternal.h index 4e9ac05fad..74d962b4ec 100644 --- a/OvmfPkg/SmmAccess/SmramInternal.h +++ b/OvmfPkg/SmmAccess/SmramInternal.h @@ -4,13 +4,7 @@ Copyright (C) 2015, Red Hat, Inc. - This program and the accompanying materials are licensed and made available - under the terms and conditions of the BSD License which accompanies this - distribution. The full text of the license may be found at - http://opensource.org/licenses/bsd-license.php - - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT - WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -31,6 +25,19 @@ typedef enum { DescIdxCount = 2 } DESCRIPTOR_INDEX; +// +// The value of PcdQ35TsegMbytes is saved into this variable at module startup. +// +extern UINT16 mQ35TsegMbytes; + +/** + Save PcdQ35TsegMbytes into mQ35TsegMbytes. +**/ +VOID +InitQ35TsegMbytes ( + VOID + ); + /** Read the MCH_SMRAM and ESMRAMC registers, and update the LockState and OpenState fields in the PEI_SMM_ACCESS_PPI / EFI_SMM_ACCESS2_PROTOCOL object,