[2597] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: What is this???

daemon@ATHENA.MIT.EDU (Neon Spiral Injector)
Mon Oct 6 16:30:50 1997

Date: 	Mon, 06 Oct 1997 16:23:21 -0400
From: Neon Spiral Injector <clubneon@safari.net>
To: linux-scsi@vger.rutgers.edu

Richard Waltham wrote:
>
> I'm not familiar with the 5380 drivers some I can't really comment on any of
> the above other than to suggest that you look at the source for the 5380
> drivers if you haven't already. There's a load of comments regarding set up
> for these type of cards - although mostly not very clear - to me anyway.
> 
> 0xcc000 looks kind of OK - address is in bytes rather than pages as used by
> dos drivers.
> 
> OWS (or 0ws) - zero wait state - not sure if this will have any effect other
> than slowing things down slightly if off.
> PIO - programmed I/O - data transfered by program rather than DMA
> TERM - something to do with termination - if the board has active
> terminators then this probably enables them. Or could be to enable termpwr -
> either way on is probably OK provide that you only use the internal or
> external connector and not both.
> 
> PIO is mentioned in the sources - setting may need to be reflected in a
> source code define - can't remember off hand.

Yeah, I have poured over the 5380 source, and now I know a lot more
about how to write a SCSI driver than I ever really wanted to.  The few
comments in the file gave me some ideas but nothing is still working.

What do you mean "kind of OK"?  How large are the DOS pages?  What is
the translation from DOS paged memory to the flat addressing of Linux? 
One of the authors of the driver says that his card with an I/O port of
0x350 has a memory address of 0xcc000.  I don't know if his card just
had different settings, but I'm using 0xcc000 with a card that claims to
have a I/O port of 0x300.  Any ideas?

I grep'ed through the source files in the /drives/scsi dirrectory, "pio"
is mentioned in the NCR5380.c and atari_NCR5380.c, but not g_NCR5380.c
which seems to be the one that is compiling with my current kernel
config.  The major comments about the pio in the NCR5380.c just say that
cards based around that chip are braindead when the pio is enabled so
I'll just avoid it.

The TERM is off by default on this card, but doesn't seem to do anything
different on in DOS (still hangs in Linux).

So besides any more comments you want to make, I guess my only real
question is do I have the right memory address for the card, or should I
just start hunting through all possible combinations?  Any guesses as
which ones I should try first if that is the case?

Thanks one more time,
Chris

home help back first fref pref prev next nref lref last post