patch-2.4.0-test2 linux/include/linux/mc146818rtc.h

Next file: linux/include/linux/miscdevice.h
Previous file: linux/include/linux/major.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test1/linux/include/linux/mc146818rtc.h linux/include/linux/mc146818rtc.h
@@ -10,22 +10,10 @@
 
 #ifndef _MC146818RTC_H
 #define _MC146818RTC_H
-#include <asm/io.h>
-#include <linux/rtc.h> /* get the user-level API */
-
-#ifndef RTC_PORT
-#define RTC_PORT(x)	(0x70 + (x))
-#define RTC_ALWAYS_BCD	1
-#endif
 
-#define CMOS_READ(addr) ({ \
-outb_p((addr),RTC_PORT(0)); \
-inb_p(RTC_PORT(1)); \
-})
-#define CMOS_WRITE(val, addr) ({ \
-outb_p((addr),RTC_PORT(0)); \
-outb_p((val),RTC_PORT(1)); \
-})
+#include <asm/io.h>
+#include <linux/rtc.h>			/* get the user-level API */
+#include <asm/mc146818rtc.h>		/* register access macros */
 
 /**********************************************************************
  * register summary

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)