TianoCore EDK2 master
|
Go to the source code of this file.
Macros | |
#define | TOY_WRITE0_REG 0x24 |
#define | TOY_WRITE1_REG 0x28 |
#define | TOY_READ0_REG 0x2c |
#define | TOY_READ1_REG 0x30 |
#define | RTC_CTRL_REG 0x40 |
#define | RTC_ENABLE_BIT (1UL << 13) |
#define | TOY_ENABLE_BIT (1UL << 11) |
#define | OSC_ENABLE_BIT (1UL << 8) |
#define | TOY_MON_MASK 0x3f |
#define | TOY_DAY_MASK 0x1f |
#define | TOY_HOUR_MASK 0x1f |
#define | TOY_MIN_MASK 0x3f |
#define | TOY_SEC_MASK 0x3f |
#define | TOY_MSEC_MASK 0xf |
#define | TOY_MON_SHIFT 26 |
#define | TOY_DAY_SHIFT 21 |
#define | TOY_HOUR_SHIFT 16 |
#define | TOY_MIN_SHIFT 10 |
#define | TOY_SEC_SHIFT 4 |
Implement EFI RealTimeClock runtime services via RTC Lib.
Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file LsRealTimeClock.h.
#define OSC_ENABLE_BIT (1UL << 8) |
Definition at line 22 of file LsRealTimeClock.h.
#define RTC_CTRL_REG 0x40 |
Definition at line 17 of file LsRealTimeClock.h.
#define RTC_ENABLE_BIT (1UL << 13) |
Definition at line 20 of file LsRealTimeClock.h.
#define TOY_DAY_MASK 0x1f |
Definition at line 28 of file LsRealTimeClock.h.
#define TOY_DAY_SHIFT 21 |
Definition at line 35 of file LsRealTimeClock.h.
#define TOY_ENABLE_BIT (1UL << 11) |
Definition at line 21 of file LsRealTimeClock.h.
#define TOY_HOUR_MASK 0x1f |
Definition at line 29 of file LsRealTimeClock.h.
#define TOY_HOUR_SHIFT 16 |
Definition at line 36 of file LsRealTimeClock.h.
#define TOY_MIN_MASK 0x3f |
Definition at line 30 of file LsRealTimeClock.h.
#define TOY_MIN_SHIFT 10 |
Definition at line 37 of file LsRealTimeClock.h.
#define TOY_MON_MASK 0x3f |
Definition at line 27 of file LsRealTimeClock.h.
#define TOY_MON_SHIFT 26 |
Definition at line 34 of file LsRealTimeClock.h.
#define TOY_MSEC_MASK 0xf |
Definition at line 32 of file LsRealTimeClock.h.
#define TOY_READ0_REG 0x2c |
Definition at line 15 of file LsRealTimeClock.h.
#define TOY_READ1_REG 0x30 |
Definition at line 16 of file LsRealTimeClock.h.
#define TOY_SEC_MASK 0x3f |
Definition at line 31 of file LsRealTimeClock.h.
#define TOY_SEC_SHIFT 4 |
Definition at line 38 of file LsRealTimeClock.h.
#define TOY_WRITE0_REG 0x24 |
Definition at line 13 of file LsRealTimeClock.h.
#define TOY_WRITE1_REG 0x28 |
Definition at line 14 of file LsRealTimeClock.h.