sane-project-website/old-archive/2001-06/0110.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=&lt;20010607064731.A8630@wanadoo.fr&gt;"><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>&gt; In umax_pp_low, the following code is wrong:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; /* me check if parport is does ECP */
</EM><BR>
<EM>&gt; mode = IEEE1284_MODE_ECP;
</EM><BR>
<EM>&gt; if (ioctl (fd, PPSETMODE, &amp;mode))
</EM><BR>
<EM>&gt; {
</EM><BR>
<EM>&gt; DBG (16, &quot;umax_pp: port '%s' hasn't ECP\n&quot;, parport_name);
</EM><BR>
<EM>&gt; }
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; That isn't checking what the port can do at all, but what the driver
</EM><BR>
<EM>&gt; will let you do. The successful PPSETMODE just means that the next
</EM><BR>
<EM>&gt; write() you do will cause the driver to write the data out using ECP.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; The only circumstance under which it might fail really is that
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; (a) the port doesn't have hardware ECP support, _AND_
</EM><BR>
<EM>&gt; (b) the kernel's IEEE 1284 implementation wasn't configured when you
</EM><BR>
<EM>&gt; built it
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Then:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; /* we try to set EPP 1.7 first */
</EM><BR>
<EM>&gt; mode = IEEE1284_MODE_EPPSL;
</EM><BR>
<EM>&gt; if (ioctl (fd, PPSETMODE, &amp;mode))
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; The comment is wrong.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; If you want to find out what the _hardware_ can do, you want to use
</EM><BR>
<EM>&gt; the PPGETMODES ioctl (and treat errors as 'not telling you').
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Tim.
</EM><BR>
<EM>&gt; */
</EM><BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The umax_pp backend has been changed in CVS to use PPGETMODES ioctl.
<BR>
<P>Regards,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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=&lt;20010607064731.A8630@wanadoo.fr&gt;">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>