]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Nt32Pkg/MiscSubClassPlatformDxe/MiscSystemManufacturerFunction.c
change the name of macro or data structure to follow DataHubSubclass/MemSubclass...
[mirror_edk2.git] / Nt32Pkg / MiscSubClassPlatformDxe / MiscSystemManufacturerFunction.c
index aa428f178556dabacfcf6966f25ba605882fc4c6..39c12cf482cd3932aa7b28bdde9a62c49044a6b6 100644 (file)
@@ -1,4 +1,4 @@
-/*++\r
+/**@file\r
 \r
 Copyright (c) 2006, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
 \r
 Copyright (c) 2006, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
@@ -18,15 +18,12 @@ Abstract:
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
 \r
---*/\r
-\r
-//\r
-// Include common header file for this module.\r
-//\r
-#include "CommonHeader.h"\r
+**/\r
 \r
 #include "MiscSubclassDriver.h"\r
 \r
 \r
 #include "MiscSubclassDriver.h"\r
 \r
+BOOLEAN  mDone = FALSE;\r
+\r
 //\r
 //\r
 //\r
 //\r
 //\r
 //\r
@@ -74,8 +71,6 @@ Returns:
       LogRecordData was NULL.\r
 --*/\r
 {\r
       LogRecordData was NULL.\r
 --*/\r
 {\r
-  STATIC BOOLEAN  Done = FALSE;\r
-\r
   //\r
   // First check for invalid parameters.\r
   //\r
   //\r
   // First check for invalid parameters.\r
   //\r
@@ -91,7 +86,7 @@ Returns:
   //\r
   // Is this the first time through this function?\r
   //\r
   //\r
   // Is this the first time through this function?\r
   //\r
-  if (!Done) {\r
+  if (!mDone) {\r
     //\r
     // Yes, this is the first time.  Inspect/Change the contents of the\r
     // RecordData structure.\r
     //\r
     // Yes, this is the first time.  Inspect/Change the contents of the\r
     // RecordData structure.\r
@@ -105,19 +100,19 @@ Returns:
     //\r
     // ((EFI_MISC_SYSTEM_MANUFACTURER_DATA *)RecordData)->SystemWakeupType = %%TBD\r
     //\r
     //\r
     // ((EFI_MISC_SYSTEM_MANUFACTURER_DATA *)RecordData)->SystemWakeupType = %%TBD\r
     //\r
-    // Set Done flag to TRUE for next pass through this function.\r
+    // Set mDone flag to TRUE for next pass through this function.\r
     // Set *LogRecordData to TRUE so data will get logged to Data Hub.\r
     //\r
     // Set *LogRecordData to TRUE so data will get logged to Data Hub.\r
     //\r
-    Done            = TRUE;\r
+    mDone            = TRUE;\r
     *LogRecordData  = TRUE;\r
   } else {\r
     //\r
     *LogRecordData  = TRUE;\r
   } else {\r
     //\r
-    // No, this is the second time.  Reset the state of the Done flag\r
+    // No, this is the second time.  Reset the state of the mDone flag\r
     // to FALSE and tell the data logger that there is no more data\r
     // to be logged for this record type.  If any memory allocations\r
     // were made by earlier passes, they must be released now.\r
     //\r
     // to FALSE and tell the data logger that there is no more data\r
     // to be logged for this record type.  If any memory allocations\r
     // were made by earlier passes, they must be released now.\r
     //\r
-    Done            = FALSE;\r
+    mDone            = FALSE;\r
     *LogRecordData  = FALSE;\r
   }\r
 \r
     *LogRecordData  = FALSE;\r
   }\r
 \r