diff options
| author | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 01:31:38 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 01:31:38 -0400 |
| commit | 4854c7b27f0975a2b629f35ea3996d2968eb7c4f (patch) | |
| tree | 4102bdb70289764a2058aff0f907b13d7cf0e0d1 /include/linux/rtc.h | |
| parent | 3cbd5b32cb625f5c0f1b1476d154fac873dd49ce (diff) | |
| parent | fcc18e83e1f6fd9fa6b333735bf0fcd530655511 (diff) | |
Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
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 | ||
