mei: dma ring: implement transmit flow
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 22 Nov 2018 11:11:40 +0000 (13:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2018 15:59:48 +0000 (16:59 +0100)
commitc30362cc326ac5c3d4e6c96aa8f68dbd86955489
tree5f53064c6b4222e9b1873cf16d955761bb5c5248
parent6316321f12ad30cf5af176f26bb39897b320ef46
mei: dma ring: implement transmit flow

Implement a circular buffer on allocated system memory. Read and write
indices are stored on the control block which is also shared between the
device and the host.
Two new functions are exported from the DMA module: mei_dma_ring_write,
and mei_dma_ring_empty_slots. The former simply copy a packet on the TX
DMA circular buffer and later, returns the number of empty slots on the
TX DMA circular buffer.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/client.c
drivers/misc/mei/dma-ring.c
drivers/misc/mei/mei_dev.h