setup enviroment for compilation
[linux-2.4.21-pre4.git] / include / asm-m68k / rtc.h
1 /* asm-m68k/rtc.h
2  *
3  * Copyright Richard Zidlicky
4  * implementation details for genrtc/q40rtc driver
5  */
6 /* permission is hereby granted to copy, modify and redistribute this code
7  * in terms of the GNU Library General Public License, Version 2 or later,
8  * at your option.
9  */
10
11 #ifndef _ASM_RTC_H
12 #define _ASM_RTC_H
13
14 #ifdef __KERNEL__
15
16 #include <linux/config.h>
17 #include <linux/rtc.h>
18 #include <linux/delay.h>
19 #include <asm/machdep.h>
20
21 #define RTC_PIE 0x40            /* periodic interrupt enable */
22 #define RTC_AIE 0x20            /* alarm interrupt enable */
23 #define RTC_UIE 0x10            /* update-finished interrupt enable */
24
25 extern void gen_rtc_interrupt(unsigned long);
26
27 /* some dummy definitions */
28 #define RTC_SQWE 0x08           /* enable square-wave output */
29 #define RTC_DM_BINARY 0x04      /* all time/date values are BCD if clear */
30 #define RTC_24H 0x02            /* 24 hour mode - else hours bit 7 means pm */
31 #define RTC_DST_EN 0x01         /* auto switch DST - works f. USA only */
32
33
34 #endif /* __KERNEL__ */
35
36 #endif /* _ASM__RTC_H */