]> git.proxmox.com Git - mirror_edk2.git/blobdiff - PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.h
PcAtChipsetPkg: Add MMIO Support to RTC driver
[mirror_edk2.git] / PcAtChipsetPkg / PcatRealTimeClockRuntimeDxe / PcRtc.h
index 8aeb12c88ad1d92a337c940f9123c4c95811946a..47293ce44c5a1f4792892892f7da40d7f0a5a001 100644 (file)
@@ -1,16 +1,10 @@
 /** @file\r
   Header file for real time clock driver.\r
 \r
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 Copyright (c) 2017, AMD 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
@@ -47,9 +41,6 @@ typedef struct {
 \r
 extern PC_RTC_MODULE_GLOBALS  mModuleGlobal;\r
 \r
-#define PCAT_RTC_ADDRESS_REGISTER 0x70\r
-#define PCAT_RTC_DATA_REGISTER    0x71\r
-\r
 //\r
 // Dallas DS12C887 Real Time Clock\r
 //\r
@@ -119,7 +110,7 @@ typedef struct {
   UINT8 Uf : 1;       // Update End Interrupt Flag\r
   UINT8 Af : 1;       // Alarm Interrupt Flag\r
   UINT8 Pf : 1;       // Periodic Interrupt Flag\r
-  UINT8 Irqf : 1;     // Iterrupt Request Flag = PF & PIE | AF & AIE | UF & UIE\r
+  UINT8 Irqf : 1;     // Interrupt Request Flag = PF & PIE | AF & AIE | UF & UIE\r
 } RTC_REGISTER_C_BITS;\r
 \r
 typedef union {\r
@@ -243,7 +234,7 @@ PcRtcGetWakeupTime (
 /**\r
   The user Entry Point for PcRTC module.\r
 \r
-  This is the entrhy point for PcRTC module. It installs the UEFI runtime service\r
+  This is the entry point for PcRTC module. It installs the UEFI runtime service\r
   including GetTime(),SetTime(),GetWakeupTime(),and SetWakeupTime().\r
 \r
   @param  ImageHandle    The firmware allocated handle for the EFI image.\r
@@ -275,9 +266,9 @@ RtcTimeFieldsValid (
   );\r
 \r
 /**\r
-  Converts time from EFI_TIME format defined by UEFI spec to RTC's.\r
+  Converts time from EFI_TIME format defined by UEFI spec to RTC format.\r
 \r
-  This function converts time from EFI_TIME format defined by UEFI spec to RTC's.\r
+  This function converts time from EFI_TIME format defined by UEFI spec to RTC format.\r
   If data mode of RTC is BCD, then converts EFI_TIME to it.\r
   If RTC is in 12-hour format, then converts EFI_TIME to it.\r
 \r
@@ -321,7 +312,7 @@ ConvertRtcTimeToEfiTime (
   @param    Timeout  Tell how long it should take to wait.\r
 \r
   @retval   EFI_DEVICE_ERROR   RTC device error.\r
-  @retval   EFI_SUCCESS        RTC is updated and ready.  \r
+  @retval   EFI_SUCCESS        RTC is updated and ready.\r
 **/\r
 EFI_STATUS\r
 RtcWaitToUpdate (\r