6 #define RTC_INDEX_PORT 0x70
7 #define RTC_TARGET_PORT 0x71
9 #define WITH_NMI_DISABLED 0x80
11 #define RTC_CURRENT_CENTRY 20
13 #define RTC_REG_YRS 0x9
14 #define RTC_REG_MTH 0x8
15 #define RTC_REG_DAY 0x7
16 #define RTC_REG_WDY 0x6
17 #define RTC_REG_HRS 0x4
18 #define RTC_REG_MIN 0x2
19 #define RTC_REG_SEC 0x0
26 #define RTC_BIN_ENCODED(reg) (reg & 0x04)
27 #define RTC_24HRS_ENCODED(reg) (reg & 0x02)
29 #define RTC_TIMER_BASE_FREQUENCY 1024
30 #define RTC_TIMER_ON 0x40
32 #define RTC_FREQUENCY_1024HZ 0b110
33 #define RTC_DIVIDER_33KHZ (0b010 << 4)
39 rtc_read_reg(uint8_t reg_selector);
42 rtc_write_reg(uint8_t reg_selector, uint8_t val);
50 #endif /* __LUNAIX_RTC_H */