[PATCH] RTC Subsystem: library functions
[linux-2.6-block.git] / include / linux / rtc.h
index e1aaf1fac8e0e7aadb5c4745462af1623a8d41fb..8454337c70580ffb0916b92e5bf86b0e66f5f56a 100644 (file)
@@ -93,6 +93,13 @@ struct rtc_pll_info {
 
 #ifdef __KERNEL__
 
+#include <linux/interrupt.h>
+
+extern int rtc_month_days(unsigned int month, unsigned int year);
+extern int rtc_valid_tm(struct rtc_time *tm);
+extern int rtc_tm_to_time(struct rtc_time *tm, unsigned long *time);
+extern void rtc_time_to_tm(unsigned long time, struct rtc_time *tm);
+
 typedef struct rtc_task {
        void (*func)(void *private_data);
        void *private_data;
@@ -102,6 +109,7 @@ int rtc_register(rtc_task_t *task);
 int rtc_unregister(rtc_task_t *task);
 int rtc_control(rtc_task_t *t, unsigned int cmd, unsigned long arg);
 void rtc_get_rtc_time(struct rtc_time *rtc_tm);
+irqreturn_t rtc_interrupt(int irq, void *dev_id, struct pt_regs *regs);
 
 #endif /* __KERNEL__ */