Mailing List Archive

DTC 3181x solution
First I want to thank Alan Cox and Peter Adebahr for helping me
with this issue. I am posting this to both lists so people searching
for this in the future may have an easier job.
For the 2.0.3x series kernel a patch written by Ingmar Baumgart
and Ronald van Cuijlenborg adding support for this chip is available at
(you may have to dig into this page a bit):
http://www.schwaben.de/home/bgt/ingmar/
This patch has been integrated into the 2.2 series kernel.
I had to modify drivers/scsi/Makefile to make it read:
g_NCR5380.o: g_NCR5380.c
$(CC) $(CFLAGS) -DGENERIC_NCR5380_OVERRIDE="{{(NCR5380_map_type)0xffff, \
-1,0, BOARD_DTC3181E}};" -c g_NCR5380.c
To load the module you need something like:
insmod g_NCR5380 ncr_irq=11 ncr_addr=0x240 dtc_3181e=1
Note that the irq is a do nothing option for the current version
of this driver. Using the SCSI bus will result in 100% CPU utilization.
Also note that NCR400a doesn't support the same ports as DTC3181x
but for the rest it seems similar. Thus, the auto detection may fail if
the port is not explicitly specified. Quote from generic_NCR5380_detect:
u_int ncr_53c400a_ports[] = {0x280, 0x290, 0x300, 0x310, 0x330,
0x340, 0x348, 0x350, 0};
u_int dtc_3181e_ports[] = {0x220, 0x240, 0x280, 0x2a0, 0x2c0,
0x300, 0x320, 0x340, 0};

=================================================
Vasile Gaburici
Phone/Fax: +(40 1) 222 86 77
E-mail: gaburici@fx.ro
gaburici@kermit.cs.pub.ro
=================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
DTC 3181x solution [ In reply to ]
I want to thank Vasile for your post to the Linux Kernel Mailing list.
With your help I was able to get my DTC3181e SCSI card and scanner
working under Linux (a task I previously thought was impossible).
Using your suggestion to remove the jumper, I was also able get it
working with an IRQ and am now scanning thorough SANE-1.00
without using 100% CPU under Linux.
I am using an AcerScan 610S (which i believe is the same as a Vuego 610S
sold in Europe - it has the same scsi model string). It is also similar
to an Agfa SnapScan
I added the following line into my conf.modules file
options g_NCR5380 ncr_irq=11 ncr_addr=0x240 dtc_3181e=1
and using linux-2.2pre4, the correct g_NCR5380 module now autoloads when
I run xscanimage.
Unfortunately, I haven't been able to do the same with Windows 98.

I downloaded the file Vasile suggested from the domex web site, and although
the card now reports to have and IRQ, the CPU is still 100% utilized during
scanning under Windows 98.
It looks like the Win9x driver does not make use of the irq. I think that
in
Windoze 9x the PNP generic driver figures out that the card is using an
irq (the same way pnpdump does), but that doesn't guarantee that the
actual DTC driver will ever make use of it.
If anyone knows the location of a driver that does make use of the irq,
please
email me.
Cheers
-Robert
Robert Lowery
Localization Engineer
Colorbus Australia
Ph (03) 8574-8014
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/