summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlessandro Zummo <a.zummo@towertech.it>2006-03-27 11:16:34 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-27 18:44:50 +0200
commitc58411e95d7f5062dedd1a3064af4d359da1e633 (patch)
tree8816ec8e20ae8b1d622b41bc1e7e74c2bbd1f34d /include
parent[PATCH] mips: fixed collision of rtc function name (diff)
downloadlinux-c58411e95d7f5062dedd1a3064af4d359da1e633.tar.xz
linux-c58411e95d7f5062dedd1a3064af4d359da1e633.zip
[PATCH] RTC Subsystem: library functions
RTC and date/time related functions. Signed-off-by: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/rtc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/rtc.h b/include/linux/rtc.h
index b739ac1f7ca0..8454337c7058 100644
--- a/include/linux/rtc.h
+++ b/include/linux/rtc.h
@@ -95,6 +95,11 @@ struct rtc_pll_info {
#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;