lkml.org 
[lkml]   [2006]   [Jan]   [4]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Ping-Pong Compatible DMA buffer chaining
FromAlan Cox <>
DateWed, 04 Jan 2006 08:43:49 +0000
On Mer, 2006-01-04 at 10:58 +0530, Deven Balani wrote:
> My hardware has two Buffers B0 and B1 for both Tx and Rx path.
> I had to fill the first buffer initially and then _continue_ a walk
> through the sg list with help of buffer completion interrupts of B0 &
> B1.

This looks workable to me. You can possibly also use the max_Sectors
field in the sht to simplify the logic by letting the kernel split the
sg entries before they become too large for your hardware.

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-01-04 09:44    [from the cache]
©2003-2008