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)
commit0baa080c75cea6357bfba9b93ba598d747457cbd
treefdfc6dbcb0d93226dd95a84d31192f43d147cfb6
parent050f91dcd9a45a14449dded5180f633692b588d2
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