2 * Machine dependent access functions for RTC registers.
4 #ifndef __ASM_SPARC64_MC146818RTC_H
5 #define __ASM_SPARC64_MC146818RTC_H
11 extern unsigned long ds1287_regs;
13 #define ds1287_regs (0UL)
15 #define RTC_PORT(x) (ds1287_regs + (x))
16 #define RTC_ALWAYS_BCD 0
20 * The yet supported machines all access the RTC index register via
21 * an ISA port access but the way to access the date register differs ...
23 #define CMOS_READ(addr) ({ \
24 outb_p((addr),RTC_PORT(0)); \
27 #define CMOS_WRITE(val, addr) ({ \
28 outb_p((addr),RTC_PORT(0)); \
29 outb_p((val),RTC_PORT(1)); \
34 #endif /* __ASM_SPARC64_MC146818RTC_H */