]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkPkg/Include/Protocol/SmmAccess.h
Grammatical and disclaimer changes (does not follow internal C coding stds.)
[mirror_edk2.git] / IntelFrameworkPkg / Include / Protocol / SmmAccess.h
index 97c00731ed71e3dd0e59cb6063144e13cfa911e6..31fc7a83b24a7e6007666d1bd9a18ac43a12c483 100644 (file)
@@ -1,19 +1,19 @@
 /** @file\r
-  This file declares SMM SMRAM Access abstraction protocol which is used to control \r
+  This file declares the SMM SMRAM Access abstraction protocol, which is used to control \r
   the visibility of the SMRAM on the platform. The expectation is\r
   that the north bridge or memory controller would publish this protocol. \r
   For example, the Memory Controller Hub (MCH) has the hardware provision for this \r
   type of control. Because of the protected, distinguished class of memory for IA-32 \r
   systems, the expectation is that this protocol would be supported only on IA-32 systems.\r
 \r
-  Copyright (c) 2007, Intel Corporation\r
-  All rights reserved. This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2007 - 2010, Intel Corporation.  All rights reserved<BR>\r
+This program and the accompanying materials are licensed and made available under \r
+the terms and conditions of the BSD License that accompanies this distribution.  \r
+The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php.                                          \r
+    \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
   @par Revision Reference:\r
   This Protocol is defined in Framework of EFI SMM Core Interface Spec\r
@@ -23,7 +23,6 @@
 #ifndef _SMM_ACCESS_H_\r
 #define _SMM_ACCESS_H_\r
 \r
-#include <PiDxe.h>\r
 #include <Guid/SmramMemoryReserve.h>\r
 \r
 typedef struct _EFI_SMM_ACCESS_PROTOCOL  EFI_SMM_ACCESS_PROTOCOL;\r
@@ -33,19 +32,6 @@ typedef struct _EFI_SMM_ACCESS_PROTOCOL  EFI_SMM_ACCESS_PROTOCOL;
     0x3792095a, 0xe309, 0x4c1e, {0xaa, 0x01, 0x85, 0xf5, 0x65, 0x5a, 0x17, 0xf1 } \\r
   }\r
 \r
-//\r
-// SMM Access specification constant and types\r
-//\r
-// *******************************************************\r
-//  EFI_SMRAM_STATE\r
-// *******************************************************\r
-//\r
-#define EFI_SMRAM_OPEN    0x00000001\r
-#define EFI_SMRAM_CLOSED  0x00000002\r
-#define EFI_SMRAM_LOCKED  0x00000004\r
-#define EFI_CACHEABLE     0x00000008\r
-#define EFI_ALLOCATED     0x00000010\r
-\r
 //\r
 // SMM Access specification Member Function\r
 //\r
@@ -72,7 +58,7 @@ EFI_STATUS
   Inhibits access to the SMRAM.\r
 \r
   @param  This                  The EFI_SMM_ACCESS_PROTOCOL instance.\r
-  @param  DescriptorIndex       Indicates that the driver wishes to open\r
+  @param  DescriptorIndex       Indicates that the driver wishes to close\r
                                 the memory tagged by this index.\r
 \r
   @retval EFI_SUCCESS           The operation was successful.\r
@@ -90,8 +76,9 @@ EFI_STATUS
 \r
 /**\r
   Inhibits access to the SMRAM.\r
+\r
   @param  This                  The EFI_SMM_ACCESS_PROTOCOL instance.\r
-  @param  DescriptorIndex       Indicates that the driver wishes to open\r
+  @param  DescriptorIndex       Indicates that the driver wishes to lock\r
                                 the memory tagged by this index.\r
 \r
   @retval EFI_SUCCESS           The operation was successful.\r
@@ -127,35 +114,15 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  @par Protocol Description:\r
   This protocol is used to control the visibility of the SMRAM on the platform.\r
-\r
-  @param Open\r
-  Opens the SMRAM.\r
-\r
-  @param Close\r
-  Closes the SMRAM.\r
-\r
-  @param Lock\r
-  Locks the SMRAM.\r
-\r
-  @param GetCapabilities\r
-  Gets information on possible SMRAM regions.\r
-\r
-  @param LockState\r
-  Indicates the current state of the SMRAM. Set to TRUE if any region is locked.\r
-\r
-  @param OpenState\r
-  Indicates the current state of the SMRAM. Set to TRUE if any region is open.\r
-\r
 **/\r
 struct _EFI_SMM_ACCESS_PROTOCOL {\r
-  EFI_SMM_OPEN          Open;\r
-  EFI_SMM_CLOSE         Close;\r
-  EFI_SMM_LOCK          Lock;\r
-  EFI_SMM_CAPABILITIES  GetCapabilities;\r
-  BOOLEAN               LockState;\r
-  BOOLEAN               OpenState;\r
+  EFI_SMM_OPEN          Open;             ///< Opens the SMRAM.\r
+  EFI_SMM_CLOSE         Close;            ///< Closes the SMRAM.\r
+  EFI_SMM_LOCK          Lock;             ///< Locks the SMRAM.\r
+  EFI_SMM_CAPABILITIES  GetCapabilities;  ///< Gets information on possible SMRAM regions.\r
+  BOOLEAN               LockState;        ///< Indicates the current state of the SMRAM. Set to TRUE if any region is locked.\r
+  BOOLEAN               OpenState;        ///< Indicates the current state of the SMRAM. Set to TRUE if any region is open.\r
 };\r
 \r
 extern EFI_GUID gEfiSmmAccessProtocolGuid;\r