OpenCore
1.0.4
OpenCore Bootloader
|
#include <IndustryStandard/AppleRtc.h>
Go to the source code of this file.
Data Structures | |
struct | APPLE_RTC_RAM_PROTOCOL_ |
Macros | |
#define | APPLE_RTC_RAM_PROTOCOL_GUID |
Typedefs | |
typedef struct APPLE_RTC_RAM_PROTOCOL_ | APPLE_RTC_RAM_PROTOCOL |
typedef UINTN(EFIAPI * | APPLE_RTC_RAM_GET_AVAILABLE_MEMORY) (IN APPLE_RTC_RAM_PROTOCOL *This) |
typedef EFI_STATUS(EFIAPI * | APPLE_RTC_RAM_READ_MEMORY) (IN APPLE_RTC_RAM_PROTOCOL *This, OUT UINT8 *Buffer, IN UINTN BufferSize, IN UINTN Address) |
typedef EFI_STATUS(EFIAPI * | APPLE_RTC_RAM_WRITE_MEMORY) (IN APPLE_RTC_RAM_PROTOCOL *This, IN CONST UINT8 *Buffer, IN UINTN BufferSize, IN UINTN Address) |
typedef EFI_STATUS(EFIAPI * | APPLE_RTC_RAM_RESET_MEMORY) (IN APPLE_RTC_RAM_PROTOCOL *This) |
Variables | |
EFI_GUID | gAppleRtcRamProtocolGuid |
Apple RTC RAM.
Copyright (C) 2020, 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 AppleRtcRam.h.
#define APPLE_RTC_RAM_PROTOCOL_GUID |
Installed by RTC driver. E121EC07-9C42-45EE-B0B6-FFF8EF03C521 Found in AppleRtcRam (CC54F583-3F9E-4AB0-9F7C-D2C7ED1C87A5).
Note, there is a sibling driver in PEI: 13CFE225-E07B-40F3-9703-EBE99318766E Found in AppleRtcRamPeim (1B99796D-2A26-437E-BEE0-014F0EBBECE1).
Definition at line 30 of file AppleRtcRam.h.
typedef UINTN(EFIAPI * APPLE_RTC_RAM_GET_AVAILABLE_MEMORY) (IN APPLE_RTC_RAM_PROTOCOL *This) |
Obtain available RTC memory in bytes.
[in] | This | Apple RTC RAM protocol instance. |
256 | under normal circumstances. |
Definition at line 44 of file AppleRtcRam.h.
typedef struct APPLE_RTC_RAM_PROTOCOL_ APPLE_RTC_RAM_PROTOCOL |
Definition at line 34 of file AppleRtcRam.h.
typedef EFI_STATUS(EFIAPI * APPLE_RTC_RAM_READ_MEMORY) (IN APPLE_RTC_RAM_PROTOCOL *This, OUT UINT8 *Buffer, IN UINTN BufferSize, IN UINTN Address) |
Read memory from RTC.
[in] | This | Apple RTC RAM protocol instance. |
[out] | Buffer | Destination buffer to read to. |
[in] | BufferSize | The amount of memory to read in bytes. |
[in] | Address | The starting RTC offset to read from. |
The implementation should respect data consistency:
EFI_INVALID_PARAMETER | when Buffer is NULL. |
EFI_INVALID_PARAMETER | when BufferSize is 0. |
EFI_INVALID_PARAMETER | when the requested memory is out of range. |
EFI_ACCESS_DENIED | when an RTC I/O operating is in progress. |
EFI_TIMEOUT | when RTC device is not ready. |
EFI_SUCCESS | on success. |
Definition at line 69 of file AppleRtcRam.h.
typedef EFI_STATUS(EFIAPI * APPLE_RTC_RAM_RESET_MEMORY) (IN APPLE_RTC_RAM_PROTOCOL *This) |
Reset RTC memory to default values. For uses like CMD+OPT+P+R.
The implementation should maintain data consistency:
[in] | This | Apple RTC RAM protocol instance. |
EFI_OUT_OF_RESOURCES | when a memory allocation error happened. |
EFI_ACCESS_DENIED | when an RTC I/O operating is in progress. |
EFI_TIMEOUT | when RTC device is not ready. |
EFI_SUCCESS | on success. |
Definition at line 127 of file AppleRtcRam.h.
typedef EFI_STATUS(EFIAPI * APPLE_RTC_RAM_WRITE_MEMORY) (IN APPLE_RTC_RAM_PROTOCOL *This, IN CONST UINT8 *Buffer, IN UINTN BufferSize, IN UINTN Address) |
Write memory to RTC.
[in] | This | Apple RTC RAM protocol instance. |
[in] | Buffer | Source buffer to write to RTC. |
[in] | BufferSize | The amount of memory to write in bytes. |
[in] | Address | The starting RTC offset to write to. |
The implementation should maintain data consistency:
EFI_INVALID_PARAMETER | when Buffer is NULL. |
EFI_INVALID_PARAMETER | when BufferSize is 0. |
EFI_INVALID_PARAMETER | when the requested memory is out of range. |
EFI_INVALID_PARAMETER | when trying to update system memory before APPLE_RTC_CHECKSUM_START. |
EFI_OUT_OF_RESOURCES | when a memory allocation error happened. |
EFI_ACCESS_DENIED | when an RTC I/O operating is in progress. |
EFI_TIMEOUT | when RTC device is not ready. |
EFI_SUCCESS | on success. |
Definition at line 103 of file AppleRtcRam.h.
|
extern |