]> git.baikalelectronics.ru Git - kernel.git/commit
ethoc: use system memory as buffer
authorThomas Chou <thomas@wytron.com.tw>
Sun, 4 Oct 2009 23:33:20 +0000 (23:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2009 10:50:14 +0000 (03:50 -0700)
commit2074b6a7f73e3c4b4c19ab266035283dbb3336b8
treefdfc6dbcb0d93226dd95a84d31192f43d147cfb6
parent96454030b41c19732539c3d5dcd768a586cc44a2
ethoc: use system memory as buffer

This patch enabled the ethoc to allocate system memory as buffer
when there is no dedicated buffer memory.

Some hardware designs may not have dedicated buffer memory such as
on chip or off chip SRAM. In this case, only one memory resource is
supplied in the platform data instead of two. Then a DMA buffer can
be allocated from system memory and used for the transfer.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethoc.c