*BSD News Article 15889


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!uqcspe!cs.uq.oz.au!shocking
From: shocking@cs.uq.oz.au (Stephen Hocking)
Newsgroups: comp.os.386bsd.development
Subject: Re: (hand) scanner drivers for 386BSD?
Keywords: handscanners genius b105a
Message-ID: <13330@uqcspe.cs.uq.oz.au>
Date: 11 May 93 05:43:31 GMT
References: <C6ro74.47x@cs.vu.nl>
Sender: news@cs.uq.oz.au
Reply-To: shocking@cs.uq.oz.au
Lines: 34

In <C6ro74.47x@cs.vu.nl> sreiz@cs.vu.nl (Reiz Steven) writes:


>Hello!

>Is anyone working on a driver for 386BSD for the Genius B105A? For
>other (hand)scanners? It seems like a good idea to start a workgroup
>if more people are interested. Let me know what you think, and let's
>give 386BSD some eyes on wheels!

>Bye!

>	Steven Reiz (sreiz@cs.vu.nl)

	Last year, somneone posted a driver for this for SVR4 unix. It accessed
the DMA registers directly and did a few other bad trhings. It also locked
out everything else for the duration of the transfer. My solution to this is
to use the cycling DMA mode (where you set the DMA continously cyling around
a 64k buffer) and use the timeout facility to wakeup every 1/4 of the way
through, checking the residual to see if the transfer has moved onto the
next part of the segment, and if so, transfering the chunk off to the users
buffers. I wrote a driver for the DT 2801 ADC card for data acquistion under
Microport Unix, using this technique. Ask the Physiology Dept at Sydney Uni
- I believe they are still using it.

	Cheers,


	Stephen
--
            "Toddlers are the stormtroopers of the Lords of Entropy"

shocking@cs.uq.oz.au				Phone (w) +61 7 227 5068
						      (h) +61 7 899 1766