X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=IntelFrameworkPkg%2FInclude%2FProtocol%2FSmmAccess.h;h=f6c904b02de3c01aef7d890a0141ee2261762d7e;hb=d76597869f0bb9a5aa23c31529292918d7ddf338;hp=700eb250068357bdc0a879005dbb062a2a79936f;hpb=79964ac84ea0ca6c68d0dea38245fa83ff1945d1;p=mirror_edk2.git diff --git a/IntelFrameworkPkg/Include/Protocol/SmmAccess.h b/IntelFrameworkPkg/Include/Protocol/SmmAccess.h index 700eb25006..f6c904b02d 100644 --- a/IntelFrameworkPkg/Include/Protocol/SmmAccess.h +++ b/IntelFrameworkPkg/Include/Protocol/SmmAccess.h @@ -1,7 +1,12 @@ /** @file - This file declares SMM SMRAM Access abstraction protocol - - Copyright (c) 2007, Intel Corporation + This file declares the SMM SMRAM Access abstraction protocol, which is used to control + the visibility of the SMRAM on the platform. The expectation is + that the north bridge or memory controller would publish this protocol. + For example, the Memory Controller Hub (MCH) has the hardware provision for this + type of control. Because of the protected, distinguished class of memory for IA-32 + systems, the expectation is that this protocol would be supported only on IA-32 systems. + + Copyright (c) 2007 - 2009, Intel Corporation All rights reserved. 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 @@ -10,8 +15,6 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - Module Name: SmmAccess.h - @par Revision Reference: This Protocol is defined in Framework of EFI SMM Core Interface Spec Version 0.9. @@ -20,7 +23,7 @@ #ifndef _SMM_ACCESS_H_ #define _SMM_ACCESS_H_ -#include +#include typedef struct _EFI_SMM_ACCESS_PROTOCOL EFI_SMM_ACCESS_PROTOCOL; @@ -29,19 +32,6 @@ typedef struct _EFI_SMM_ACCESS_PROTOCOL EFI_SMM_ACCESS_PROTOCOL; 0x3792095a, 0xe309, 0x4c1e, {0xaa, 0x01, 0x85, 0xf5, 0x65, 0x5a, 0x17, 0xf1 } \ } -// -// SMM Access specification constant and types -// -// ******************************************************* -// EFI_SMRAM_STATE -// ******************************************************* -// -#define EFI_SMRAM_OPEN 0x00000001 -#define EFI_SMRAM_CLOSED 0x00000002 -#define EFI_SMRAM_LOCKED 0x00000004 -#define EFI_CACHEABLE 0x00000008 -#define EFI_ALLOCATED 0x00000010 - // // SMM Access specification Member Function // @@ -59,7 +49,7 @@ typedef struct _EFI_SMM_ACCESS_PROTOCOL EFI_SMM_ACCESS_PROTOCOL; **/ typedef EFI_STATUS -(EFIAPI *EFI_SMM_OPEN) ( +(EFIAPI *EFI_SMM_OPEN)( IN EFI_SMM_ACCESS_PROTOCOL *This, UINTN DescriptorIndex ); @@ -68,7 +58,7 @@ EFI_STATUS Inhibits access to the SMRAM. @param This The EFI_SMM_ACCESS_PROTOCOL instance. - @param DescriptorIndex Indicates that the driver wishes to open + @param DescriptorIndex Indicates that the driver wishes to close the memory tagged by this index. @retval EFI_SUCCESS The operation was successful. @@ -79,15 +69,16 @@ EFI_STATUS **/ typedef EFI_STATUS -(EFIAPI *EFI_SMM_CLOSE) ( +(EFIAPI *EFI_SMM_CLOSE)( IN EFI_SMM_ACCESS_PROTOCOL *This, UINTN DescriptorIndex ); /** Inhibits access to the SMRAM. + @param This The EFI_SMM_ACCESS_PROTOCOL instance. - @param DescriptorIndex Indicates that the driver wishes to open + @param DescriptorIndex Indicates that the driver wishes to lock the memory tagged by this index. @retval EFI_SUCCESS The operation was successful. @@ -98,7 +89,7 @@ EFI_STATUS **/ typedef EFI_STATUS -(EFIAPI *EFI_SMM_LOCK) ( +(EFIAPI *EFI_SMM_LOCK)( IN EFI_SMM_ACCESS_PROTOCOL *This, UINTN DescriptorIndex ); @@ -116,42 +107,22 @@ EFI_STATUS **/ typedef EFI_STATUS -(EFIAPI *EFI_SMM_CAPABILITIES) ( +(EFIAPI *EFI_SMM_CAPABILITIES)( IN EFI_SMM_ACCESS_PROTOCOL *This, IN OUT UINTN *SmramMapSize, IN OUT EFI_SMRAM_DESCRIPTOR *SmramMap ); /** - @par Protocol Description: This protocol is used to control the visibility of the SMRAM on the platform. - - @param Open - Opens the SMRAM. - - @param Close - Closes the SMRAM. - - @param Lock - Locks the SMRAM. - - @param GetCapabilities - Gets information on possible SMRAM regions. - - @param LockState -Indicates the current state of the SMRAM. Set to TRUE if any region is locked. - - @param OpenState -Indicates the current state of the SMRAM. Set to TRUE if any region is open. - **/ struct _EFI_SMM_ACCESS_PROTOCOL { - EFI_SMM_OPEN Open; - EFI_SMM_CLOSE Close; - EFI_SMM_LOCK Lock; - EFI_SMM_CAPABILITIES GetCapabilities; - BOOLEAN LockState; - BOOLEAN OpenState; + EFI_SMM_OPEN Open; ///< Opens the SMRAM. + EFI_SMM_CLOSE Close; ///< Closes the SMRAM. + EFI_SMM_LOCK Lock; ///< Locks the SMRAM. + EFI_SMM_CAPABILITIES GetCapabilities; ///< Gets information on possible SMRAM regions. + BOOLEAN LockState; ///< Indicates the current state of the SMRAM. Set to TRUE if any region is locked. + BOOLEAN OpenState; ///< Indicates the current state of the SMRAM. Set to TRUE if any region is open. }; extern EFI_GUID gEfiSmmAccessProtocolGuid;