2 * Machine dependent access functions for RTC registers.
4 #ifndef __ASM_SPARC64_MC146818RTC_H
5 #define __ASM_SPARC64_MC146818RTC_H
7 #include <linux/config.h>
12 extern unsigned long ds1287_regs;
14 #define ds1287_regs (0UL)
16 #define RTC_PORT(x) (ds1287_regs + (x))
17 #define RTC_ALWAYS_BCD 0
21 * The yet supported machines all access the RTC index register via
22 * an ISA port access but the way to access the date register differs ...
24 #define CMOS_READ(addr) ({ \
25 outb_p((addr),RTC_PORT(0)); \
28 #define CMOS_WRITE(val, addr) ({ \
29 outb_p((addr),RTC_PORT(0)); \
30 outb_p((val),RTC_PORT(1)); \
35 #endif /* __ASM_SPARC64_MC146818RTC_H */