This source file includes following definitions.
- CMOS_READ
- CMOS_WRITE
1
2
3
4
5
6
7
8
9 #ifndef __ASM_MIPS_DEC_RTC_DEC_H
10 #define __ASM_MIPS_DEC_RTC_DEC_H
11
12 #include <linux/types.h>
13 #include <asm/addrspace.h>
14 #include <asm/dec/system.h>
15
16 extern volatile u8 *dec_rtc_base;
17
18 #define ARCH_RTC_LOCATION
19
20 #define RTC_PORT(x) CPHYSADDR((long)dec_rtc_base)
21 #define RTC_IO_EXTENT dec_kn_slot_size
22 #define RTC_IOMAPPED 0
23 #undef RTC_IRQ
24
25 #define RTC_DEC_YEAR 0x3f
26
27 static inline unsigned char CMOS_READ(unsigned long addr)
28 {
29 return dec_rtc_base[addr * 4];
30 }
31
32 static inline void CMOS_WRITE(unsigned char data, unsigned long addr)
33 {
34 dec_rtc_base[addr * 4] = data;
35 }
36
37 #define RTC_ALWAYS_BCD 0
38
39 #endif