diff options
Diffstat (limited to 'include/linux/rtc.h')
| -rw-r--r-- | include/linux/rtc.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/rtc.h b/include/linux/rtc.h index ab61cd1199f2..36e2bf4b4315 100644 --- a/include/linux/rtc.h +++ b/include/linux/rtc.h | |||
| @@ -102,6 +102,7 @@ struct rtc_pll_info { | |||
| 102 | #include <linux/interrupt.h> | 102 | #include <linux/interrupt.h> |
| 103 | 103 | ||
| 104 | extern int rtc_month_days(unsigned int month, unsigned int year); | 104 | extern int rtc_month_days(unsigned int month, unsigned int year); |
| 105 | extern int rtc_year_days(unsigned int day, unsigned int month, unsigned int year); | ||
| 105 | extern int rtc_valid_tm(struct rtc_time *tm); | 106 | extern int rtc_valid_tm(struct rtc_time *tm); |
| 106 | extern int rtc_tm_to_time(struct rtc_time *tm, unsigned long *time); | 107 | extern int rtc_tm_to_time(struct rtc_time *tm, unsigned long *time); |
| 107 | extern void rtc_time_to_tm(unsigned long time, struct rtc_time *tm); | 108 | extern void rtc_time_to_tm(unsigned long time, struct rtc_time *tm); |
| @@ -155,6 +156,17 @@ struct rtc_device | |||
| 155 | struct rtc_task *irq_task; | 156 | struct rtc_task *irq_task; |
| 156 | spinlock_t irq_task_lock; | 157 | spinlock_t irq_task_lock; |
| 157 | int irq_freq; | 158 | int irq_freq; |
| 159 | int max_user_freq; | ||
| 160 | #ifdef CONFIG_RTC_INTF_DEV_UIE_EMUL | ||
| 161 | struct work_struct uie_task; | ||
| 162 | struct timer_list uie_timer; | ||
| 163 | /* Those fields are protected by rtc->irq_lock */ | ||
| 164 | unsigned int oldsecs; | ||
| 165 | unsigned int irq_active:1; | ||
| 166 | unsigned int stop_uie_polling:1; | ||
| 167 | unsigned int uie_task_active:1; | ||
| 168 | unsigned int uie_timer_active:1; | ||
| 169 | #endif | ||
| 158 | }; | 170 | }; |
| 159 | #define to_rtc_device(d) container_of(d, struct rtc_device, class_dev) | 171 | #define to_rtc_device(d) container_of(d, struct rtc_device, class_dev) |
| 160 | 172 | ||
