Re: developing plustek driver-- questions

Antal Novak (afn@weevil.net)
Tue, 21 Jul 1998 16:12:54 -0400 (EDT)

I don't like low-level OS-dependent... I've got FreeBSD and Linux, and I'm
sure many others use different OSes; it would be too hard to develop
low-level drivers for every OS. It's much simpler to have to manually
specify an I/O port (and in the future, it might be auto-detectable)...

Antal Novak
Weevil Systems Programming Enterprises
afn@weevil.net
http://www.weevil.net

"It took only 6 days for God to make world;
Why is it taking me twice as long in FreeBSD?"
<w0lf> from #FreeBSD

I searched for my Soul, but found it nowhere...
I searched for God, but found him nowhere...
I searched for my Brother, and found all Three.

Ancient Chinese Proverb

On Tue, 21 Jul 1998, Jon Knight wrote:

> On Mon, 20 Jul 1998, Antal Novak wrote:
> > Also, for parallel port scanners, how should a backend determine the port
> > to use for the scanner? Although 0x378 is all but standard, I would like
> > to make this as portable as possible. Should it simply read that from its
> > config file, I wonder?
>
> My thoughts on this part was to make a loadable kernel module for the
> parallel port low level driver which could then have its port address
> default to 0x378 but also have a different port address passed in on the
> command line. Of course this ties the solution down to Linux (in my case
> - I've not got a FreeBSD box so I don't know if they can support loadable
> kernel modules or not). The SANE code then talks to this low level,
> platform dependant code using /dev/scanner or /dev/plustek.
>
> Tatty bye,
>
> Jim'll
>
> #!/usr/bin/perl -- -Whois++-client-in-6-lines-of-Perl -Beat-that-Z39.50!
> use IO::Socket;sub w{$f=shift;$a{$f}=1;($h,$p,$q)=split("/",$f);$s=
> IO::Socket::INET->new(PeerAddr=>"$h:$p")||return;print $s "$q\r\n";while(<$s>)
> {next if(/^%/);if(/^# SERVER-TO-ASK/){while(<$s>){$x=$1 if/Name: (.*)\r\n$/;$y
> =$1 if/Port: (.*)\r\n$/;$f="$x/$y/$q";@j=(@j,$f)if(/^# END/&&!$a{$f})}}else{
> print}}close($s)}@j=shift;while(@j){w(pop(@j))}# whois++.pl host/port/query
>
>
> --
> Source code, list archive, and docs: http://www.mostang.com/sane/
> To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
>

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com