[PARPORT] IEEE1284


Tim Waugh (tim@cyberelk.demon.co.uk)
Sat, 5 Dec 1998 21:52:39 +0000 (GMT)


Hi again guys,

Here's the interface that I'm currently working on:

int parport_ieee1284_negotiate (port, mode)
As before.

ssize_t parport_ieee1284_read (port, buf, len, timeout)
ssize_t parport_ieee1284_write (port, buf, len, timeout)
The calls will return in about 'timeout' jiffies from the start of the
call, at the latest.

void parport_ieee1284_interrupt (irq, port, regs)
Handle an interrupt. It is up to the driver to set this as the interrupt
handler (or call it from its own interrupt handler).

int parport_ieee1284_set_channeladdress (port, channeladdress)
Set the ECP channel or EPP address. Returns non-zero if it's meaningless
for this mode.

int parport_ieee1284_get_channeladdress (port)
In EPP mode: address read.
In ECP mode: returns the channel address that the peripheral is using to
send its data. Perhaps parport_ieee1284_read should return a special
error code to indicate that this has changed.

You should shortly be able to see code that implements most of this at:
        ftp://ftp.torque.net/pub/parport/patch-2.1.131-1284.gz

How does that sound?

Tim.
*/

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:18:51 EST