2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * RTC routines for DECstation style attached Dallas DS1287 chip.
8 * Copyright (C) 1998, 2001 by Ralf Baechle
9 * Copyright (C) 1998 by Harald Koerfgen
10 * Copyright (C) 2002 Maciej W. Rozycki
13 #include <linux/mc146818rtc.h>
14 #include <linux/module.h>
15 #include <linux/types.h>
17 volatile u8 *dec_rtc_base;
19 static unsigned char dec_rtc_read_data(unsigned long addr)
21 return dec_rtc_base[addr * 4];
24 static void dec_rtc_write_data(unsigned char data, unsigned long addr)
26 dec_rtc_base[addr * 4] = data;
29 static int dec_rtc_bcd_mode(void)
34 struct rtc_ops dec_rtc_ops = {
40 EXPORT_SYMBOL(dec_rtc_base);