Joerg Schilling wrote: > James Carlson <carls...@workingcode.com> wrote: > >> I don't think the issue you're talking about is really related to the >> original poster's question. It turns out that he has a small external >> device that toggles the RI input in response to external events, and >> he'd like to write an application to monitor these events. He's just >> bit-bashing for a special application. It's got nothing to do with >> dial-in or out. > > Yes, he mentioned this later.... > > But I also mentioned that is is simple to write a driver that supports such > information. As Solaris does not support DCF-77 receivers, I did e.g. write a > small driver that installs itself in the related callback tables from the > "zs" > driver in order to fetch the time when a related line from the DCF-77 > receiver > indicated a second clock signal. This driver later allowed to read the time > stamp via ioctl.
As long as your DCF-77 receiver has a PPS output, the system already supports it, and has supported it for ages. No special driver required. Look into the TIOCSPPS ioctl on the termio(7I) man page. Instead of relaying the information to user space (which involves latency), the mechanism automatically adjusts the system clock and latches the timestamp of the last tick. You can get the timestamp with TIOCGPPSEV. I'm pretty sure that xntpd supports this interface. I remember a co-working in Burlington setting up a test system with a GPS time source many years ago. -- James Carlson 42.703N 71.076W <carls...@workingcode.com> _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code