OpenCore
1.0.4
OpenCore Bootloader
|
#include <Protocol/AppleRtcRam.h>
Go to the source code of this file.
Functions | |
UINT8 | OcRtcRead (IN UINT8 Offset) |
VOID | OcRtcWrite (IN UINT8 Offset, IN UINT8 Value) |
UINT16 | OcRtcChecksumApple (IN CONST VOID *Data, IN UINTN Size) |
APPLE_RTC_RAM_PROTOCOL * | OcAppleRtcRamInstallProtocol (IN BOOLEAN Reinstall) |
UINT8 | OcRtcReadIvy (IN UINT8 Offset) |
VOID | OcRtcWriteIvy (IN UINT8 Offset, IN UINT8 Value) |
OcRtcLib - library with RTC I/O functions
Copyright (c) 2017-2018, vit9696
All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file OcRtcLib.h.
APPLE_RTC_RAM_PROTOCOL * OcAppleRtcRamInstallProtocol | ( | IN BOOLEAN | Reinstall | ) |
Install and initialise Apple RTC RAM protocol.
[in] | Reinstall | Overwrite installed protocol. |
installed | or located protocol or NULL. |
Definition at line 289 of file AppleRtcRam.c.
UINT16 OcRtcChecksumApple | ( | IN CONST VOID * | Data, |
IN UINTN | Size ) |
Calculate Apple CMOS checksum. This is a modified version of ANSI CRC16 in REFIN mode (0xA001 poly). See http://zlib.net/crc_v3.txt for more details.
[in] | Data | Pointer to data to calculate the checksum of. |
[in] | Size | Size of data. |
Resulting | checksum. |
Definition at line 70 of file OcRtcLib.c.
UINT8 OcRtcRead | ( | IN UINT8 | Offset | ) |
Definition at line 25 of file OcRtcLib.c.
UINT8 OcRtcReadIvy | ( | IN UINT8 | Offset | ) |
Definition at line 100 of file OcRtcLib.c.
VOID OcRtcWrite | ( | IN UINT8 | Offset, |
IN UINT8 | Value ) |
Definition at line 47 of file OcRtcLib.c.
VOID OcRtcWriteIvy | ( | IN UINT8 | Offset, |
IN UINT8 | Value ) |
Definition at line 123 of file OcRtcLib.c.