/** @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
\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
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
/**\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
);\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
@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