From: James S. <jsi...@us...> - 2001-09-04 21:20:31
|
Update of /cvsroot/linux-mips/linux/arch/mips/cobalt In directory usw-pr-cvs1:/tmp/cvs-serv32711 Added Files: rtc_qube.c Log Message: Renamed to work toward new time support. --- NEW FILE: rtc_qube.c --- /* * Low-level hardware access stuff for Cobalt Microserver 27 board. * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1995, 1996, 1997 by Ralf Baechle */ #include <linux/delay.h> #include <linux/kernel.h> #include <linux/linkage.h> #include <linux/types.h> #include <linux/sched.h> #include <linux/mc146818rtc.h> #include <asm/cachectl.h> #include <asm/cobalt/cobalt.h> #include <asm/segment.h> void dummy(void) { } static unsigned char cobalt_read_cmos(unsigned long reg) { unsigned char retval; VIA_PORT_WRITE(0x70, reg); retval = VIA_PORT_READ(0x71); VIA_DELAY(); return retval; } static void cobalt_write_cmos(unsigned char val, unsigned long reg) { VIA_PORT_WRITE(0x70, reg); VIA_PORT_WRITE(0x71, val); } struct rtc_ops cobalt_rtc_ops = { /* * How to access the RTC functions */ &cobalt_read_cmos, &cobalt_write_cmos, (void *)dummy /* rtc_bcd_mode */ }; |