summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/cppi_dma.h
diff options
context:
space:
mode:
authorBin Liu <b-liu@ti.com>2016-06-30 12:12:29 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-07-17 08:23:57 +0900
commit239d2218108a5af7f6ffbd0752677ab46f8705be (patch)
treebf09469d8995184ad78f4d9026ecd5f816102f4b /drivers/usb/musb/cppi_dma.h
parent460ddbec8ff1237672a549740a288350e68ca00c (diff)
downloadlinux-239d2218108a5af7f6ffbd0752677ab46f8705be.tar.bz2
usb: musb: cppi41: move struct cppi41_dma_channel to header
Move struct cppi41_dma_channel to the header file so other modules can use it. Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/musb/cppi_dma.h')
-rw-r--r--drivers/usb/musb/cppi_dma.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/drivers/usb/musb/cppi_dma.h b/drivers/usb/musb/cppi_dma.h
index 40c31cecc8b7..7fdfb71a8f09 100644
--- a/drivers/usb/musb/cppi_dma.h
+++ b/drivers/usb/musb/cppi_dma.h
@@ -7,9 +7,10 @@
#include <linux/list.h>
#include <linux/errno.h>
#include <linux/dmapool.h>
+#include <linux/dmaengine.h>
-#include "musb_dma.h"
#include "musb_core.h"
+#include "musb_dma.h"
/* CPPI RX/TX state RAM */
@@ -123,4 +124,24 @@ struct cppi {
/* CPPI IRQ handler */
extern irqreturn_t cppi_interrupt(int, void *);
+struct cppi41_dma_channel {
+ struct dma_channel channel;
+ struct cppi41_dma_controller *controller;
+ struct musb_hw_ep *hw_ep;
+ struct dma_chan *dc;
+ dma_cookie_t cookie;
+ u8 port_num;
+ u8 is_tx;
+ u8 is_allocated;
+ u8 usb_toggle;
+
+ dma_addr_t buf_addr;
+ u32 total_len;
+ u32 prog_len;
+ u32 transferred;
+ u32 packet_sz;
+ struct list_head tx_check;
+ int tx_zlp;
+};
+
#endif /* end of ifndef _CPPI_DMA_H_ */