logo       

Re: Bidirectional support: msg#00297

Subject: Re: Bidirectional support




Christoph Hellwig wrote:
>
> > Is it sound reasonable to extend the scatter-gather structure to
include
> > data direction flag and by that bypass the interface problem and allow
> > support for bidirectional commands?
>
> Why do you need the flag in the scatterlist?  We already have a
dma_direction
> enum in the scsi_cmnd that's pased to the dma mapping routines, it may
> be DMA_BIDRECTIONAL although that's currently not used by any code.

I can use this DMA_BIDIRECTIONAL flag. But I still do need somthing like a
scatterlist to overcome the fact that we have only one pointer for data
buffer instead of two, one for data out and one for data in.

- Liran

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



<Prev in Thread] Current Thread [Next in Thread>