[sane-devel] EPP write with sanei_pp
Anderson Lizardo
andersonlizardo@yahoo.com.br
Mon, 25 Apr 2005 00:27:20 -0400
This is a multi-part message in MIME format.
--------------080701040407000208060805
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gerhard Jaeger wrote:
> first try and use the sanei_pp_outb_data function. if this does not work,
> extend the sanei_pp lib by the needed functionality.
Tested, and it didn't work ;). Attached a (fairly simple) patch that
adds the "sanei_pp_outb_epp" function.
Now I have geniusvp2 using sanei_pp and (hopefully) portable. I've
noticed some performance loss though, if compared to the old ppdev code.
I'm not sure if it's because the sanei_pp have "one-byte-per-call"
functions only (and in fact I had to implement a loop on my code so I
can write multiple bytes) or if it's overhead of the libieee1284 library
itself.
> Don't use the libieee directly!
I'm not sure why not. Is it for better portability?
> AFAIR epp_write_data will be called inside the libieee, when the port
> is set to EPP mode! In the end, write data for SPP/EPP should be the
> same function, as they use the same port!
AFAIK, SPP data port is base+0 while EPP data port is base+4, and in EPP
mode both are accessible, so when I tried to use sanei_pp_outb_data
function I suppose it was trying to write to base+0.
- --
Anderson Lizardo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFCbHGotyCO/xz4QpMRAg8tAJwP5Ej6PlZKSL80ZKIileuMZSNa7QCggulv
a9gO1Rf6iZYYCG6uQEJqTmI=
=5w5P
-----END PGP SIGNATURE-----
--------------080701040407000208060805
Content-Type: application/x-gzip;
name="sane-cvs-sanei_pp_add_outb_epp.patch.gz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="sane-cvs-sanei_pp_add_outb_epp.patch.gz"
H4sICLVsbEIAA3NhbmUtY3ZzLXNhbmVpX3BwX2FkZF9vdXRiX2VwcC5wYXRjaAC9VGFvm1YU
/Wx+xVGjTSaADbbjJmyd7DSss5Q5U5x1H9YNEd5jfioBBNjptPa/795H7DDHTjdVGpKNDdxz
D+fcc2e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