mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* i8253 != rtc
@ 2003-06-16 14:23 Pavel Machek
  2003-06-16 17:01 ` Jonathan Lundell
  2003-06-16 20:21 ` Patrick Mochel
  0 siblings, 2 replies; 3+ messages in thread
From: Pavel Machek @ 2003-06-16 14:23 UTC (permalink / raw)
  To: Patrick Mochel, kernel list

Hi!

 /* XXX this driverfs stuff should probably go elsewhere later -john
*/
 static struct sys_device device_i8253 = {
-       .name           = "rtc",
        .id             = 0,
-       .dev    = {
-               .name   = "i8253 Real Time Clock",
-       },
+       .cls    = &rtc_sysclass,
 };

...but i8253 is *not* real time clock. Its clock since
bootup. Realtime clock is near battery-backed CMOS RAM, its driver is
linux/drivers/char/rtc.c...

								Pavel
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: i8253 != rtc
  2003-06-16 14:23 i8253 != rtc Pavel Machek
@ 2003-06-16 17:01 ` Jonathan Lundell
  2003-06-16 20:21 ` Patrick Mochel
  1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Lundell @ 2003-06-16 17:01 UTC (permalink / raw)
  To: Pavel Machek, Patrick Mochel, kernel list

At 4:23pm +0200 6/16/03, Pavel Machek wrote:
>  /* XXX this driverfs stuff should probably go elsewhere later -john
>*/
>  static struct sys_device device_i8253 = {
>-       .name           = "rtc",
>         .id             = 0,
>-       .dev    = {
>-               .name   = "i8253 Real Time Clock",
>-       },
>+       .cls    = &rtc_sysclass,
>  };
>
>...but i8253 is *not* real time clock. Its clock since
>bootup. Realtime clock is near battery-backed CMOS RAM, its driver is
>linux/drivers/char/rtc.c...

FWIW, the legacy Intel databooks call it a "Programmable Interval 
Timer" (PIT). Likewise the 8254, a superset of the 8253. I don't know 
that Intel ever used the 'i' prefix on these parts.
-- 
/Jonathan Lundell.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: i8253 != rtc
  2003-06-16 14:23 i8253 != rtc Pavel Machek
  2003-06-16 17:01 ` Jonathan Lundell
@ 2003-06-16 20:21 ` Patrick Mochel
  1 sibling, 0 replies; 3+ messages in thread
From: Patrick Mochel @ 2003-06-16 20:21 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list


On Mon, 16 Jun 2003, Pavel Machek wrote:

> Hi!
> 
>  /* XXX this driverfs stuff should probably go elsewhere later -john
> */
>  static struct sys_device device_i8253 = {
> -       .name           = "rtc",
>         .id             = 0,
> -       .dev    = {
> -               .name   = "i8253 Real Time Clock",
> -       },
> +       .cls    = &rtc_sysclass,
>  };
> 
> ...but i8253 is *not* real time clock. 

D'oh. Noted and changed to 'pit'.


	-pat


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-16 20:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-16 14:23 i8253 != rtc Pavel Machek
2003-06-16 17:01 ` Jonathan Lundell
2003-06-16 20:21 ` Patrick Mochel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®