patch-2.1.44 linux/include/asm-mips/mc146818rtc.h
Next file: linux/include/asm-mips/mipsconfig.h
Previous file: linux/include/asm-mips/keyboard.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Thu Jun 26 12:33:39 1997
- Orig file:
v2.1.43/linux/include/asm-mips/mc146818rtc.h
- Orig date:
Thu Apr 11 23:49:44 1996
diff -u --recursive --new-file v2.1.43/linux/include/asm-mips/mc146818rtc.h linux/include/asm-mips/mc146818rtc.h
@@ -9,7 +9,7 @@
#ifndef RTC_PORT
#define RTC_PORT(x) (0x70 + (x))
-#define RTC_ALWAYS_BCD 1
+#define RTC_ALWAYS_BCD 0 /* RTC operates in binary mode */
#endif
/*
@@ -17,12 +17,10 @@
* an ISA port access but the way to access the date register differs ...
*/
#define CMOS_READ(addr) ({ \
-outb_p((addr),RTC_PORT(0)); \
-feature->rtc_read_data(); \
+feature->rtc_read_data(addr); \
})
#define CMOS_WRITE(val, addr) ({ \
-outb_p((addr),RTC_PORT(0)); \
-feature->rtc_write_data(val); \
+feature->rtc_write_data(val, addr); \
})
#endif /* __ASM_MIPS_MC146818RTC_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov