]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/WatchDogTimerDxe/WatchDogTimer.c
Add MonotonicCounter driver, which produces MonotonicCounter arch protocols
[mirror_edk2.git] / MdeModulePkg / Universal / WatchDogTimerDxe / WatchDogTimer.c
index ec43aec283aed9546e4b91e8669c6beaf1cde521..76289087bc2c5f403e186be26fc45aefe6d7c5a2 100644 (file)
@@ -21,24 +21,6 @@ Revision History
 \r
 --*/\r
 \r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <PiDxe.h>\r
-#include <FrameworkDxe.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/DebugLib.h>\r
-#include <Library/UefiDriverEntryPoint.h>\r
-#include <Library/ReportStatusCodeLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
-#include <Library/UefiRuntimeServicesTableLib.h>\r
-#include <Protocol/WatchDogTimer.h>\r
-\r
 #include "WatchDogTimer.h"\r
 \r
 //\r
@@ -103,13 +85,7 @@ WatchdogTimerDriverExpires (
 \r
 --*/\r
 {\r
-  //\r
-  // Report error code before exiting\r
-  //\r
-  REPORT_STATUS_CODE (\r
-        EFI_ERROR_CODE | EFI_ERROR_MINOR,\r
-        (EFI_COMPUTING_UNIT_HOST_PROCESSOR | EFI_CU_HP_EC_TIMER_EXPIRED)\r
-        );\r
+  REPORT_STATUS_CODE (EFI_ERROR_CODE | EFI_ERROR_MINOR, PcdGet32 (PcdStatusCodeValueEfiWatchDogTimerExpired));\r
 \r
   //\r
   // If a notification function has been registered, then call it\r
@@ -123,6 +99,7 @@ WatchdogTimerDriverExpires (
   gRT->ResetSystem (EfiResetCold, EFI_TIMEOUT, 0, NULL);\r
 }\r
 \r
+\r
 EFI_STATUS\r
 EFIAPI\r
 WatchdogTimerDriverRegisterHandler (\r
@@ -288,10 +265,6 @@ Returns:
 {\r
   EFI_STATUS  Status;\r
 \r
-  REPORT_STATUS_CODE (\r
-        EFI_PROGRESS_CODE,\r
-        (EFI_COMPUTING_UNIT_HOST_PROCESSOR | EFI_SW_PC_INIT_BEGIN)\r
-        );\r
   //\r
   // Make sure the Watchdog Timer Architectural Protocol is not already installed in the system\r
   //\r
@@ -320,10 +293,5 @@ Returns:
                   );\r
   ASSERT_EFI_ERROR (Status);\r
 \r
-  REPORT_STATUS_CODE (\r
-        EFI_PROGRESS_CODE,\r
-        (EFI_COMPUTING_UNIT_HOST_PROCESSOR | EFI_SW_PC_INIT_END)\r
-        );\r
-\r
   return Status;\r
 }\r