kopia lustrzana https://gitlab.com/sane-project/website
142 wiersze
4.6 KiB
HTML
142 wiersze
4.6 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>sane-devel: Re: umax_pp_low: ppdev</TITLE>
|
|
<META NAME="Author" CONTENT="stef (stef-listes@wanadoo.fr)">
|
|
<META NAME="Subject" CONTENT="Re: umax_pp_low: ppdev">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: umax_pp_low: ppdev</H1>
|
|
<!-- received="Wed Jun 6 21:36:37 2001" -->
|
|
<!-- isoreceived="20010607043637" -->
|
|
<!-- sent="Thu, 7 Jun 2001 06:47:31 +0200" -->
|
|
<!-- isosent="20010607044731" -->
|
|
<!-- name="stef" -->
|
|
<!-- email="stef-listes@wanadoo.fr" -->
|
|
<!-- subject="Re: umax_pp_low: ppdev" -->
|
|
<!-- id="20010607064731.A8630@wanadoo.fr" -->
|
|
<!-- inreplyto="20010606094146.E26782@redhat.com" -->
|
|
<STRONG>From:</STRONG> stef (<A HREF="mailto:stef-listes@wanadoo.fr?Subject=Re:%20umax_pp_low:%20ppdev&In-Reply-To=<20010607064731.A8630@wanadoo.fr>"><EM>stef-listes@wanadoo.fr</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Wed Jun 06 2001 - 21:47:31 PDT
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0111.html">Guru Prasad: "Any Work is done for barcode scanners."</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0109.html">Christoph Knauer: "Select gray-channel for grey scanns"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0099.html">Tim Waugh: "umax_pp_low: ppdev"</A>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#110">[ date ]</A>
|
|
<A HREF="index.html#110">[ thread ]</A>
|
|
<A HREF="subject.html#110">[ subject ]</A>
|
|
<A HREF="author.html#110">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
On Wed, Jun 06, 2001 at 09:41:46AM +0100, Tim Waugh wrote:
|
|
<BR>
|
|
<EM>> In umax_pp_low, the following code is wrong:
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> /* me check if parport is does ECP */
|
|
</EM><BR>
|
|
<EM>> mode = IEEE1284_MODE_ECP;
|
|
</EM><BR>
|
|
<EM>> if (ioctl (fd, PPSETMODE, &mode))
|
|
</EM><BR>
|
|
<EM>> {
|
|
</EM><BR>
|
|
<EM>> DBG (16, "umax_pp: port '%s' hasn't ECP\n", parport_name);
|
|
</EM><BR>
|
|
<EM>> }
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> That isn't checking what the port can do at all, but what the driver
|
|
</EM><BR>
|
|
<EM>> will let you do. The successful PPSETMODE just means that the next
|
|
</EM><BR>
|
|
<EM>> write() you do will cause the driver to write the data out using ECP.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> The only circumstance under which it might fail really is that
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> (a) the port doesn't have hardware ECP support, _AND_
|
|
</EM><BR>
|
|
<EM>> (b) the kernel's IEEE 1284 implementation wasn't configured when you
|
|
</EM><BR>
|
|
<EM>> built it
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Then:
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> /* we try to set EPP 1.7 first */
|
|
</EM><BR>
|
|
<EM>> mode = IEEE1284_MODE_EPPSL;
|
|
</EM><BR>
|
|
<EM>> if (ioctl (fd, PPSETMODE, &mode))
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> The comment is wrong.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> If you want to find out what the _hardware_ can do, you want to use
|
|
</EM><BR>
|
|
<EM>> the PPGETMODES ioctl (and treat errors as 'not telling you').
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Tim.
|
|
</EM><BR>
|
|
<EM>> */
|
|
</EM><BR>
|
|
<P> The umax_pp backend has been changed in CVS to use PPGETMODES ioctl.
|
|
<BR>
|
|
<P>Regards,
|
|
<BR>
|
|
Stef
|
|
<BR>
|
|
<P><PRE>
|
|
--
|
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20umax_pp_low:%20ppdev&In-Reply-To=<20010607064731.A8630@wanadoo.fr>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0111.html">Guru Prasad: "Any Work is done for barcode scanners."</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0109.html">Christoph Knauer: "Select gray-channel for grey scanns"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0099.html">Tim Waugh: "umax_pp_low: ppdev"</A>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#110">[ date ]</A>
|
|
<A HREF="index.html#110">[ thread ]</A>
|
|
<A HREF="subject.html#110">[ subject ]</A>
|
|
<A HREF="author.html#110">[ author ]</A>
|
|
</UL>
|
|
<!-- trailer="footer" -->
|
|
<HR NOSHADE>
|
|
<P>
|
|
<SMALL>
|
|
<EM>
|
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
|
: <EM>Wed Jun 06 2001 - 21:37:05 PDT</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|