]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Library/TemplateRealTimeClockLib/RealTimeClockLib.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / EmbeddedPkg / Library / TemplateRealTimeClockLib / RealTimeClockLib.c
index 129d4e06efe4f063fad8893032f1ba5ad59bb1d1..cb5025914e3fdcb0b36a1d1a601ff8e2965aa01f 100644 (file)
@@ -1,17 +1,11 @@
 /** @file\r
   Implement EFI RealTimeClock runtime services via RTC Lib.\r
-  \r
+\r
   Currently this driver does not support runtime virtual calling.\r
 \r
   Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
-  \r
-  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
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -21,7 +15,6 @@
 #include <Library/IoLib.h>\r
 #include <Library/RealTimeClockLib.h>\r
 \r
-\r
 /**\r
   Returns the current time and date information, and the time-keeping capabilities\r
   of the hardware platform.\r
@@ -48,7 +41,6 @@ LibGetTime (
   return EFI_DEVICE_ERROR;\r
 }\r
 \r
-\r
 /**\r
   Sets the current local time and date information.\r
 \r
@@ -56,13 +48,13 @@ LibGetTime (
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_INVALID_PARAMETER A time field is out of range.\r
-  @retval EFI_DEVICE_ERROR      The time could not be set due due to hardware error.\r
+  @retval EFI_DEVICE_ERROR      The time could not be set due to hardware error.\r
 \r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
 LibSetTime (\r
-  IN EFI_TIME                *Time\r
+  IN EFI_TIME  *Time\r
   )\r
 {\r
   //\r
@@ -71,7 +63,6 @@ LibSetTime (
   return EFI_DEVICE_ERROR;\r
 }\r
 \r
-\r
 /**\r
   Returns the current wakeup alarm clock setting.\r
 \r
@@ -87,16 +78,15 @@ LibSetTime (
 EFI_STATUS\r
 EFIAPI\r
 LibGetWakeupTime (\r
-  OUT BOOLEAN     *Enabled,\r
-  OUT BOOLEAN     *Pending,\r
-  OUT EFI_TIME    *Time\r
+  OUT BOOLEAN   *Enabled,\r
+  OUT BOOLEAN   *Pending,\r
+  OUT EFI_TIME  *Time\r
   )\r
 {\r
   // Not a required feature\r
   return EFI_UNSUPPORTED;\r
 }\r
 \r
-\r
 /**\r
   Sets the system wakeup alarm clock time.\r
 \r
@@ -113,16 +103,14 @@ LibGetWakeupTime (
 EFI_STATUS\r
 EFIAPI\r
 LibSetWakeupTime (\r
-  IN BOOLEAN      Enabled,\r
-  OUT EFI_TIME    *Time\r
+  IN BOOLEAN    Enabled,\r
+  OUT EFI_TIME  *Time\r
   )\r
 {\r
   // Not a required feature\r
   return EFI_UNSUPPORTED;\r
 }\r
 \r
-\r
-\r
 /**\r
   This is the declaration of an EFI image entry point. This can be the entry point to an application\r
   written to this specification, an EFI boot service driver, or an EFI runtime driver.\r
@@ -136,17 +124,16 @@ LibSetWakeupTime (
 EFI_STATUS\r
 EFIAPI\r
 LibRtcInitialize (\r
-  IN EFI_HANDLE                            ImageHandle,\r
-  IN EFI_SYSTEM_TABLE                      *SystemTable\r
+  IN EFI_HANDLE        ImageHandle,\r
+  IN EFI_SYSTEM_TABLE  *SystemTable\r
   )\r
 {\r
   //\r
-  // Do some initialization if reqruied to turn on the RTC\r
+  // Do some initialization if required to turn on the RTC\r
   //\r
   return EFI_SUCCESS;\r
 }\r
 \r
-\r
 /**\r
   Fixup internal data so that EFI can be call in virtual mode.\r
   Call the passed in Child Notify event and convert any pointers in\r
@@ -158,18 +145,15 @@ LibRtcInitialize (
 VOID\r
 EFIAPI\r
 LibRtcVirtualNotifyEvent (\r
-  IN EFI_EVENT        Event,\r
-  IN VOID             *Context\r
+  IN EFI_EVENT  Event,\r
+  IN VOID       *Context\r
   )\r
 {\r
   //\r
   // Only needed if you are going to support the OS calling RTC functions in virtual mode.\r
-  // You will need to call EfiConvertPointer (). To convert any stored physical addresses \r
-  // to virtual address. After the OS transistions to calling in virtual mode, all future\r
+  // You will need to call EfiConvertPointer (). To convert any stored physical addresses\r
+  // to virtual address. After the OS transitions to calling in virtual mode, all future\r
   // runtime calls will be made in virtual mode.\r
   //\r
   return;\r
 }\r
-\r
-\r
-\r