# Re: NCR5380 vs g_NCR5380

becka@rz.uni-duesseldorf.de
Wed, 23 Dec 1998 13:47:34 +0100 (MET)

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Reinhold Bader: "Mustek SE 12000SP"
- Previous message: Wolfgang Cohrs: "Re: GIMP plugin crashes !"

Hi !

> Why can't I get the NCR5380 module compiled inside or even outside the
> kernel, but I get only the option of g_NCR5380 (generic) instead when building
> a 2.0.36 kernel?

Do you have the "incomplete or experimental code" flog on ?

> to make the interface work you need to load the module NCR5380 with option
> dtc3181e=<port>,0. But I can't have the NCR5380 module and even if I could,
> after reading the file /usr/src/linux/drivers/scsi/NCR5380.c I couldn't find
> any dtc3181e symbols scaned

That's probably only, when it is built into the kernel. There is a central
table for that. As a module you would rather give io= and irq= on the
insmod command line.

> Which is the symbol I should declare the address with and which addresses
> should I search?

io= is the symbol, and IIRC they are at 0x280 or something. But I have a
genuine NCR53c400 that came with the scanner, and I have jumpers for the
address.

> It ain't possible to reboot 0xFFFF times in order to check
> all possible addresses!!!!!!!

Yep. You only need 0x1fff times, as the address is always a multiple of 0x0008.
And as it is an ISA card, it usually is below 0x400, limiting it to 0x80
times ... And you can skip a few occupied by other cards ...

And noone usually goes below 0x200 with a normal card, so 0x40.

How is this card configured in the first place ? If it has no jumpers,
chances are, that it is either PNP, so try isapnptools, or uses some other
weird wakeup-setup scheme, so you would have to run the windoze driver
first to set it up, and then _soft_ reboot to linux. E.g. using loadlin.

Try to get at the address first. E.g. by searching the .ini files under
windoze or whatever ... Or that strange hardware registry they have in
control/system.

> /usr/src/linux/drivers/scsi/dtc.c it says that I can use dtc=<port>,<irq>

That's for kernel builtin drivers. Modules always take io= ...

CU, ANdy

    --
    Andreas Beck              |  Email :  <Andreas.Beck@ggi-project.org>

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

     Next message: Reinhold Bader: "Mustek SE 12000SP"
     Previous message: Wolfgang Cohrs: "Re: GIMP plugin crashes !"