This source file includes following definitions.
- CMOS_READ
- CMOS_WRITE
1
2
3
4
5
6
7
8
9
10
11 #ifndef __ASM_MACH_JAZZ_MC146818RTC_H
12 #define __ASM_MACH_JAZZ_MC146818RTC_H
13
14 #include <linux/delay.h>
15
16 #include <asm/io.h>
17 #include <asm/jazz.h>
18
19 #define RTC_PORT(x) (0x70 + (x))
20 #define RTC_IRQ 8
21
22 static inline unsigned char CMOS_READ(unsigned long addr)
23 {
24 outb_p(addr, RTC_PORT(0));
25 return *(volatile char *)JAZZ_RTC_BASE;
26 }
27
28 static inline void CMOS_WRITE(unsigned char data, unsigned long addr)
29 {
30 outb_p(addr, RTC_PORT(0));
31 *(volatile char *)JAZZ_RTC_BASE = data;
32 }
33
34 #define RTC_ALWAYS_BCD 0
35
36 #define mc146818_decode_year(year) ((year) + 1980)
37
38 #endif