Re: Bringing the OpenCBM driver into the staging tree

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frédéric Brière
Date: Sunday, April 18, 2010 - 10:22 am

Greg KH <greg@kroah.com> wrote:

For precise timing purposes when polling the parallel port.  (Forgive
the alliteration.)

For example, a talking device will pull CLK down for 20us and release
it, after which DATA must be read within 70us.  Or, when sending a byte,
after the listener has released DATA, transmission must start within
200us.  (Notice how we don't always monitor the same line.)

In such cases, if an interrupt were to be triggered and take too much
time, the whole communication would be garbled.

(There is one case, when a listener is signaling that it is ready, which
has no upper bound and does not require prompt action.  That's when we
use the parport IRQ.)


BTW, I should point out that the 32ms above is the absolute worst case,
and would require a device to maliciously skirt on the maximum timing
allowances of this module.  I'm guessing 1-2ms is the likely case.)



You tell me, you're the kernel demi-God.  :)

Basically, this module needs a guaranteed sub-20us resolution when
polling the parallel port for inbound data.  (The PC parport
unfortunately only has one line capable of triggering an IRQ, which is
already used for the case above.)  And it may need an even greater
resolution when sending data, as other devices may not be so forgiving
of timing errors.


-- 
[FORTRAN] will persist for some time -- probably for at least the next decade.
		-- T. Cheatham

_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Bringing the OpenCBM driver into the staging tree, Frédéric Brière, (Sat Apr 17, 10:35 am)
Re: Bringing the OpenCBM driver into the staging tree, Gary Jennejohn, (Sun Apr 18, 2:40 am)
Re: Bringing the OpenCBM driver into the staging tree, Frédéric Brière, (Sun Apr 18, 5:52 am)
Re: Bringing the OpenCBM driver into the staging tree, Gary Jennejohn, (Sun Apr 18, 9:23 am)
Re: Bringing the OpenCBM driver into the staging tree, Gary Jennejohn, (Sun Apr 18, 9:37 am)
Re: Bringing the OpenCBM driver into the staging tree, Matt Mackall, (Sun Apr 18, 10:22 am)
Re: Bringing the OpenCBM driver into the staging tree, Frédéric Brière, (Sun Apr 18, 10:22 am)
Re: Bringing the OpenCBM driver into the staging tree, Frédéric Brière, (Sun Apr 18, 10:46 am)
Re: Bringing the OpenCBM driver into the staging tree, Matt Mackall, (Mon Apr 19, 3:53 pm)
Re: Bringing the OpenCBM driver into the staging tree, Frédéric Brière, (Thu Apr 22, 2:38 pm)