]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiRuntimeLib/RuntimeService.c
Fix several minor coding style issues.
[mirror_edk2.git] / MdePkg / Library / UefiRuntimeLib / RuntimeService.c
index bdd2367479a473eb4a36876e7504aa28731751da..43bb95645ad0e098edf0534e758d8f962a6c3782 100644 (file)
@@ -33,7 +33,7 @@
   Calling this interface with ResetType of EfiResetShutdown causes the system to enter a power state equivalent to the\r
   ACPI G2/S5 or G3 states. If the system does not support this reset type, then when the system is rebooted, it should\r
   exhibit the EfiResetCold attributes.\r
-  The platform may optionally log the parmeters from any non-normal reset that occurs.\r
+  The platform may optionally log the parameters from any non-normal reset that occurs.\r
   The ResetSystem() function does not return.\r
 \r
   @param  ResetType   The type of reset to perform.\r
@@ -58,7 +58,7 @@ EfiResetSystem (
   IN VOID                         *ResetData OPTIONAL\r
   )\r
 {\r
-  mRT->ResetSystem (ResetType, ResetStatus, DataSize, ResetData);\r
+  gInternalRT->ResetSystem (ResetType, ResetStatus, DataSize, ResetData);\r
 }\r
 \r
 \r
@@ -87,10 +87,10 @@ EFI_STATUS
 EFIAPI\r
 EfiGetTime (\r
   OUT EFI_TIME                    *Time,\r
-  OUT EFI_TIME_CAPABILITIES       *Capabilities   OPTIONAL\r
+  OUT EFI_TIME_CAPABILITIES       *Capabilities  OPTIONAL\r
   )\r
 {\r
-  return mRT->GetTime (Time, Capabilities);\r
+  return gInternalRT->GetTime (Time, Capabilities);\r
 }\r
 \r
 \r
@@ -122,7 +122,7 @@ EfiSetTime (
   IN EFI_TIME                   *Time\r
   )\r
 {\r
-  return mRT->SetTime (Time);\r
+  return gInternalRT->SetTime (Time);\r
 }\r
 \r
 \r
@@ -155,7 +155,7 @@ EfiGetWakeupTime (
   OUT EFI_TIME                    *Time\r
   )\r
 {\r
-  return mRT->GetWakeupTime (Enabled, Pending, Time);\r
+  return gInternalRT->GetWakeupTime (Enabled, Pending, Time);\r
 }\r
 \r
 \r
@@ -186,10 +186,10 @@ EFI_STATUS
 EFIAPI\r
 EfiSetWakeupTime (\r
   IN BOOLEAN                      Enable,\r
-  IN EFI_TIME                     *Time  OPTIONAL\r
+  IN EFI_TIME                     *Time   OPTIONAL\r
   )\r
 {\r
-  return mRT->SetWakeupTime (Enable, Time);\r
+  return gInternalRT->SetWakeupTime (Enable, Time);\r
 }\r
 \r
 \r
@@ -208,7 +208,7 @@ EfiSetWakeupTime (
   @param  VendorGuid   Unify identifier for vendor.\r
   @param  Attributes   Point to memory location to return the attributes of variable. If the point\r
                        is NULL, the parameter would be ignored.\r
-  @param  DataSize     As input, point to the maxinum size of return Data-Buffer.\r
+  @param  DataSize     As input, point to the maximum size of return Data-Buffer.\r
                        As output, point to the actual size of the returned Data-Buffer.\r
   @param  Data         Point to return Data-Buffer.\r
 \r
@@ -226,14 +226,14 @@ EfiSetWakeupTime (
 EFI_STATUS\r
 EFIAPI\r
 EfiGetVariable (\r
-  IN CHAR16                       *VariableName,\r
-  IN EFI_GUID                     * VendorGuid,\r
-  OUT UINT32                      *Attributes OPTIONAL,\r
-  IN OUT UINTN                    *DataSize,\r
-  OUT VOID                        *Data\r
+  IN      CHAR16                   *VariableName,\r
+  IN      EFI_GUID                 *VendorGuid,\r
+  OUT     UINT32                   *Attributes OPTIONAL,\r
+  IN OUT  UINTN                    *DataSize,\r
+  OUT     VOID                     *Data\r
   )\r
 {\r
-  return mRT->GetVariable (VariableName, VendorGuid, Attributes, DataSize, Data);\r
+  return gInternalRT->GetVariable (VariableName, VendorGuid, Attributes, DataSize, Data);\r
 }\r
 \r
 \r
@@ -246,8 +246,8 @@ EfiGetVariable (
   variable name data. When the entire variable list has been returned, the error EFI_NOT_FOUND\r
   is returned.\r
 \r
-  @param  VariableNameSize As input, point to maxinum size of variable name.\r
-                           As output, point to actual size of varaible name.\r
+  @param  VariableNameSize As input, point to maximum size of variable name.\r
+                           As output, point to actual size of variable name.\r
   @param  VariableName     As input, supplies the last VariableName that was returned by\r
                            GetNextVariableName().\r
                            As output, returns the name of variable. The name\r
@@ -275,7 +275,7 @@ EfiGetNextVariableName (
   IN OUT EFI_GUID                 *VendorGuid\r
   )\r
 {\r
-  return mRT->GetNextVariableName (VariableNameSize, VariableName, VendorGuid);\r
+  return gInternalRT->GetNextVariableName (VariableNameSize, VariableName, VendorGuid);\r
 }\r
 \r
 \r
@@ -318,7 +318,7 @@ EfiSetVariable (
   IN VOID                         *Data\r
   )\r
 {\r
-  return mRT->SetVariable (VariableName, VendorGuid, Attributes, DataSize, Data);\r
+  return gInternalRT->SetVariable (VariableName, VendorGuid, Attributes, DataSize, Data);\r
 }\r
 \r
 \r
@@ -344,7 +344,7 @@ EfiGetNextHighMonotonicCount (
   OUT UINT32                      *HighCount\r
   )\r
 {\r
-  return mRT->GetNextHighMonotonicCount (HighCount);\r
+  return gInternalRT->GetNextHighMonotonicCount (HighCount);\r
 }\r
 \r
 \r
@@ -380,7 +380,7 @@ EfiConvertPointer (
 /**\r
   Determines the new virtual address that is to be used on subsequent memory accesses.\r
 \r
-  For IA32, X64, and EBC, this service is a wrapper for the UEFI Runtime Service\r
+  For IA32, x64, and EBC, this service is a wrapper for the UEFI Runtime Service\r
   ConvertPointer().  See the UEFI Specification for details. \r
   For IPF, this function interprets Address as a pointer to an EFI_PLABEL structure\r
   and both the EntryPoint and GP fields of an EFI_PLABEL are converted from physical\r
@@ -499,7 +499,7 @@ EfiSetVirtualAddressMap (
   IN CONST EFI_MEMORY_DESCRIPTOR    *VirtualMap\r
   )\r
 {\r
-  return mRT->SetVirtualAddressMap (\r
+  return gInternalRT->SetVirtualAddressMap (\r
                 MemoryMapSize,\r
                 DescriptorSize,\r
                 DescriptorVersion,\r
@@ -545,12 +545,12 @@ EfiSetVirtualAddressMap (
 EFI_STATUS\r
 EFIAPI\r
 EfiUpdateCapsule (\r
-  IN EFI_CAPSULE_HEADER   **CapsuleHeaderArray,\r
-  IN UINTN                CapsuleCount,\r
-  IN EFI_PHYSICAL_ADDRESS ScatterGatherList OPTIONAL\r
+  IN EFI_CAPSULE_HEADER       **CapsuleHeaderArray,\r
+  IN UINTN                    CapsuleCount,\r
+  IN EFI_PHYSICAL_ADDRESS     ScatterGatherList OPTIONAL\r
   )\r
 {\r
-  return mRT->UpdateCapsule (\r
+  return gInternalRT->UpdateCapsule (\r
                 CapsuleHeaderArray,\r
                 CapsuleCount,\r
                 ScatterGatherList\r
@@ -595,13 +595,13 @@ EfiUpdateCapsule (
 EFI_STATUS\r
 EFIAPI\r
 EfiQueryCapsuleCapabilities (\r
-  IN EFI_CAPSULE_HEADER   **CapsuleHeaderArray,\r
-  IN UINTN                CapsuleCount,\r
-  OUT UINT64              *MaximumCapsuleSize,\r
-  OUT EFI_RESET_TYPE      *ResetType\r
+  IN  EFI_CAPSULE_HEADER       **CapsuleHeaderArray,\r
+  IN  UINTN                    CapsuleCount,\r
+  OUT UINT64                   *MaximumCapsuleSize,\r
+  OUT EFI_RESET_TYPE           *ResetType\r
   )\r
 {\r
-  return mRT->QueryCapsuleCapabilities (\r
+  return gInternalRT->QueryCapsuleCapabilities (\r
           CapsuleHeaderArray,\r
           CapsuleCount,\r
           MaximumCapsuleSize,\r
@@ -647,13 +647,13 @@ EfiQueryCapsuleCapabilities (
 EFI_STATUS\r
 EFIAPI\r
 EfiQueryVariableInfo (\r
-  IN  UINT32      Attributes,\r
-  OUT UINT64      *MaximumVariableStorageSize,\r
-  OUT UINT64      *RemainingVariableStorageSize,\r
-  OUT UINT64      *MaximumVariableSize\r
+  IN UINT32   Attributes,\r
+  OUT UINT64  *MaximumVariableStorageSize,\r
+  OUT UINT64  *RemainingVariableStorageSize,\r
+  OUT UINT64  *MaximumVariableSize\r
   )\r
 {\r
-  return mRT->QueryVariableInfo (\r
+  return gInternalRT->QueryVariableInfo (\r
           Attributes,\r
           MaximumVariableStorageSize,\r
           RemainingVariableStorageSize,\r