1 /**************************************************************************** 2 **************************************************************************** 3 *** 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. 9 *** 10 **************************************************************************** 11 ****************************************************************************/ 12 #ifndef _LINUX_RTC_H_ 13 #define _LINUX_RTC_H_ 14 15 struct rtc_time { 16 int tm_sec; 17 int tm_min; 18 int tm_hour; 19 int tm_mday; 20 int tm_mon; 21 int tm_year; 22 int tm_wday; 23 int tm_yday; 24 int tm_isdst; 25 }; 26 27 struct rtc_wkalrm { 28 unsigned char enabled; 29 unsigned char pending; 30 struct rtc_time time; 31 }; 32 33 struct rtc_pll_info { 34 int pll_ctrl; 35 int pll_value; 36 int pll_max; 37 int pll_min; 38 int pll_posmult; 39 int pll_negmult; 40 long pll_clock; 41 }; 42 43 #define RTC_AIE_ON _IO('p', 0x01) 44 #define RTC_AIE_OFF _IO('p', 0x02) 45 #define RTC_UIE_ON _IO('p', 0x03) 46 #define RTC_UIE_OFF _IO('p', 0x04) 47 #define RTC_PIE_ON _IO('p', 0x05) 48 #define RTC_PIE_OFF _IO('p', 0x06) 49 #define RTC_WIE_ON _IO('p', 0x0f) 50 #define RTC_WIE_OFF _IO('p', 0x10) 51 52 #define RTC_ALM_SET _IOW('p', 0x07, struct rtc_time) 53 #define RTC_ALM_READ _IOR('p', 0x08, struct rtc_time) 54 #define RTC_RD_TIME _IOR('p', 0x09, struct rtc_time) 55 #define RTC_SET_TIME _IOW('p', 0x0a, struct rtc_time) 56 #define RTC_IRQP_READ _IOR('p', 0x0b, unsigned long) 57 #define RTC_IRQP_SET _IOW('p', 0x0c, unsigned long) 58 #define RTC_EPOCH_READ _IOR('p', 0x0d, unsigned long) 59 #define RTC_EPOCH_SET _IOW('p', 0x0e, unsigned long) 60 61 #define RTC_WKALM_SET _IOW('p', 0x0f, struct rtc_wkalrm) 62 #define RTC_WKALM_RD _IOR('p', 0x10, struct rtc_wkalrm) 63 64 #define RTC_PLL_GET _IOR('p', 0x11, struct rtc_pll_info) 65 #define RTC_PLL_SET _IOW('p', 0x12, struct rtc_pll_info) 66 67 #define RTC_IRQF 0x80 68 #define RTC_PF 0x40 69 #define RTC_AF 0x20 70 #define RTC_UF 0x10 71 72 #endif 73