TianoCore EDK2 master
Loading...
Searching...
No Matches
LsRealTimeClock.h File Reference

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
 

Detailed Description

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.

Macro Definition Documentation

◆ OSC_ENABLE_BIT

#define OSC_ENABLE_BIT   (1UL << 8)

Definition at line 22 of file LsRealTimeClock.h.

◆ RTC_CTRL_REG

#define RTC_CTRL_REG   0x40

Definition at line 17 of file LsRealTimeClock.h.

◆ RTC_ENABLE_BIT

#define RTC_ENABLE_BIT   (1UL << 13)

Definition at line 20 of file LsRealTimeClock.h.

◆ TOY_DAY_MASK

#define TOY_DAY_MASK   0x1f

Definition at line 28 of file LsRealTimeClock.h.

◆ TOY_DAY_SHIFT

#define TOY_DAY_SHIFT   21

Definition at line 35 of file LsRealTimeClock.h.

◆ TOY_ENABLE_BIT

#define TOY_ENABLE_BIT   (1UL << 11)

Definition at line 21 of file LsRealTimeClock.h.

◆ TOY_HOUR_MASK

#define TOY_HOUR_MASK   0x1f

Definition at line 29 of file LsRealTimeClock.h.

◆ TOY_HOUR_SHIFT

#define TOY_HOUR_SHIFT   16

Definition at line 36 of file LsRealTimeClock.h.

◆ TOY_MIN_MASK

#define TOY_MIN_MASK   0x3f

Definition at line 30 of file LsRealTimeClock.h.

◆ TOY_MIN_SHIFT

#define TOY_MIN_SHIFT   10

Definition at line 37 of file LsRealTimeClock.h.

◆ TOY_MON_MASK

#define TOY_MON_MASK   0x3f

Definition at line 27 of file LsRealTimeClock.h.

◆ TOY_MON_SHIFT

#define TOY_MON_SHIFT   26

Definition at line 34 of file LsRealTimeClock.h.

◆ TOY_MSEC_MASK

#define TOY_MSEC_MASK   0xf

Definition at line 32 of file LsRealTimeClock.h.

◆ TOY_READ0_REG

#define TOY_READ0_REG   0x2c

Definition at line 15 of file LsRealTimeClock.h.

◆ TOY_READ1_REG

#define TOY_READ1_REG   0x30

Definition at line 16 of file LsRealTimeClock.h.

◆ TOY_SEC_MASK

#define TOY_SEC_MASK   0x3f

Definition at line 31 of file LsRealTimeClock.h.

◆ TOY_SEC_SHIFT

#define TOY_SEC_SHIFT   4

Definition at line 38 of file LsRealTimeClock.h.

◆ TOY_WRITE0_REG

#define TOY_WRITE0_REG   0x24

Definition at line 13 of file LsRealTimeClock.h.

◆ TOY_WRITE1_REG

#define TOY_WRITE1_REG   0x28

Definition at line 14 of file LsRealTimeClock.h.