]> git.proxmox.com Git - mirror_edk2.git/commitdiff
PrmPkg: Remove the concept of OS services
authorMichael Kubacki <michael.kubacki@microsoft.com>
Tue, 17 Nov 2020 17:37:25 +0000 (09:37 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 5 Apr 2022 00:42:38 +0000 (00:42 +0000)
OS services are no longer supported as of the current PRM design.

1. Removes OS services from PrmSampleHardwareAccessModule
2. Removes the PrmOsServices.h file

Cc: Andrew Fish <afish@apple.com>
Cc: Kang Gao <kang.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Michael Kubacki <michael.kubacki@microsoft.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Liu Yun <yun.y.liu@intel.com>
Cc: Ankit Sinha <ankit.sinha@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Acked-by: Michael D Kinney <michael.d.kinney@intel.com>
Acked-by: Liming Gao <gaoliming@byosoft.com.cn>
Acked-by: Leif Lindholm <quic_llindhol@quicinc.com>
Reviewed-by: Ankit Sinha <ankit.sinha@intel.com>
PrmPkg/Include/PrmModule.h
PrmPkg/Include/PrmOsServices.h [deleted file]
PrmPkg/PrmPkg.dsc
PrmPkg/Samples/PrmSampleHardwareAccessModule/PrmSampleHardwareAccessModule.c
PrmPkg/Samples/PrmSampleHardwareAccessModule/PrmSampleHardwareAccessModule.inf
PrmPkg/Samples/Readme.md

index d7047d8eec58e30eff037d8036ca2f04aa911a42..1369adda1aa7f76e0475b35719e35de91953630b 100644 (file)
@@ -15,7 +15,6 @@
 #include <PrmDataBuffer.h>\r
 #include <PrmExportDescriptor.h>\r
 #include <PrmMmio.h>\r
-#include <PrmOsServices.h>\r
 \r
 /**\r
   Macro that provides a condensed form of a PRM Handler.\r
diff --git a/PrmPkg/Include/PrmOsServices.h b/PrmPkg/Include/PrmOsServices.h
deleted file mode 100644 (file)
index 62dfa00..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/** @file\r
-\r
-  Definitions for the Platform Runtime Mechanism (PRM) OS Services.\r
-\r
-  Note: OS Services have been removed from POR. This file has been reduced to just debug print\r
-        OS Service for use during PRM enabling.\r
-\r
-  Copyright (c) Microsoft Corporation\r
-  SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-**/\r
-\r
-#ifndef PRM_OS_SERVICES_H_\r
-#define PRM_OS_SERVICES_H_\r
-\r
-#include <Uefi.h>\r
-\r
-typedef struct _PRM_OS_SERVICES PRM_OS_SERVICES;\r
-\r
-//\r
-// PRM OS Services function signatures\r
-//\r
-typedef\r
-VOID\r
-(EFIAPI *PRM_OS_SERVICE_DEBUG_PRINT) (\r
-  IN  CONST CHAR8           *String\r
-  );\r
-\r
-#pragma pack(push, 1)\r
-\r
-//\r
-// PRM OS Services table\r
-//\r
-struct _PRM_OS_SERVICES {\r
-    // Structure information\r
-    UINT16                                MajorVersion;\r
-    UINT16                                MinorVersion;\r
-\r
-    // OS Services\r
-    PRM_OS_SERVICE_DEBUG_PRINT            DebugPrint;\r
-};\r
-\r
-#pragma pack(pop)\r
-\r
-#endif\r
index 68768c87f27654df8b2fd026d7203cf74e4b1b26..d10aa3d547ce954cba951c63008ecc51ec24b548 100644 (file)
   # PRM Sample Modules\r
   #\r
   $(PLATFORM_PACKAGE)/Samples/PrmSampleAcpiParameterBufferModule/PrmSampleAcpiParameterBufferModule.inf\r
-  $(PLATFORM_PACKAGE)/Samples/PrmSampleHardwareAccessModule/PrmSampleHardwareAccessModule.inf {\r
-    <LibraryClasses>\r
-      DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
-  }\r
+  $(PLATFORM_PACKAGE)/Samples/PrmSampleHardwareAccessModule/PrmSampleHardwareAccessModule.inf\r
   $(PLATFORM_PACKAGE)/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferModule.inf\r
 \r
   #\r
index 35da1fcf5f17d7a11c1d50cf24d19b57aa7c5768..14d1e56ab88a21a81dcf6275d33bd853ec2dcdca 100644 (file)
@@ -12,7 +12,6 @@
 \r
 #include <Library/BaseLib.h>\r
 #include <Library/MtrrLib.h>\r
-#include <Library/PrintLib.h>\r
 #include <Library/UefiLib.h>\r
 \r
 #include <Register/Intel/ArchitecturalMsr.h>\r
 // {2120cd3c-848b-4d8f-abbb-4b74ce64ac89}\r
 #define MSR_ACCESS_MICROCODE_SIGNATURE_PRM_HANDLER_GUID {0x2120cd3c, 0x848b, 0x4d8f, {0xab, 0xbb, 0x4b, 0x74, 0xce, 0x64, 0xac, 0x89}}\r
 \r
-// {5d28b4e7-3867-4aee-aa09-51fc282c3b22}\r
-#define MSR_PRINT_MICROCODE_SIGNATURE_PRM_HANDLER_GUID {0x5d28b4e7, 0x3867, 0x4aee, {0xaa, 0x09, 0x51, 0xfc, 0x28, 0x2c, 0x3b, 0x22}}\r
-\r
 // {ea0935a7-506b-4159-bbbb-48deeecb6f58}\r
 #define MSR_ACCESS_MTRR_DUMP_PRM_HANDLER_GUID {0xea0935a7, 0x506b, 0x4159, {0xbb, 0xbb, 0x48, 0xde, 0xee, 0xcb, 0x6f, 0x58}}\r
 \r
-// {4b64b702-4d2b-4dfe-ac5a-0b4110a2ca47}\r
-#define MSR_PRINT_MTRR_DUMP_PRM_HANDLER_GUID {0x4b64b702, 0x4d2b, 0x4dfe, {0xac, 0x5a, 0x0b, 0x41, 0x10, 0xa2, 0xca, 0x47}}\r
-\r
 // {1bd1bda9-909a-4614-9699-25ec0c2783f7}\r
 #define MMIO_ACCESS_HPET_PRM_HANDLER_GUID {0x1bd1bda9, 0x909a, 0x4614, {0x96, 0x99, 0x25, 0xec, 0x0c, 0x27, 0x83, 0xf7}}\r
 \r
-// {8a0efdde-78d0-45f0-aea0-c28245c7e1db}\r
-#define MMIO_PRINT_HPET_PRM_HANDLER_GUID {0x8a0efdde, 0x78d0, 0x45f0, {0xae, 0xa0, 0xc2, 0x82, 0x45, 0xc7, 0xe1, 0xdb}}\r
-\r
 //\r
 // BEGIN: MtrrLib internal library globals and function prototypes here for testing\r
 //\r
@@ -133,27 +123,19 @@ MtrrLibApplyVariableMtrrs (
 /**\r
   Accesses MTRR values including architectural and variable MTRRs.\r
 \r
-  If the optional OsServiceDebugPrint function pointer is provided that function is\r
-  used to print the MTRR settings.\r
-\r
-  @param[in]  OsServiceDebugPrint   A pointer to an OS-provided debug print function.\r
-\r
 **/\r
 VOID\r
 EFIAPI\r
 AccessAllMtrrs (\r
-  IN PRM_OS_SERVICE_DEBUG_PRINT   OsServiceDebugPrint   OPTIONAL\r
+  VOID\r
   )\r
 {\r
   MTRR_SETTINGS                   LocalMtrrs;\r
   MTRR_SETTINGS                   *Mtrrs;\r
-  UINTN                           Index;\r
   UINTN                           RangeCount;\r
   UINT64                          MtrrValidBitsMask;\r
   UINT64                          MtrrValidAddressMask;\r
   UINT32                          VariableMtrrCount;\r
-  BOOLEAN                         ContainVariableMtrr;\r
-  CHAR8                           DebugMessage[256];\r
 \r
   MTRR_MEMORY_RANGE Ranges[\r
     MTRR_NUMBER_OF_FIXED_MTRR * sizeof (UINT64) + 2 * ARRAY_SIZE (Mtrrs->Variables.Mtrr) + 1\r
@@ -169,66 +151,6 @@ AccessAllMtrrs (
   MtrrGetAllMtrrs (&LocalMtrrs);\r
   Mtrrs = &LocalMtrrs;\r
 \r
-  //\r
-  // Dump RAW MTRR contents\r
-  //\r
-  if (OsServiceDebugPrint != NULL) {\r
-    OsServiceDebugPrint ("  MTRR Settings:\n");\r
-    OsServiceDebugPrint ("  =============\n");\r
-\r
-    AsciiSPrint (\r
-      &DebugMessage[0],\r
-      ARRAY_SIZE (DebugMessage),\r
-      "  MTRR Default Type: %016lx\n",\r
-      Mtrrs->MtrrDefType\r
-      );\r
-    OsServiceDebugPrint (&DebugMessage[0]);\r
-  }\r
-\r
-  if (OsServiceDebugPrint != NULL) {\r
-    for (Index = 0; Index < MTRR_NUMBER_OF_FIXED_MTRR; Index++) {\r
-        AsciiSPrint (\r
-          &DebugMessage[0],\r
-          ARRAY_SIZE (DebugMessage),\r
-          "  Fixed MTRR[%02d]   : %016lx\n",\r
-          Index,\r
-          Mtrrs->Fixed.Mtrr[Index]\r
-          );\r
-        OsServiceDebugPrint (&DebugMessage[0]);\r
-      }\r
-\r
-    ContainVariableMtrr = FALSE;\r
-    for (Index = 0; Index < VariableMtrrCount; Index++) {\r
-      if ((Mtrrs->Variables.Mtrr[Index].Mask & BIT11) == 0) {\r
-        //\r
-        // If mask is not valid, then do not display range\r
-        //\r
-        continue;\r
-      }\r
-      ContainVariableMtrr = TRUE;\r
-      AsciiSPrint (\r
-        &DebugMessage[0],\r
-        ARRAY_SIZE (DebugMessage),\r
-        "  Variable MTRR[%02d]: Base=%016lx Mask=%016lx\n",\r
-        Index,\r
-        Mtrrs->Variables.Mtrr[Index].Base,\r
-        Mtrrs->Variables.Mtrr[Index].Mask\r
-        );\r
-      OsServiceDebugPrint (&DebugMessage[0]);\r
-    }\r
-    if (!ContainVariableMtrr) {\r
-      OsServiceDebugPrint ("  Variable MTRR    : None.\n");\r
-    }\r
-    OsServiceDebugPrint ("\n");\r
-  }\r
-\r
-  //\r
-  // Dump MTRR setting in ranges\r
-  //\r
-  if (OsServiceDebugPrint != NULL) {\r
-    OsServiceDebugPrint ("  Memory Ranges:\n");\r
-    OsServiceDebugPrint ("  ====================================\n");\r
-  }\r
   MtrrLibInitializeMtrrMask (&MtrrValidBitsMask, &MtrrValidAddressMask);\r
   Ranges[0].BaseAddress = 0;\r
   Ranges[0].Length      = MtrrValidBitsMask + 1;\r
@@ -245,19 +167,6 @@ AccessAllMtrrs (
     );\r
 \r
   MtrrLibApplyFixedMtrrs (&Mtrrs->Fixed, Ranges, ARRAY_SIZE (Ranges), &RangeCount);\r
-\r
-  if (OsServiceDebugPrint != NULL) {\r
-    for (Index = 0; Index < RangeCount; Index++) {\r
-      AsciiSPrint (\r
-        &DebugMessage[0],\r
-        ARRAY_SIZE (DebugMessage),\r
-        "  %a:%016lx-%016lx\n",\r
-        mMtrrMemoryCacheTypeShortName[Ranges[Index].Type],\r
-        Ranges[Index].BaseAddress, Ranges[Index].BaseAddress + Ranges[Index].Length - 1\r
-        );\r
-      OsServiceDebugPrint (&DebugMessage[0]);\r
-    }\r
-  }\r
 }\r
 \r
 /**\r
@@ -300,104 +209,15 @@ HpetRead (
 /**\r
   Accesses HPET configuration information.\r
 \r
-  If the optional OsServiceDebugPrint function pointer is provided that function is\r
-  used to print HPET settings.\r
-\r
-  @param[in]  OsServiceDebugPrint   A pointer to an OS-provided debug print function\r
-\r
 **/\r
 VOID\r
 EFIAPI\r
 AccessHpetConfiguration (\r
-  IN PRM_OS_SERVICE_DEBUG_PRINT           OsServiceDebugPrint\r
+  VOID\r
   )\r
 {\r
-  UINTN                                   TimerIndex;\r
-  HPET_GENERAL_CAPABILITIES_ID_REGISTER   HpetGeneralCapabilities;\r
-  HPET_GENERAL_CONFIGURATION_REGISTER     HpetGeneralConfiguration;\r
-  CHAR8                                   DebugMessage[256];\r
-\r
-  HpetGeneralCapabilities.Uint64  = HpetRead (HPET_GENERAL_CAPABILITIES_ID_OFFSET);\r
-  HpetGeneralConfiguration.Uint64 = HpetRead (HPET_GENERAL_CONFIGURATION_OFFSET);\r
-\r
-  if (OsServiceDebugPrint != NULL) {\r
-    AsciiSPrint (\r
-      &DebugMessage[0],\r
-      ARRAY_SIZE (DebugMessage),\r
-      "  HPET Base Address = 0x%08x\n",\r
-      HPET_BASE_ADDRESS\r
-      );\r
-    OsServiceDebugPrint (&DebugMessage[0]);\r
-\r
-    AsciiSPrint (\r
-      &DebugMessage[0],\r
-      ARRAY_SIZE (DebugMessage),\r
-      "  HPET_GENERAL_CAPABILITIES_ID  = 0x%016lx\n",\r
-      HpetGeneralCapabilities\r
-      );\r
-    OsServiceDebugPrint (&DebugMessage[0]);\r
-\r
-    AsciiSPrint (\r
-      &DebugMessage[0],\r
-      ARRAY_SIZE (DebugMessage),\r
-      "  HPET_GENERAL_CONFIGURATION    = 0x%016lx\n",\r
-      HpetGeneralConfiguration.Uint64\r
-      );\r
-    OsServiceDebugPrint (&DebugMessage[0]);\r
-\r
-    AsciiSPrint (\r
-      &DebugMessage[0],\r
-      ARRAY_SIZE (DebugMessage),\r
-      "  HPET_GENERAL_INTERRUPT_STATUS = 0x%016lx\n",\r
-      HpetRead (HPET_GENERAL_INTERRUPT_STATUS_OFFSET)\r
-      );\r
-    OsServiceDebugPrint (&DebugMessage[0]);\r
-\r
-    AsciiSPrint (\r
-      &DebugMessage[0],\r
-      ARRAY_SIZE (DebugMessage),\r
-      "  HPET_MAIN_COUNTER             = 0x%016lx\n",\r
-      HpetRead (HPET_MAIN_COUNTER_OFFSET)\r
-      );\r
-    OsServiceDebugPrint (&DebugMessage[0]);\r
-\r
-    AsciiSPrint (\r
-      &DebugMessage[0],\r
-      ARRAY_SIZE (DebugMessage),\r
-      "  HPET Main Counter Period      = %d (fs)\n",\r
-      HpetGeneralCapabilities.Bits.CounterClockPeriod\r
-      );\r
-    OsServiceDebugPrint (&DebugMessage[0]);\r
-\r
-    for (TimerIndex = 0; TimerIndex <= HpetGeneralCapabilities.Bits.NumberOfTimers; TimerIndex++) {\r
-      AsciiSPrint (\r
-        &DebugMessage[0],\r
-        ARRAY_SIZE (DebugMessage),\r
-        "  HPET_TIMER%d_CONFIGURATION     = 0x%016lx\n",\r
-        TimerIndex,\r
-        HpetRead (HPET_TIMER_CONFIGURATION_OFFSET + TimerIndex * HPET_TIMER_STRIDE)\r
-        );\r
-      OsServiceDebugPrint (&DebugMessage[0]);\r
-\r
-      AsciiSPrint (\r
-        &DebugMessage[0],\r
-        ARRAY_SIZE (DebugMessage),\r
-        "  HPET_TIMER%d_COMPARATOR        = 0x%016lx\n",\r
-        TimerIndex,\r
-        HpetRead (HPET_TIMER_COMPARATOR_OFFSET    + TimerIndex * HPET_TIMER_STRIDE)\r
-        );\r
-      OsServiceDebugPrint (&DebugMessage[0]);\r
-\r
-      AsciiSPrint (\r
-        &DebugMessage[0],\r
-        ARRAY_SIZE (DebugMessage),\r
-        "  HPET_TIMER%d_MSI_ROUTE         = 0x%016lx\n",\r
-        TimerIndex,\r
-        HpetRead (HPET_TIMER_MSI_ROUTE_OFFSET     + TimerIndex * HPET_TIMER_STRIDE)\r
-        );\r
-      OsServiceDebugPrint (&DebugMessage[0]);\r
-    }\r
-  }\r
+  HpetRead (HPET_GENERAL_CAPABILITIES_ID_OFFSET);\r
+  HpetRead (HPET_GENERAL_CONFIGURATION_OFFSET);\r
 }\r
 \r
 /**\r
@@ -419,34 +239,6 @@ GetMicrocodeSignature (
   return BiosSignIdMsr.Bits.MicrocodeUpdateSignature;\r
 }\r
 \r
-/**\r
-  Prints the microcode update signature as read from architectural MSR 0x8B.\r
-\r
-**/\r
-VOID\r
-EFIAPI\r
-PrintMicrocodeUpdateSignature (\r
-  IN PRM_OS_SERVICE_DEBUG_PRINT   OsServiceDebugPrint\r
-  )\r
-{\r
-  UINT32                          MicrocodeSignature;\r
-  CHAR8                           DebugMessage[256];\r
-\r
-  if (OsServiceDebugPrint == NULL) {\r
-    return;\r
-  }\r
-\r
-  MicrocodeSignature = GetMicrocodeSignature ();\r
-\r
-  AsciiSPrint (\r
-    &DebugMessage[0],\r
-    ARRAY_SIZE (DebugMessage),\r
-    "  Signature read = 0x%x.\n",\r
-    MicrocodeSignature\r
-    );\r
-  OsServiceDebugPrint (&DebugMessage[0]);\r
-}\r
-\r
 /**\r
   A sample Platform Runtime Mechanism (PRM) handler.\r
 \r
@@ -473,40 +265,6 @@ PRM_HANDLER_EXPORT (MsrAccessMicrocodeSignaturePrmHandler)
   return EFI_SUCCESS;\r
 }\r
 \r
-/**\r
-  A sample Platform Runtime Mechanism (PRM) handler.\r
-\r
-  This sample handler attempts to read the microcode update signature MSR and print the result to a debug message.\r
-\r
-  @param[in]  ParameterBuffer     A pointer to the PRM handler parameter buffer\r
-  @param[in]  ContextBUffer       A pointer to the PRM handler context buffer\r
-\r
-  @retval EFI_STATUS              The PRM handler executed successfully.\r
-  @retval Others                  An error occurred in the PRM handler.\r
-\r
-**/\r
-PRM_HANDLER_EXPORT (MsrPrintMicrocodeSignaturePrmHandler)\r
-{\r
-  PRM_OS_SERVICE_DEBUG_PRINT      OsServiceDebugPrint;\r
-\r
-  if (ParameterBuffer == NULL) {\r
-    return EFI_INVALID_PARAMETER;\r
-  }\r
-\r
-  // The OS debug print service is assumed to be at the beginning of ParameterBuffer\r
-  OsServiceDebugPrint = *((PRM_OS_SERVICE_DEBUG_PRINT *) ParameterBuffer);\r
-  if (OsServiceDebugPrint == NULL) {\r
-    return EFI_INVALID_PARAMETER;\r
-  }\r
-\r
-  OsServiceDebugPrint ("Hardware Access MsrAccessMicrocodeSignaturePrmHandler entry.\n");\r
-  OsServiceDebugPrint ("  Attempting to read the Microcode Update Signature MSR (0x8B)...\n");\r
-  PrintMicrocodeUpdateSignature (OsServiceDebugPrint);\r
-  OsServiceDebugPrint ("Hardware Access MsrAccessMicrocodeSignaturePrmHandler exit.\n");\r
-\r
-  return EFI_SUCCESS;\r
-}\r
-\r
 /**\r
   A sample Platform Runtime Mechanism (PRM) handler.\r
 \r
@@ -521,46 +279,11 @@ PRM_HANDLER_EXPORT (MsrPrintMicrocodeSignaturePrmHandler)
 **/\r
 PRM_HANDLER_EXPORT (MsrAccessMtrrDumpPrmHandler)\r
 {\r
-  AccessAllMtrrs (NULL);\r
-\r
-  return EFI_SUCCESS;\r
-}\r
-\r
-/**\r
-  A sample Platform Runtime Mechanism (PRM) handler.\r
-\r
-  This sample handler attempts to read the current MTRR settings and print the result to a debug message.\r
-\r
-  @param[in]  ParameterBuffer     A pointer to the PRM handler parameter buffer\r
-  @param[in]  ContextBUffer       A pointer to the PRM handler context buffer\r
-\r
-  @retval EFI_STATUS              The PRM handler executed successfully.\r
-  @retval Others                  An error occurred in the PRM handler.\r
-\r
-**/\r
-PRM_HANDLER_EXPORT (MsrPrintMtrrDumpPrmHandler)\r
-{\r
-  PRM_OS_SERVICE_DEBUG_PRINT      OsServiceDebugPrint;\r
-\r
-  if (ParameterBuffer == NULL) {\r
-    return EFI_INVALID_PARAMETER;\r
-  }\r
-\r
-  // In the POC, the OS debug print service is assumed to be at the beginning of ParameterBuffer\r
-  OsServiceDebugPrint = *((PRM_OS_SERVICE_DEBUG_PRINT *) ParameterBuffer);\r
-  if (OsServiceDebugPrint == NULL) {\r
-    return EFI_INVALID_PARAMETER;\r
-  }\r
-\r
-  OsServiceDebugPrint ("Hardware Access MsrAccessMtrrDumpPrmHandler entry.\n");\r
-  OsServiceDebugPrint ("  Attempting to dump MTRR values:\n");\r
-  AccessAllMtrrs (OsServiceDebugPrint);\r
-  OsServiceDebugPrint ("Hardware Access MsrAccessMtrrDumpPrmHandler exit.\n");\r
+  AccessAllMtrrs ();\r
 \r
   return EFI_SUCCESS;\r
 }\r
 \r
-\r
 /**\r
   A sample Platform Runtime Mechanism (PRM) handler.\r
 \r
@@ -575,41 +298,7 @@ PRM_HANDLER_EXPORT (MsrPrintMtrrDumpPrmHandler)
 **/\r
 PRM_HANDLER_EXPORT (MmioAccessHpetPrmHandler)\r
 {\r
-  AccessHpetConfiguration (NULL);\r
-\r
-  return EFI_SUCCESS;\r
-}\r
-\r
-/**\r
-  A sample Platform Runtime Mechanism (PRM) handler.\r
-\r
-  This sample handler attempts to read from a HPET MMIO resource and print the result to a debug message.\r
-\r
-  @param[in]  ParameterBuffer     A pointer to the PRM handler parameter buffer\r
-  @param[in]  ContextBUffer       A pointer to the PRM handler context buffer\r
-\r
-  @retval EFI_STATUS              The PRM handler executed successfully.\r
-  @retval Others                  An error occurred in the PRM handler.\r
-\r
-**/\r
-PRM_HANDLER_EXPORT (MmioPrintHpetPrmHandler)\r
-{\r
-  PRM_OS_SERVICE_DEBUG_PRINT      OsServiceDebugPrint;\r
-\r
-  if (ParameterBuffer == NULL) {\r
-    return EFI_INVALID_PARAMETER;\r
-  }\r
-\r
-  // An OS debug print service is assumed to be at the beginning of ParameterBuffer\r
-  OsServiceDebugPrint = *((PRM_OS_SERVICE_DEBUG_PRINT *) ParameterBuffer);\r
-  if (OsServiceDebugPrint == NULL) {\r
-    return EFI_INVALID_PARAMETER;\r
-  }\r
-\r
-  OsServiceDebugPrint ("Hardware Access MmioPrintHpetPrmHandler entry.\n");\r
-  OsServiceDebugPrint ("  Attempting to read HPET configuration...\n");\r
-  AccessHpetConfiguration (OsServiceDebugPrint);\r
-  OsServiceDebugPrint ("Hardware Access MmioPrintHpetPrmHandler exit.\n");\r
+  AccessHpetConfiguration ();\r
 \r
   return EFI_SUCCESS;\r
 }\r
@@ -620,10 +309,7 @@ PRM_HANDLER_EXPORT (MmioPrintHpetPrmHandler)
 PRM_MODULE_EXPORT (\r
   PRM_HANDLER_EXPORT_ENTRY (MSR_ACCESS_MICROCODE_SIGNATURE_PRM_HANDLER_GUID, MsrAccessMicrocodeSignaturePrmHandler),\r
   PRM_HANDLER_EXPORT_ENTRY (MSR_ACCESS_MTRR_DUMP_PRM_HANDLER_GUID, MsrAccessMtrrDumpPrmHandler),\r
-  PRM_HANDLER_EXPORT_ENTRY (MMIO_ACCESS_HPET_PRM_HANDLER_GUID, MmioAccessHpetPrmHandler),\r
-  PRM_HANDLER_EXPORT_ENTRY (MSR_PRINT_MICROCODE_SIGNATURE_PRM_HANDLER_GUID, MsrPrintMicrocodeSignaturePrmHandler),\r
-  PRM_HANDLER_EXPORT_ENTRY (MSR_PRINT_MTRR_DUMP_PRM_HANDLER_GUID, MsrPrintMtrrDumpPrmHandler),\r
-  PRM_HANDLER_EXPORT_ENTRY (MMIO_PRINT_HPET_PRM_HANDLER_GUID, MmioPrintHpetPrmHandler)\r
+  PRM_HANDLER_EXPORT_ENTRY (MMIO_ACCESS_HPET_PRM_HANDLER_GUID, MmioAccessHpetPrmHandler)\r
   );\r
 \r
 /**\r
index 369d1eb1e86d5c55e042980336edf16bc5de8052..46d4a88185a9c01b8887c9488ddd3d0c8c9d4ba5 100644 (file)
@@ -32,7 +32,6 @@
 [LibraryClasses]\r
   BaseLib\r
   MtrrLib\r
-  PrintLib\r
   UefiDriverEntryPoint\r
   UefiLib\r
 \r
index d9f06f8b87de02f7942c830402e0ed89cdba4357..590b81c349b4b7eb765c1e3d2108ed33bed3c62e 100644 (file)
@@ -128,65 +128,3 @@ and interact with their PRM modules.
 * Runtime MMIO Range(s) Required: Yes\r
   * Physical Base Address: 0xFED00000\r
   * Length: 0x1000\r
-\r
-#### Handler: MSR Print Microcode Signature PRM Handler\r
-* Name: `MsrPrintMicrocodeSignaturePrmHandler`\r
-* GUID: `5d28b4e7-3867-4aee-aa09-51fc282c3b22`\r
-* Actions:\r
-  * Use the provided print function to print the loaded microcode signature at MSR 0x8B.\r
-\r
-* Parameter Buffer Required: Yes\r
-* Parameter Buffer Contents:\r
-  ```c\r
-  typedef struct {\r
-\r
-    PRM_OS_SERVICE_DEBUG_PRINT *\r
-\r
-  } SAMPLE_OSDEBUGPRINT_PARAMETER_BUFFER;\r
-  ```\r
-\r
-* Context Buffer Required: No\r
-\r
-* Runtime MMIO Range(s) Required: No\r
-\r
-#### Handler: MSR Print MTRR Dump PRM Handler\r
-* Name: `MsrPrintMtrrDumpPrmHandler`\r
-* GUID: `4b64b702-4d2b-4dfe-ac5a-0b4110a2ca47`\r
-* Actions:\r
-  * Use the provided print function to print the fixed and variable MTRR values using MSRs.\r
-\r
-* Parameter Buffer Required: Yes\r
-* Parameter Buffer Contents:\r
-  ```c\r
-  typedef struct {\r
-\r
-    PRM_OS_SERVICE_DEBUG_PRINT *\r
-\r
-  } SAMPLE_OSDEBUGPRINT_PARAMETER_BUFFER;\r
-  ```\r
-\r
-* Context Buffer Required: No\r
-\r
-* Runtime MMIO Range(s) Required: No\r
-\r
-#### Handler: HPET MMIO Print PRM Handler\r
-* Name: `MmioPrintHpetPrmHandler`\r
-* GUID: `8a0efdde-78d0-45f0-aea0-c28245c7e1db`\r
-* Actions:\r
-  * Use the provided print function to print some HPET registers using MMIO at 0xFED00000.\r
-\r
-* Parameter Buffer Required: Yes\r
-* Parameter Buffer Contents:\r
-  ```c\r
-  typedef struct {\r
-\r
-    PRM_OS_SERVICE_DEBUG_PRINT *\r
-\r
-  } SAMPLE_OSDEBUGPRINT_PARAMETER_BUFFER;\r
-  ```\r
-\r
-* Context Buffer Required: No\r
-\r
-* Runtime MMIO Range(s) Required: Yes\r
-  * Physical Base Address: 0xFED00000\r
-  * Length: 0x1000\r