sane-project-website/old-archive/1999-02/0204.html

72 wiersze
2.5 KiB
HTML

<!-- received="Sat Feb 27 12:20:11 1999 PST" -->
<!-- sent="Sat, 27 Feb 1999 21:08:34 +0100" -->
<!-- name="Svend Daugaard Pedersen" -->
<!-- email="sdp@vip.cybercity.dk" -->
<!-- subject="Epson backend" -->
<!-- id="" -->
<!-- inreplyto="" -->
<title>sane-devel: Epson backend</title>
<h1>Epson backend</h1>
<b>Svend Daugaard Pedersen</b> (<a href="mailto:sdp@vip.cybercity.dk"><i>sdp@vip.cybercity.dk</i></a>)<br>
<i>Sat, 27 Feb 1999 21:08:34 +0100</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#204">[ date ]</a><a href="index.html#204">[ thread ]</a><a href="subject.html#204">[ subject ]</a><a href="author.html#204">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0205.html">David Mosberger-Tang: "Re: Epson backend"</a>
<li> <b>Previous message:</b> <a href="0203.html">Rick Knight: "Acer 310S BIOS info"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
During my work on porting the Epson backend to the Amiga I found the<br>
following minor bugs:<br>
<p>
- In the call (line 634)<br>
<p>
632 buf = (u_char *) head;<br>
633 if (s-&gt;hw-&gt;is_scsi)<br>
634 receive (s, buf, 4, status);<br>
635 else<br>
636 receive (s, buf, 1, status);<br>
<p>
it is expected that the last two bytes read from the scanner form<br>
a legal 16 bit integer.<br>
<p>
This is not the case on a M680x0 processor.<br>
<p>
- In line 849 (procedure 'attach')<br>
<br>
dummy_dev.sane.model = (char *) memcpy (str, buf + 16 + 8, 8);<br>
<p>
'buf' is not initialized if the scanner is a parallel port scanner.<br>
(I have not tested it on a parallel scanner but my C compiler told<br>
me that there is a potential problem).<br>
<p>
The ported backend has been reported to work with the following SCSI<br>
Epson scanners:<br>
<p>
GT9000, GT8500, GT7000, GT6500 and Perfection636<br>
<p>
A little addition around line 750 had to be made to make the backend<br>
recognize the Perfection scanner.<br>
<p>
Svend Daugaard Pedersen<br>
<p>
<p>
<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">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0205.html">David Mosberger-Tang: "Re: Epson backend"</a>
<li> <b>Previous message:</b> <a href="0203.html">Rick Knight: "Acer 310S BIOS info"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>