Ok. I didn't make 2.4.0 in 2000. Tough. I tried, but we had some
[davej-history.git] / arch / mips / dec / rtc-dec.c
blobf54bc89e2ab01ea9ffd6867f0b318a8480d1ac94
2 /* $Id: rtc-jazz.c,v 1.2 1998/06/25 20:19:14 ralf Exp $
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
8 * RTC routines for DECstation style attached Dallas chip.
10 * Copyright (C) 1998 by Ralf Baechle, Harald Koerfgen
12 #include <linux/mc146818rtc.h>
14 extern char *dec_rtc_base;
16 static unsigned char dec_rtc_read_data(unsigned long addr)
18 return (dec_rtc_base[addr * 4]);
21 static void dec_rtc_write_data(unsigned char data, unsigned long addr)
23 dec_rtc_base[addr * 4] = data;
26 static int dec_rtc_bcd_mode(void)
28 return 0;
31 struct rtc_ops dec_rtc_ops =
33 &dec_rtc_read_data,
34 &dec_rtc_write_data,
35 &dec_rtc_bcd_mode