]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Update comments for coding style.
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 2 Jul 2009 00:47:58 +0000 (00:47 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 2 Jul 2009 00:47:58 +0000 (00:47 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8711 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkPkg/Include/Protocol/SmmBase.h
IntelFrameworkPkg/Include/Protocol/SmmPowerButtonDispatch.h

index e21b495eb6f24305de980841b576312f9b756a3b..11dd2f29f416a19c2117d1fd6b36bfc06801ff7e 100644 (file)
   call before boot services are terminated. On the other hand, handlers for services such as chipset\r
   workarounds for the century rollover in CMOS should provide commensurate services throughout\r
   preboot and OS runtime.\r
   call before boot services are terminated. On the other hand, handlers for services such as chipset\r
   workarounds for the century rollover in CMOS should provide commensurate services throughout\r
   preboot and OS runtime.\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
 \r
   @par Revision Reference:\r
   This Protocol is defined in Framework of EFI SMM Core Interface Spec\r
   Version 0.9.\r
 \r
 \r
   @par Revision Reference:\r
   This Protocol is defined in Framework of EFI SMM Core Interface Spec\r
   Version 0.9.\r
 \r
+Copyright (c) 2007 - 2009, 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
+\r
 **/\r
 \r
 #ifndef _SMM_BASE_H_\r
 **/\r
 \r
 #ifndef _SMM_BASE_H_\r
@@ -57,14 +57,14 @@ typedef struct _EFI_SMM_BASE_PROTOCOL             EFI_SMM_BASE_PROTOCOL;
 /**\r
   Entry Point to Callback service\r
 \r
 /**\r
   Entry Point to Callback service\r
 \r
-  @param  SmmImageHandle        A handle allocated by the SMM infrastructure code\r
-                                to uniquely designate a specific DXE SMM driver.\r
-  @param  CommunicationBuffer   A pointer to a collection of data in memory\r
-                                that will be conveyed from a non-SMM environment into an SMM environment.\r
-                                The buffer must be contiguous, physically mapped, and be a physical address.\r
-  @param  SourceSize            The size of the CommunicationBuffer.\r
+  @param[in]  SmmImageHandle        A handle allocated by the SMM infrastructure code\r
+                                    to uniquely designate a specific DXE SMM driver.\r
+  @param[in]  CommunicationBuffer   A pointer to a collection of data in memory\r
+                                    that will be conveyed from a non-SMM environment into an SMM environment.\r
+                                    The buffer must be contiguous, physically mapped, and be a physical address.\r
+  @param[in]  SourceSize            The size of the CommunicationBuffer.\r
 \r
 \r
-  @return Status code\r
+  @return     Status code\r
 \r
 **/\r
 typedef\r
 \r
 **/\r
 typedef\r
@@ -82,22 +82,22 @@ EFI_STATUS
   Register a given driver into SMRAM.This is the equivalent of performing\r
   the LoadImage/StartImage into System Management Mode.\r
 \r
   Register a given driver into SMRAM.This is the equivalent of performing\r
   the LoadImage/StartImage into System Management Mode.\r
 \r
-  @param  This                  Protocol instance pointer.\r
-  @param  FilePath              Location of the image to be installed as the handler.\r
-  @param  SourceBuffer          Optional source buffer in case of the image file\r
-                                being in memory.\r
-  @param  SourceSize            Size of the source image file, if in memory.\r
-  @param  ImageHandle           The handle that the base driver uses to decode \r
-                                the handler. Unique among SMM handlers only, \r
-                                not unique across DXE/EFI.\r
-  @param  LegacyIA32Binary      An optional parameter that details that the associated \r
-                                file is a real-mode IA-32 binary.\r
-\r
-  @retval EFI_SUCCESS           The operation was successful.\r
-  @retval EFI_OUT_OF_RESOURCES  There were no additional SMRAM resources to load the handler\r
-  @retval EFI_UNSUPPORTED       This platform does not support 16-bit handlers.\r
-  @retval EFI_UNSUPPORTED       In runtime.\r
-  @retval EFI_INVALID_PARAMETER The handlers was not the correct image type\r
+  @param[in]   This                  Protocol instance pointer.\r
+  @param[in]   FilePath              Location of the image to be installed as the handler.\r
+  @param[in]   SourceBuffer          Optional source buffer in case of the image file\r
+                                     being in memory.\r
+  @param[in]   SourceSize            Size of the source image file, if in memory.\r
+  @param[out]  ImageHandle           The handle that the base driver uses to decode \r
+                                     the handler. Unique among SMM handlers only, \r
+                                     not unique across DXE/EFI.\r
+  @param[in]   LegacyIA32Binary      An optional parameter that details that the associated \r
+                                     file is a real-mode IA-32 binary.\r
+\r
+  @retval      EFI_SUCCESS           The operation was successful.\r
+  @retval      EFI_OUT_OF_RESOURCES  There were no additional SMRAM resources to load the handler\r
+  @retval      EFI_UNSUPPORTED       This platform does not support 16-bit handlers.\r
+  @retval      EFI_UNSUPPORTED       In runtime.\r
+  @retval      EFI_INVALID_PARAMETER The handlers was not the correct image type\r
 \r
 **/\r
 typedef\r
 \r
 **/\r
 typedef\r
@@ -115,12 +115,12 @@ EFI_STATUS
   Removes a handler from execution within SMRAM.  This is the equivalent of performing\r
   the UnloadImage in System Management Mode.\r
 \r
   Removes a handler from execution within SMRAM.  This is the equivalent of performing\r
   the UnloadImage in System Management Mode.\r
 \r
-  @param  This                  Protocol instance pointer.\r
-  @param  ImageHandle           The handler to be removed.\r
+  @param[in]  This                  Protocol instance pointer.\r
+  @param[in]  ImageHandle           The handler to be removed.\r
 \r
 \r
-  @retval EFI_SUCCESS           The operation was successful\r
-  @retval EFI_INVALID_PARAMETER The handler did not exist\r
-  @retval EFI_UNSUPPORTED       In runtime.\r
+  @retval     EFI_SUCCESS           The operation was successful\r
+  @retval     EFI_INVALID_PARAMETER The handler did not exist\r
+  @retval     EFI_UNSUPPORTED       In runtime.\r
 \r
 **/\r
 typedef\r
 \r
 **/\r
 typedef\r
@@ -136,13 +136,13 @@ EFI_STATUS
   EFI service.  The BASE protocol driver is responsible for doing\r
   any of the copies such that the data lives in boot-service-accessible RAM.\r
 \r
   EFI service.  The BASE protocol driver is responsible for doing\r
   any of the copies such that the data lives in boot-service-accessible RAM.\r
 \r
-  @param  This                  Protocol instance pointer.\r
-  @param  ImageHandle           The handle of the registered driver.\r
-  @param  CommunicationBuffer   Pointer to the buffer to convey into SMRAM.\r
-  @param  SourceSize            The size of the data buffer being passed in.\r
+  @param[in]      This                  Protocol instance pointer.\r
+  @param[in]      ImageHandle           The handle of the registered driver.\r
+  @param[in,out]  CommunicationBuffer   Pointer to the buffer to convey into SMRAM.\r
+  @param[in,out]  SourceSize            The size of the data buffer being passed in.\r
 \r
 \r
-  @retval EFI_SUCCESS           The message was successfully posted\r
-  @retval EFI_INVALID_PARAMETER The buffer was NULL\r
+  @retval         EFI_SUCCESS           The message was successfully posted\r
+  @retval         EFI_INVALID_PARAMETER The buffer was NULL\r
 \r
 **/\r
 typedef\r
 \r
 **/\r
 typedef\r
@@ -158,20 +158,20 @@ EFI_STATUS
   Register a callback to execute within SMM.\r
   This allows receipt of messages created with EFI_SMM_BASE_PROTOCOL.Communicate().\r
 \r
   Register a callback to execute within SMM.\r
   This allows receipt of messages created with EFI_SMM_BASE_PROTOCOL.Communicate().\r
 \r
-  @param  This                  Protocol instance pointer.\r
-  @param  SmmImageHandle        Handle of the callback service.\r
-  @param  CallbackAddress       Address of the callback service.\r
-  @param  MakeLast              If present, will stipulate that the handler is posted to \r
-                                be executed last in the dispatch table.\r
-  @param  FloatingPointSave     This is an optional parameter which informs the\r
-                                EFI_SMM_ACCESS_PROTOCOL Driver core if it needs to save\r
-                                the floating point register state. If any of the handlers\r
-                                require this, then the state will be saved for all of the handlers.\r
-\r
-  @retval EFI_SUCCESS           The operation was successful\r
-  @retval EFI_OUT_OF_RESOURCES  Not enough space in the dispatch queue\r
-  @retval EFI_UNSUPPORTED       In runtime.\r
-  @retval EFI_UNSUPPORTED       The caller is not in SMM.\r
+  @param[in]  This                  Protocol instance pointer.\r
+  @param[in]  SmmImageHandle        Handle of the callback service.\r
+  @param[in]  CallbackAddress       Address of the callback service.\r
+  @param[in]  MakeLast              If present, will stipulate that the handler is posted to \r
+                                    be executed last in the dispatch table.\r
+  @param[in]  FloatingPointSave     This is an optional parameter which informs the\r
+                                    EFI_SMM_ACCESS_PROTOCOL Driver core if it needs to save\r
+                                    the floating point register state. If any of the handlers\r
+                                    require this, then the state will be saved for all of the handlers.\r
+\r
+  @retval     EFI_SUCCESS           The operation was successful\r
+  @retval     EFI_OUT_OF_RESOURCES  Not enough space in the dispatch queue\r
+  @retval     EFI_UNSUPPORTED       In runtime.\r
+  @retval     EFI_UNSUPPORTED       The caller is not in SMM.\r
 \r
 **/\r
 typedef\r
 \r
 **/\r
 typedef\r
@@ -190,20 +190,20 @@ EFI_STATUS
   by Buffer.  This function allocates pages from EFI SMRAM Memory as needed to grow the\r
   requested pool type.  All allocations are eight-byte aligned.\r
 \r
   by Buffer.  This function allocates pages from EFI SMRAM Memory as needed to grow the\r
   requested pool type.  All allocations are eight-byte aligned.\r
 \r
-  @param  This                  Protocol instance pointer.\r
-  @param  PoolType              The type of pool to allocate.\r
-                                The only supported type is EfiRuntimeServicesData;\r
-                                the interface will internally map this runtime request to \r
-                                SMRAM for IA-32 and leave as this type for the Itanium \r
-                                processor family. Other types can be ignored.\r
-  @param  Size                  The number of bytes to allocate from the pool.\r
-  @param  Buffer                A pointer to a pointer to the allocated buffer if the call\r
-                                succeeds; undefined otherwise.\r
-\r
-  @retval EFI_SUCCESS           The requested number of bytes was allocated.\r
-  @retval EFI_OUT_OF_RESOURCES  The pool requested could not be allocated.\r
-  @retval EFI_INVALID_PARAMETER PoolType was invalid.\r
-  @retval EFI_UNSUPPORTED       In runtime.\r
+  @param[in]   This                  Protocol instance pointer.\r
+  @param[in]   PoolType              The type of pool to allocate.\r
+                                     The only supported type is EfiRuntimeServicesData;\r
+                                     the interface will internally map this runtime request to \r
+                                     SMRAM for IA-32 and leave as this type for the Itanium \r
+                                     processor family. Other types can be ignored.\r
+  @param[in]   Size                  The number of bytes to allocate from the pool.\r
+  @param[out]  Buffer                A pointer to a pointer to the allocated buffer if the call\r
+                                     succeeds; undefined otherwise.\r
+\r
+  @retval      EFI_SUCCESS           The requested number of bytes was allocated.\r
+  @retval      EFI_OUT_OF_RESOURCES  The pool requested could not be allocated.\r
+  @retval      EFI_INVALID_PARAMETER PoolType was invalid.\r
+  @retval      EFI_UNSUPPORTED       In runtime.\r
 \r
 **/\r
 typedef\r
 \r
 **/\r
 typedef\r
@@ -220,12 +220,12 @@ EFI_STATUS
   On return, the memory's type is EFI SMRAM Memory.  The Buffer that is freed must\r
   have been allocated by SmmAllocatePool().\r
 \r
   On return, the memory's type is EFI SMRAM Memory.  The Buffer that is freed must\r
   have been allocated by SmmAllocatePool().\r
 \r
-  @param  This                  Protocol instance pointer.\r
-  @param  Buffer                Pointer to the buffer allocation.\r
+  @param[in]  This                  Protocol instance pointer.\r
+  @param[in]  Buffer                Pointer to the buffer allocation.\r
 \r
 \r
-  @retval EFI_SUCCESS           The memory was returned to the system.\r
-  @retval EFI_INVALID_PARAMETER Buffer was invalid.\r
-  @retval EFI_UNSUPPORTED       In runtime.\r
+  @retval     EFI_SUCCESS           The memory was returned to the system.\r
+  @retval     EFI_INVALID_PARAMETER Buffer was invalid.\r
+  @retval     EFI_UNSUPPORTED       In runtime.\r
 \r
 **/\r
 typedef\r
 \r
 **/\r
 typedef\r
@@ -238,10 +238,13 @@ EFI_STATUS
 /**\r
   This routine tells caller if execution context is SMM or not.\r
 \r
 /**\r
   This routine tells caller if execution context is SMM or not.\r
 \r
-  @param  This                  Protocol instance pointer.\r
-  @param  InSmm                 Whether the caller is inside SMM for IA-32 or servicing a PMI for the Itanium processor family.\r
+  @param[in]   This                   Protocol instance pointer.\r
+  @param[out]  InSmm                  Whether the caller is inside SMM for IA-32\r
+                                      or servicing a PMI for the Itanium processor\r
+                                family.\r
 \r
 \r
-  @retval EFI_SUCCESS           The operation was successful\r
+  @retval      EFI_SUCCESS            The operation was successful\r
+  @retval      EFI_INVALID_PARAMETER  InSmm was NULL.\r
 \r
 **/\r
 typedef\r
 \r
 **/\r
 typedef\r
@@ -257,12 +260,12 @@ EFI_STATUS
   location of the SMST in its entry point and then cache it in some driver\r
   global variable so that the SMST can be invoked in subsequent callbacks.\r
 \r
   location of the SMST in its entry point and then cache it in some driver\r
   global variable so that the SMST can be invoked in subsequent callbacks.\r
 \r
-  @param  This                  Protocol instance pointer.\r
-  @param  Smst                  Pointer to the SMST.\r
+  @param[in]  This                  Protocol instance pointer.\r
+  @param[in]  Smst                  Pointer to the SMST.\r
 \r
 \r
-  @retval EFI_SUCCESS           The operation was successful\r
-  @retval EFI_INVALID_PARAMETER Smst was invalid.\r
-  @retval EFI_UNSUPPORTED       Not in SMM.\r
+  @retval     EFI_SUCCESS           The operation was successful\r
+  @retval     EFI_INVALID_PARAMETER Smst was invalid.\r
+  @retval     EFI_UNSUPPORTED       Not in SMM.\r
 \r
 **/\r
 typedef\r
 \r
 **/\r
 typedef\r
@@ -277,39 +280,46 @@ EFI_STATUS
   This protocol is used to install SMM handlers for support of subsequent SMI/PMI\r
   activations. This protocol is available on both IA-32 and Itanium-based systems.\r
 \r
   This protocol is used to install SMM handlers for support of subsequent SMI/PMI\r
   activations. This protocol is available on both IA-32 and Itanium-based systems.\r
 \r
-  @param Register\r
-  Registers a handler to run in System Management RAM (SMRAM).\r
-\r
-  @param UnRegister\r
-  Removes a handler from execution in SMRAM.\r
-\r
-  @param Communicate\r
-  Sends/receives a message for a registered handler.\r
-\r
-  @param RegisterCallback\r
-  Registers a callback from the constructor.\r
-\r
-  @param InSmm\r
-  Detects whether the caller is inside or outside of SMM. SName\r
-\r
-  @param SmmAllocatePool\r
-  Allocates SMRAM.\r
-\r
-  @param SmmFreePool\r
-  Deallocates SMRAM.\r
-\r
-  @param GetSmstLocation\r
-  Retrieves the location of the System Management System Table (SMST).\r
-\r
 **/\r
 struct _EFI_SMM_BASE_PROTOCOL {\r
 **/\r
 struct _EFI_SMM_BASE_PROTOCOL {\r
+  ///\r
+  ///  Registers a handler to run in System Management RAM (SMRAM).\r
+  ///\r
   EFI_SMM_REGISTER_HANDLER    Register;\r
   EFI_SMM_REGISTER_HANDLER    Register;\r
+\r
+  ///\r
+  ///  Removes a handler from execution in SMRAM.\r
+  ///\r
   EFI_SMM_UNREGISTER_HANDLER  UnRegister;\r
   EFI_SMM_UNREGISTER_HANDLER  UnRegister;\r
+\r
+  ///\r
+  ///  Sends/receives a message for a registered handler.\r
+  ///\r
   EFI_SMM_COMMUNICATE         Communicate;\r
   EFI_SMM_COMMUNICATE         Communicate;\r
+\r
+  ///\r
+  ///  Registers a callback from the constructor.\r
+  ///\r
   EFI_SMM_CALLBACK_SERVICE    RegisterCallback;\r
   EFI_SMM_CALLBACK_SERVICE    RegisterCallback;\r
+\r
+  ///\r
+  ///  Detects whether the caller is inside or outside of SMM. SName\r
+  ///\r
   EFI_SMM_INSIDE_OUT          InSmm;\r
   EFI_SMM_INSIDE_OUT          InSmm;\r
+\r
+  ///\r
+  ///  Allocates SMRAM.\r
+  ///\r
   EFI_SMM_ALLOCATE_POOL       SmmAllocatePool;\r
   EFI_SMM_ALLOCATE_POOL       SmmAllocatePool;\r
+\r
+  ///\r
+  ///  Deallocates SMRAM.\r
+  ///\r
   EFI_SMM_FREE_POOL           SmmFreePool;\r
   EFI_SMM_FREE_POOL           SmmFreePool;\r
+\r
+  ///\r
+  ///  Retrieves the location of the System Management System Table (SMST).\r
+  ///\r
   EFI_SMM_GET_SMST_LOCATION   GetSmstLocation;\r
 };\r
 \r
   EFI_SMM_GET_SMST_LOCATION   GetSmstLocation;\r
 };\r
 \r
index 95a6d51bf55b0a94c79201550a2f08cf091dfd76..c17bb4442f13c7e0f2d851a7082a6f939be2c355 100644 (file)
@@ -1,21 +1,19 @@
 /** @file\r
   Provides the parent dispatch service for the power button SMI source generator.\r
 \r
 /** @file\r
   Provides the parent dispatch service for the power button SMI source generator.\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
-\r
-  Module Name:  SmmPowerButtonDispatch.h\r
-\r
   @par Revision Reference:\r
   This Protocol is defined in Framework of EFI SMM Core Interface Spec\r
   Version 0.9.\r
 \r
   @par Revision Reference:\r
   This Protocol is defined in Framework of EFI SMM Core Interface Spec\r
   Version 0.9.\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
+\r
 **/\r
 \r
 #ifndef _EFI_SMM_POWER_BUTTON_DISPATCH_H_\r
 **/\r
 \r
 #ifndef _EFI_SMM_POWER_BUTTON_DISPATCH_H_\r
@@ -56,13 +54,11 @@ typedef struct {
 /**\r
   Dispatch function for a Power Button SMI handler.\r
 \r
 /**\r
   Dispatch function for a Power Button SMI handler.\r
 \r
-  @param  DispatchHandle        Handle of this dispatch function.\r
-  @param  DispatchContext       Pointer to the dispatch function's context.\r
-                                The DispatchContext fields are filled in\r
-                                by the dispatching driver prior to\r
-                                invoking this dispatch function.\r
-\r
-  @return None\r
+  @param[in]  DispatchHandle        Handle of this dispatch function.\r
+  @param[in]  DispatchContext       Pointer to the dispatch function's context.\r
+                                    The DispatchContext fields are filled in\r
+                                    by the dispatching driver prior to\r
+                                    invoking this dispatch function.\r
 \r
 **/\r
 typedef\r
 \r
 **/\r
 typedef\r
@@ -75,22 +71,22 @@ VOID
 /**\r
   Provides the parent dispatch service for a given SMI source generator\r
 \r
 /**\r
   Provides the parent dispatch service for a given SMI source generator\r
 \r
-  @param  This                  Pointer to the EFI_SMM_POWER_BUTTON_DISPATCH_PROTOCOL instance.\r
-  @param  DispatchFunction      Function to install.\r
-  @param  DispatchContext       Pointer to the dispatch function's context.\r
-                                The caller fills this context in before calling\r
-                                the register function to indicate to the register\r
-                                function the Power Button SMI phase for which the dispatch\r
-                                function should be invoked.\r
-  @param  DispatchHandle        Handle generated by the dispatcher to track the function instance.\r
-\r
-  @retval EFI_SUCCESS           The dispatch function has been successfully\r
-                                registered and the SMI source has been enabled.\r
-  @retval EFI_DEVICE_ERROR      The driver was unable to enable the SMI source.\r
-  @retval EFI_OUT_OF_RESOURCES  Not enough memory (system or SMM) to manage this\r
-                                child.\r
-  @retval EFI_INVALID_PARAMETER DispatchContext is invalid. The Power Button SMI\r
-                                phase is not within valid range.\r
+  @param[in]   This                  Pointer to the EFI_SMM_POWER_BUTTON_DISPATCH_PROTOCOL instance.\r
+  @param[in]   DispatchFunction      Function to install.\r
+  @param[in]   DispatchContext       Pointer to the dispatch function's context.\r
+                                     The caller fills this context in before calling\r
+                                     the register function to indicate to the register\r
+                                     function the Power Button SMI phase for which the dispatch\r
+                                     function should be invoked.\r
+  @param[out]  DispatchHandle        Handle generated by the dispatcher to track the function instance.\r
+\r
+  @retval      EFI_SUCCESS           The dispatch function has been successfully\r
+                                     registered and the SMI source has been enabled.\r
+  @retval      EFI_DEVICE_ERROR      The driver was unable to enable the SMI source.\r
+  @retval      EFI_OUT_OF_RESOURCES  Not enough memory (system or SMM) to manage this\r
+                                     child.\r
+  @retval      EFI_INVALID_PARAMETER DispatchContext is invalid. The Power Button SMI\r
+                                     phase is not within valid range.\r
 \r
 **/\r
 typedef\r
 \r
 **/\r
 typedef\r
@@ -105,14 +101,15 @@ EFI_STATUS
 /**\r
   Unregisters a power-button service.\r
 \r
 /**\r
   Unregisters a power-button service.\r
 \r
-  @param  This                  Pointer to the EFI_SMM_POWER_BUTTON_DISPATCH_PROTOCOL instance.\r
-  @param  DispatchHandle        Handle of the service to remove.\r
+  @param[in]  This                  Pointer to the EFI_SMM_POWER_BUTTON_DISPATCH_PROTOCOL instance.\r
+  @param[in]  DispatchHandle        Handle of the service to remove.\r
 \r
 \r
-  @retval EFI_SUCCESS           The dispatch function has been successfully\r
-                                unregistered and the SMI source has been disabled\r
-                                if there are no other registered child dispatch\r
-                                functions for this SMI source.\r
-  @retval EFI_INVALID_PARAMETER Handle is invalid.\r
+  @retval     EFI_SUCCESS           The dispatch function has been successfully\r
+                                    unregistered and the SMI source has been\r
+                                   disabled if there are no other registered\r
+                                   child dispatch functions for this SMI\r
+                                   source.\r
+  @retval     EFI_INVALID_PARAMETER Handle is invalid.\r
 \r
 **/\r
 typedef\r
 \r
 **/\r
 typedef\r
@@ -122,22 +119,20 @@ EFI_STATUS
   IN EFI_HANDLE                                        DispatchHandle\r
   );\r
 \r
   IN EFI_HANDLE                                        DispatchHandle\r
   );\r
 \r
-//\r
-// Interface structure for the SMM Power Button SMI Dispatch Protocol\r
-//\r
 /**\r
   @par Protocol Description:\r
   Provides the parent dispatch service for the SMM power button SMI source generator.\r
 \r
 /**\r
   @par Protocol Description:\r
   Provides the parent dispatch service for the SMM power button SMI source generator.\r
 \r
-  @param Register\r
-  Installs a child service to be dispatched by this protocol.\r
-\r
-  @param UnRegister\r
-  Removes a child service dispatched by this protocol.\r
-\r
 **/\r
 struct _EFI_SMM_POWER_BUTTON_DISPATCH_PROTOCOL {\r
 **/\r
 struct _EFI_SMM_POWER_BUTTON_DISPATCH_PROTOCOL {\r
+  ///\r
+  ///  Installs a child service to be dispatched by this protocol.\r
+  ///\r
   EFI_SMM_POWER_BUTTON_REGISTER   Register;\r
   EFI_SMM_POWER_BUTTON_REGISTER   Register;\r
+\r
+  ///\r
+  ///  Removes a child service dispatched by this protocol.\r
+  ///\r
   EFI_SMM_POWER_BUTTON_UNREGISTER UnRegister;\r
 };\r
 \r
   EFI_SMM_POWER_BUTTON_UNREGISTER UnRegister;\r
 };\r
 \r