diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-01-30 13:30:26 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:30:26 +0100 |
commit | 6ce60b07e670e800c4c5cfe984ed5188e7a64135 (patch) | |
tree | 108c493c98bc8afa42e246c9494d59543556c8c4 /include/asm-x86/mc146818rtc_64.h | |
parent | 4ec08da02f0fda16fbc8dfa040568facaa576790 (diff) | |
download | blackbird-op-linux-6ce60b07e670e800c4c5cfe984ed5188e7a64135.tar.gz blackbird-op-linux-6ce60b07e670e800c4c5cfe984ed5188e7a64135.zip |
x86: unify mc146818rtc.h - prepare for sharing rtc code
Unify mc146818rtc.h by adding the rtc_cmos_read/write functions to
time_64.c. This is a preparatory patch to finaly share the rtc code,
which is unsurprisingly similar.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/mc146818rtc_64.h')
-rw-r--r-- | include/asm-x86/mc146818rtc_64.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/include/asm-x86/mc146818rtc_64.h b/include/asm-x86/mc146818rtc_64.h deleted file mode 100644 index d6e3009430c1..000000000000 --- a/include/asm-x86/mc146818rtc_64.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Machine dependent access functions for RTC registers. - */ -#ifndef _ASM_MC146818RTC_H -#define _ASM_MC146818RTC_H - -#include <asm/io.h> - -#ifndef RTC_PORT -#define RTC_PORT(x) (0x70 + (x)) -#define RTC_ALWAYS_BCD 1 /* RTC operates in binary mode */ -#endif - -/* - * The yet supported machines all access the RTC index register via - * an ISA port access but the way to access the date register differs ... - */ -#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)); \ -}) - -#define RTC_IRQ 8 - -#endif /* _ASM_MC146818RTC_H */ |