Subject: Re: Questions about NCR53C9X driver
To: Markus Baeurle <emw4maba@gp.fht-esslingen.de>
From: Mark Brinicombe <mark@causality.com>
List: tech-kern
Date: 07/14/1998 13:11:54
On Tue, 14 Jul 1998, Markus Baeurle wrote:

> Hello everybody!
> 
> -The card specific code is calling ncr53c9x_readregs() in csc_dma_go(), but
> this is not declared in ncr53c9xvar.h, so I suppose it's not to be used
> outside ncr53c9x.c. Is that true? If yes, how can I replace it?
> 
> -If no DMA is done (which is the only working mode for now), this is done in
> cscattach() (with csc and sc being pointers to a ncr53c9x_softc):
>  if(csc->sc_dc == NULL)
>    sc->sc_flags |= NCR_NODMA;
> Now there is no such define any more in 1.26. What's the equivalent?
> Is it ncr53c9x_dmaselect?

You may like to have a look at some of the Amiga drivers e.g.
amiga/dev/flsc.c
A quick glance at the code indicates that it has support for PIO mode as
well as DMA. From memory the NODMA stuff was an extra flag Scott Stevens
added to support non-dma modes but this can be implemented within the DMA
frame work of the driver.

The immediate thought is would be to perhaps base a new csc driver on
something like the flsc driver with the DMA code removed and just always
force the PIO support to be active.

Cheers,
				Mark