GS4500 scanner driver
=====================

Unless you have > 16M memory I'd suggest using it as a loadable module.
Just say "make ; insmod gs4500".

If you habe more memory you should include it into the kernel, because
DMA may fail if memory above 16M is allocated as buffer. (You have to patch
the kernel by hand! kernel.patch gives you an idea how.)

You have to create /dev/scanner with a matching major device number
(notice the change!), eg. "mknod /dev/scanner c 26 0".

Supported Scanner:
- Genius GeniScan GS4500
? Genius GeniScan GS4000 (DOS drivers for the GS4000 work
  with my GS4500 so I'd assume this driver works with a
  GS4000)
? Genius GeniScan GS4500A (again, just a guess)


Features:
 *      - added automatic detection what io adresses and
 *        dma channel is set on the interface board
 *      - fixed a bug with dma channel selection
 *      - scanner dosn't flash when driver loads
 *      - changed device major to 26 like the other handheld
 *        scanner drivers use (avoids conflict with ibcs and
 *        sound driver)
 *      - added fsync to file_operations table (= NULL)
 *      - adapted scandemo from logitech driver for gs4500
 *      - added the option to create a loadable kernel module
 *      - changed buffer allocation to make
 *        loadable module work
 *      - changed ioctls to be compatible with M105, AC4096 and
 *        Logitech driver
 *      - small changes here and there...
 *

Included you find testscan.c by Richard Lyons which I have modified for
the new ioctls. Use it as "testscan | tee tmp.pnm | xloadimage stdin".
(xloadimage starts a lot faster than xv!)

Also included is gifscan where I added the P command so you can
save images als PBM bitmaps. (Saving as GIF is too slow to be usable
on my machine.)

We still need a better scanner application. While more and more drivers
get available, they are not of much use until end-user applications do
use them. X applications would be nice, but with this polling (!) driver,
speed is critical (at least on a slow machine like I have).

Thanks to Richard Lyons (pclink@qus102.qld.tne.oz.au, 
rick@razorback.brisnet.org.au) for his efforts.

Let me know if you have problems with the driver. I'll try to fix them.
Please let me also know what exact scanner type you used it with
successfully (other than GeniScan GS4500).


Author:
Jan Willamowius
jan@janhh.sh.sub.de

