Philip Blundell (pb@nexus.co.uk)
Mon, 09 Feb 1998 10:23:49 +0000
In message <m0y1pXn-0005FsC@lightning.swansea.linux.org.uk>, Alan Cox writes:
>a) Do more in it. One flaw with parport is it lacks things like
>block operations.
There are hooks for some block ops there (though most of them aren't
implemented yet). If anybody wants to add more they should feel free.
> func=parport_query_handler(PARPORT_FUNC_DRIVE_PPA):
>
> if(func==NULL) /* this combination has no fast ppa driver for zips */
> {
> slow_way
> }
> else
> func(whatever)
PPA is esoteric enough that it probably doesn't belong in the parport code.
But there's nothing to stop PPA doing stuff like this:
if (parport_type == one we understand)
{
/* fast way using direct port access and assembler if need
be */
}
else
{
/* slow way using parport abstraction layer */
}
p.
-- 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:17:27 EST