On Mon, 12 Nov 2001, Jun Sun wrote:
> Geert Uytterhoeven wrote:
> > On Mon, 12 Nov 2001, Maciej W. Rozycki wrote:
> > > Unless you use a non-MC146818 RTC, which you need to write a separate
> > > driver for anyway.
> > Yep, so that's why both m68k and PPC have common routines to read/write the
> > RTC, with a /dev/rtc-compatible abstraction on top of it.
> Geert, what is the abstraction they used?
At first sight, we only use get_rtc_time() and mach_hwclk().
> The /dev/rtc interface is highly influenced by MC146818 chip, which not all
> RTC devices are alike. The only fundamental thing in the driver is really the
> read and write time.
> If their abstraction is reasonable, perhaps they can all converge to a better,
> more generic rtc interface.
Check out the following files from the m68k CVS tree (see
On PPC, they have something similar.
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- firstname.lastname@example.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds