]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeService.c
1. Removed #ifdef EDK_RELEASE_VERSION from all c files for all modules
[mirror_edk2.git] / EdkModulePkg / Library / EdkUefiRuntimeLib / Common / RuntimeService.c
index 971dcdbf894cc7d169ae33a0dc04c6f8d5eddc50..e9a539de4d1a5e8d735936683721ad7744971a2e 100644 (file)
@@ -1,27 +1,24 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 Module Name:\r
 \r
     RuntimeService.c\r
 \r
-Abstract:\r
-\r
-  Light weight lib to support Tiano drivers.\r
-\r
 --*/\r
 \r
 #include <RuntimeLibInternal.h>\r
 \r
 VOID\r
+EFIAPI\r
 EfiResetSystem (\r
   IN EFI_RESET_TYPE               ResetType,\r
   IN EFI_STATUS                   ResetStatus,\r
@@ -56,6 +53,7 @@ Returns:
 // runtime service in the EFI system table.\r
 //\r
 EFI_STATUS\r
+EFIAPI\r
 EfiGetTime (\r
   OUT EFI_TIME                    *Time,\r
   OUT EFI_TIME_CAPABILITIES       *Capabilities\r
@@ -64,13 +62,13 @@ EfiGetTime (
 \r
 Routine Description:\r
 \r
-  Returns the current time and date information, and the time-keeping \r
+  Returns the current time and date information, and the time-keeping\r
   capabilities of the hardware platform.\r
 \r
 Arguments:\r
 \r
   Time          - A pointer to storage to receive a snapshot of the current time.\r
-  Capabilities  - An optional pointer to a buffer to receive the real time clock device¡¯s\r
+  Capabilities  - An optional pointer to a buffer to receive the real time clock device's\r
                   capabilities.\r
 \r
 Returns:\r
@@ -83,6 +81,7 @@ Returns:
 }\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 EfiSetTime (\r
   IN EFI_TIME                   *Time\r
   )\r
@@ -106,6 +105,7 @@ Returns:
 }\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 EfiGetWakeupTime (\r
   OUT BOOLEAN                     *Enabled,\r
   OUT BOOLEAN                     *Pending,\r
@@ -133,6 +133,7 @@ Returns:
 }\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 EfiSetWakeupTime (\r
   IN BOOLEAN                      Enable,\r
   IN EFI_TIME                     *Time\r
@@ -162,6 +163,7 @@ Returns:
 \r
 \r
 EFI_STATUS\r
+EFIAPI\r
 EfiGetVariable (\r
   IN CHAR16                       *VariableName,\r
   IN EFI_GUID                     * VendorGuid,\r
@@ -178,7 +180,7 @@ Routine Description:
 Arguments:\r
 \r
   VariableName  - A Null-terminated Unicode string that is the name of the\r
-                  vendor¡¯s variable.\r
+                  vendor's variable.\r
   VendorGuid    - A unique identifier for the vendor.\r
   Attributes    - If not NULL, a pointer to the memory location to return the\r
                   attributes bitmask for the variable.\r
@@ -196,6 +198,7 @@ Returns:
 }\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 EfiGetNextVariableName (\r
   IN OUT UINTN                    *VariableNameSize,\r
   IN OUT CHAR16                   *VariableName,\r
@@ -211,11 +214,11 @@ Arguments:
 \r
   VariableNameSize  - The size of the VariableName buffer.\r
   VariableName      - On input, supplies the last VariableName that was returned\r
-                      by GetNextVariableName(). \r
+                      by GetNextVariableName().\r
                       On output, returns the Nullterminated Unicode string of the\r
                       current variable.\r
   VendorGuid        - On input, supplies the last VendorGuid that was returned by\r
-                      GetNextVariableName(). \r
+                      GetNextVariableName().\r
                       On output, returns the VendorGuid of the current variable.\r
 \r
 Returns:\r
@@ -228,6 +231,7 @@ Returns:
 }\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 EfiSetVariable (\r
   IN CHAR16                       *VariableName,\r
   IN EFI_GUID                     *VendorGuid,\r
@@ -244,7 +248,7 @@ Routine Description:
 Arguments:\r
 \r
   VariableName  - A Null-terminated Unicode string that is the name of the\r
-                  vendor¡¯s variable.\r
+                  vendor's variable.\r
   VendorGuid    - A unique identifier for the vendor.\r
   Attributes    - Attributes bitmask to set for the variable.\r
   DataSize      - The size in bytes of the Data buffer.\r
@@ -260,6 +264,7 @@ Returns:
 }\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 EfiGetNextHighMonotonicCount (\r
   OUT UINT32                      *HighCount\r
   )\r
@@ -267,7 +272,7 @@ EfiGetNextHighMonotonicCount (
 \r
 Routine Description:\r
 \r
-  Returns the next high 32 bits of the platform¡¯s monotonic counter.\r
+  Returns the next high 32 bits of the platform's monotonic counter.\r
 \r
 Arguments:\r
 \r
@@ -283,9 +288,10 @@ Returns:
 }\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 EfiConvertPointer (\r
   IN UINTN                  DebugDisposition,\r
-  IN OUT VOID               *Address\r
+  IN OUT VOID               **Address\r
   )\r
 /*++\r
 \r
@@ -309,30 +315,7 @@ Returns:
 }\r
 \r
 EFI_STATUS\r
-EfiConvertInternalPointer (\r
-  IN OUT VOID                  *Address\r
-  )\r
-/*++\r
-\r
-Routine Description:\r
-\r
-  Call EfiConvertPointer() to convert internal pointer.\r
-\r
-Arguments:\r
-\r
-  Address - A pointer to a pointer that is to be fixed to be the value needed\r
-            for the new virtual address mappings being applied.\r
-\r
-Returns:\r
-\r
-  Status code\r
-\r
---*/\r
-{\r
-  return EfiConvertPointer (0x0, Address);\r
-}\r
-\r
-EFI_STATUS\r
+EFIAPI\r
 EfiConvertList (\r
   IN UINTN                DebugDisposition,\r
   IN OUT LIST_ENTRY       *ListHead\r
@@ -349,7 +332,7 @@ Arguments:
 \r
   ListHead         - Head of linked list to convert\r
 \r
-Returns: \r
+Returns:\r
 \r
   EFI_SUCCESS\r
 \r
@@ -421,24 +404,22 @@ EfiSetVirtualAddressMap (
 \r
 \r
 EFI_STATUS\r
+EFIAPI\r
 EfiUpdateCapsule (\r
   IN UEFI_CAPSULE_HEADER       **CapsuleHeaderArray,\r
   IN UINTN                                 CapsuleCount,\r
   IN EFI_PHYSICAL_ADDRESS      ScatterGatherList       OPTIONAL\r
   )\r
 {\r
-#if (EFI_SPECIFICATION_VERSION >= 0x00020000)\r
   return mRT->UpdateCapsule (\r
                 CapsuleHeaderArray,\r
                 CapsuleCount,\r
                 ScatterGatherList\r
                 );\r
-#else\r
-  return EFI_UNSUPPORTED;\r
-#endif\r
 }\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 EfiQueryCapsuleCapabilities (\r
   IN UEFI_CAPSULE_HEADER       **CapsuleHeaderArray,\r
   IN UINTN                                 CapsuleCount,\r
@@ -446,20 +427,17 @@ EfiQueryCapsuleCapabilities (
   OUT EFI_RESET_TYPE           *ResetType\r
   )\r
 {\r
-#if (EFI_SPECIFICATION_VERSION >= 0x00020000)\r
   return mRT->QueryCapsuleCapabilities (\r
           CapsuleHeaderArray,\r
           CapsuleCount,\r
           MaximumCapsuleSize,\r
           ResetType\r
           );\r
-#else\r
-  return EFI_UNSUPPORTED;\r
-#endif\r
 }\r
 \r
 \r
 EFI_STATUS\r
+EFIAPI\r
 EfiQueryVariableInfo (\r
   IN UINT32                      Attributes,\r
   OUT UINT64                   *MaximumVariableStorageSize,\r
@@ -467,14 +445,10 @@ EfiQueryVariableInfo (
   OUT UINT64                   *MaximumVariableSize\r
   )\r
 {\r
-#if (EFI_SPECIFICATION_VERSION >= 0x00020000)\r
   return mRT->QueryVariableInfo (\r
           Attributes,\r
           MaximumVariableStorageSize,\r
           RemainingVariableStorageSize,\r
           MaximumVariableSize\r
           );\r
-#else \r
-  return EFI_UNSUPPORTED;\r
-#endif\r
 }\r