[PARPORT] 1284.3


Tim Waugh (tim@cyberelk.demon.co.uk)
Mon, 14 Dec 1998 23:11:41 +0000 (GMT)


Hi guys,

At <URL:http://www.cyberelk.demon.co.uk/parport/parport_daisy.c>, you will
find the starting point for the 1284.3 code. It won't compile; it's
largely pseudo-code.

New functions in 1284.3:

int parport_daisy_init (void)

Called at initialisation time by parport_init.

struct pardevice *parport_open (int devnum, ...)

Just like parport_register_device, but instead of registering a device on
a port, you open a device with a particular "canonical device number".
This sets the daisy-chain address in the pardevice struct (not pictured).

void parport_close (struct pardevice *)

The converse of parport_open.

ssize_t parport_device_id (int devnum, char *buffer, size_t len)

Get the Device ID of device with canonical number devnum.

int parport_device_coords (int devnum, int *, int *, int*)

Get the adapter, mux port, and daisy chain address of device devnum.

int parport_device_num (int port, int mux, int daisy)

Converse of parport_device_coords.

I think that's all of them. Not shown are the planned changes to
parport_claim, which go something like:

        if (port->muxport >= 0)
                parport_select_port (port);
        if (dev->daisy != port->daisy)
                parport_select_device (dev);

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:54 EST