more changes on original files
[linux-2.4.git] / include / asm-mips / dec / rtc-dec.h
1 /*
2  *      include/asm-mips/dec/rtc-dec.h
3  *
4  *      RTC definitions for DECstation style attached Dallas DS1287 chip.
5  *
6  *      Copyright (C) 2002  Maciej W. Rozycki
7  *
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.
12  */
13 #ifndef __ASM_MIPS_DEC_RTC_DEC_H
14 #define __ASM_MIPS_DEC_RTC_DEC_H
15
16 #include <linux/types.h>
17
18 #include <asm/addrspace.h>
19
20 extern volatile u8 *dec_rtc_base;
21 extern unsigned long dec_kn_slot_size;
22
23 extern struct rtc_ops dec_rtc_ops;
24
25 #define RTC_PORT(x)     CPHYSADDR(dec_rtc_base)
26 #define RTC_IO_EXTENT   dec_kn_slot_size
27 #define RTC_IOMAPPED    0
28 #define RTC_IRQ         0
29
30 #define RTC_DEC_YEAR    0x3f    /* Where we store the real year on DECs.  */
31
32 #endif /* __ASM_MIPS_DEC_RTC_DEC_H */