Go to the documentation of this file.
11 #ifndef _MC146818RTC_H
12 #define _MC146818RTC_H
15 #include <linux/rtc.h>
16 #include <asm/mc146818rtc.h>
30 struct cmos_rtc_board_info {
44 #define RTC_SECONDS_ALARM 1
46 #define RTC_MINUTES_ALARM 3
48 #define RTC_HOURS_ALARM 5
50 # define RTC_ALARM_DONT_CARE 0xC0
52 #define RTC_DAY_OF_WEEK 6
53 #define RTC_DAY_OF_MONTH 7
67 #define RTC_FREQ_SELECT RTC_REG_A
74 # define RTC_DIV_CTL 0x70
76 # define RTC_REF_CLCK_4MHZ 0x00
77 # define RTC_REF_CLCK_1MHZ 0x10
78 # define RTC_REF_CLCK_32KHZ 0x20
80 # define RTC_DIV_RESET1 0x60
81 # define RTC_DIV_RESET2 0x70
83 # define RTC_RATE_SELECT 0x0F
86 #define RTC_CONTROL RTC_REG_B
91 # define RTC_SQWE 0x08
92 # define RTC_DM_BINARY 0x04
94 # define RTC_DST_EN 0x01
97 #define RTC_INTR_FLAGS RTC_REG_C
99 # define RTC_IRQF 0x80
105 #define RTC_VALID RTC_REG_D
106 # define RTC_VRT 0x80
109 #ifndef ARCH_RTC_LOCATION
111 #define RTC_IO_EXTENT 0x8
112 #define RTC_IO_EXTENT_USED 0x2
113 #define RTC_IOMAPPED 1
116 #define RTC_IO_EXTENT_USED RTC_IO_EXTENT