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 PC style attached Dallas chip.
8 * Copyright (C) 1998, 2001 by Ralf Baechle
10 #include <linux/mc146818rtc.h>
13 static unsigned char std_rtc_read_data(unsigned long addr)
15 outb_p(addr, RTC_PORT(0));
16 return inb_p(RTC_PORT(1));
19 static void std_rtc_write_data(unsigned char data, unsigned long addr)
21 outb_p(addr, RTC_PORT(0));
22 outb_p(data, RTC_PORT(1));
25 static int std_rtc_bcd_mode(void)
30 struct rtc_ops std_rtc_ops = {