b2726fe34a657f80a2986d6d6b076e2b14cf0714
[linux-flexiantxendom0-3.2.10.git] / arch / mips64 / lib / rtc-no.c
1 /*
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
4  * for more details.
5  *
6  * Stub RTC routines to keep Linux from crashing on machine which don't
7  * have a RTC chip.
8  *
9  * Copyright (C) 1998, 2001 by Ralf Baechle
10  */
11 #include <linux/kernel.h>
12 #include <linux/mc146818rtc.h>
13
14 static unsigned char no_rtc_read_data(unsigned long addr)
15 {
16         panic("no_rtc_read_data called - shouldn't happen.");
17 }
18
19 static void no_rtc_write_data(unsigned char data, unsigned long addr)
20 {
21         panic("no_rtc_write_data called - shouldn't happen.");
22 }
23
24 static int no_rtc_bcd_mode(void)
25 {
26         panic("no_rtc_bcd_mode called - shouldn't happen.");
27 }
28
29 struct rtc_ops no_rtc_ops = {
30         &no_rtc_read_data,
31         &no_rtc_write_data,
32         &no_rtc_bcd_mode
33 };