1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _MC146818RTC_H
13 #define _MC146818RTC_H
16 #include <linux/rtc.h>
17 #include <asm/mc146818rtc.h>
20 #define RTC_SECONDS_ALARM 1
22 #define RTC_MINUTES_ALARM 3
24 #define RTC_HOURS_ALARM 5
26 #define RTC_ALARM_DONT_CARE 0xC0
28 #define RTC_DAY_OF_WEEK 6
29 #define RTC_DAY_OF_MONTH 7
38 #define RTC_FREQ_SELECT RTC_REG_A
41 #define RTC_DIV_CTL 0x70
43 #define RTC_REF_CLCK_4MHZ 0x00
44 #define RTC_REF_CLCK_1MHZ 0x10
45 #define RTC_REF_CLCK_32KHZ 0x20
47 #define RTC_DIV_RESET1 0x60
48 #define RTC_DIV_RESET2 0x70
50 #define RTC_RATE_SELECT 0x0F
52 #define RTC_CONTROL RTC_REG_B
58 #define RTC_DM_BINARY 0x04
60 #define RTC_DST_EN 0x01
62 #define RTC_INTR_FLAGS RTC_REG_C
69 #define RTC_VALID RTC_REG_D
72 #ifndef ARCH_RTC_LOCATION
74 #define RTC_IO_EXTENT 0x8
75 #define RTC_IOMAPPED 1