[TG3]: Add tagged status support.
[linux-2.6/verdex.git] / include / asm-mips / mach-dec / mc146818rtc.h
bloba326f451253b228ea979274204fbc205af8a5bb6
1 /*
2 * RTC definitions for DECstation style attached Dallas DS1287 chip.
4 * Copyright (C) 1998, 2001 by Ralf Baechle
5 * Copyright (C) 1998 by Harald Koerfgen
6 * Copyright (C) 2002 Maciej W. Rozycki
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version
11 * 2 of the License, or (at your option) any later version.
13 #ifndef __ASM_MIPS_DEC_RTC_DEC_H
14 #define __ASM_MIPS_DEC_RTC_DEC_H
16 #include <linux/types.h>
18 #include <asm/addrspace.h>
20 extern volatile u8 *dec_rtc_base;
21 extern unsigned long dec_kn_slot_size;
23 #define RTC_PORT(x) CPHYSADDR(dec_rtc_base)
24 #define RTC_IO_EXTENT dec_kn_slot_size
25 #define RTC_IOMAPPED 0
26 #undef RTC_IRQ
28 #define RTC_DEC_YEAR 0x3f /* Where we store the real year on DECs. */
30 #include <linux/mc146818rtc.h>
31 #include <linux/module.h>
32 #include <linux/types.h>
34 static inline unsigned char CMOS_READ(unsigned long addr)
36 return dec_rtc_base[addr * 4];
39 static inline void CMOS_WRITE(unsigned char data, unsigned long addr)
41 dec_rtc_base[addr * 4] = data;
44 #define RTC_ALWAYS_BCD 0
46 #endif /* __ASM_MIPS_DEC_RTC_DEC_H */