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 Jazz style attached Dallas chip.
8 * Copyright (C) 1998, 2001 by Ralf Baechle
10 #include <linux/mc146818rtc.h>
14 static unsigned char jazz_rtc_read_data(unsigned long addr)
16 outb_p(addr, RTC_PORT(0));
17 return *(char *)JAZZ_RTC_BASE;
20 static void jazz_rtc_write_data(unsigned char data, unsigned long addr)
22 outb_p(addr, RTC_PORT(0));
23 *(char *)JAZZ_RTC_BASE = data;
26 static int jazz_rtc_bcd_mode(void)
31 struct rtc_ops jazz_rtc_ops = {