]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Compatibility/SmmBaseHelper/SmmBaseHelper.c
Update code to match EDKII coding style.
[mirror_edk2.git] / EdkCompatibilityPkg / Compatibility / SmmBaseHelper / SmmBaseHelper.c
index 2a4437b13450c028ea766db1e4b519e1f4b3ed44..3d344c7bcb6669d9581df2e8ef4f6cb1f7a9b15c 100644 (file)
@@ -406,9 +406,9 @@ GetCallbackInfo (
   @param[in]     DispatchHandle  The unique handle assigned to this handler by SmiHandlerRegister().\r
   @param[in]     Context         Points to an optional handler context which was specified when the\r
                                  handler was registered.\r
-  @param[in,out] CommBuffer      A pointer to a collection of data in memory that will\r
+  @param[in, out] CommBuffer      A pointer to a collection of data in memory that will\r
                                  be conveyed from a non-SMM environment into an SMM environment.\r
-  @param[in,out] CommBufferSize  The size of the CommBuffer.\r
+  @param[in, out] CommBufferSize  The size of the CommBuffer.\r
 \r
   @retval EFI_SUCCESS                         The interrupt was handled and quiesced. No other handlers \r
                                               should still be called.\r
@@ -651,11 +651,11 @@ HelperCommunicate (
   This SMI handler provides services for the SMM Base Thunk driver.\r
 \r
   @param[in]     DispatchHandle  The unique handle assigned to this handler by SmiHandlerRegister().\r
-  @param[in]     Context         Points to an optional handler context which was specified when the\r
+  @param[in]     RegisterContext Points to an optional handler context which was specified when the\r
                                  handler was registered.\r
-  @param[in,out] CommBuffer      A pointer to a collection of data in memory that will\r
+  @param[in, out] CommBuffer      A pointer to a collection of data in memory that will\r
                                  be conveyed from a non-SMM environment into an SMM environment.\r
-  @param[in,out] CommBufferSize  The size of the CommBuffer.\r
+  @param[in, out] CommBufferSize  The size of the CommBuffer.\r
 \r
   @retval EFI_SUCCESS                         The interrupt was handled and quiesced. No other handlers \r
                                               should still be called.\r
@@ -682,22 +682,22 @@ SmmHandlerEntry (
   FunctionData = (SMMBASE_FUNCTION_DATA *)CommBuffer;\r
 \r
   switch (FunctionData->Function) {\r
-    case SMMBASE_REGISTER:\r
+    case SmmBaseFunctionRegister:\r
       Register (FunctionData);\r
       break;\r
-    case SMMBASE_UNREGISTER:\r
+    case SmmBaseFunctionUnregister:\r
       UnRegister (FunctionData);\r
       break;\r
-    case SMMBASE_REGISTER_CALLBACK:\r
+    case SmmBaseFunctionRegisterCallback:\r
       RegisterCallback (FunctionData);\r
       break;\r
-    case SMMBASE_ALLOCATE_POOL:\r
+    case SmmBaseFunctionAllocatePool:\r
       HelperAllocatePool (FunctionData);\r
       break;\r
-    case SMMBASE_FREE_POOL:\r
+    case SmmBaseFunctionFreePool:\r
       HelperFreePool (FunctionData);\r
       break;\r
-    case SMMBASE_COMMUNICATE:\r
+    case SmmBaseFunctionCommunicate:\r
       HelperCommunicate (FunctionData);\r
       break;\r
     default:\r
@@ -725,9 +725,10 @@ SmmBaseHelperMain (
 {\r
   EFI_STATUS  Status;\r
   EFI_MP_SERVICES_PROTOCOL   *MpServices;\r
-  EFI_HANDLE  Handle = NULL;\r
+  EFI_HANDLE                 Handle;\r
   UINTN                      NumberOfEnabledProcessors;\r
-\r
+  \r
+  Handle = NULL;\r
   ///\r
   /// Locate SMM CPU Protocol which is used later to retrieve/update CPU Save States\r
   ///\r