1 /* $Id: rtc-std.c,v 1.2 1998/06/25 20:19:16 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
7 * RTC routines for PC style attached Dallas chip.
9 * Copyright (C) 1998 by Ralf Baechle
11 #include <linux/mc146818rtc.h>
14 static unsigned char std_rtc_read_data(unsigned long addr
)
16 outb_p(addr
, RTC_PORT(0));
17 return inb_p(RTC_PORT(1));
20 static void std_rtc_write_data(unsigned char data
, unsigned long addr
)
22 outb_p(addr
, RTC_PORT(0));
23 outb_p(data
, RTC_PORT(1));
26 static int std_rtc_bcd_mode(void)
31 struct rtc_ops std_rtc_ops
= {