summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/hw.h
diff options
context:
space:
mode:
authorVahram Aharonyan <vahrama@synopsys.com>2016-11-10 04:27:58 +0100
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-11-18 12:54:19 +0100
commit3a1ec35160c69af3d2a44b0cf4bd0dea1026cdd1 (patch)
tree9c2b033cf9828731f821894635dfa15fb56e8e98 /drivers/usb/dwc2/hw.h
parentusb: dwc2: gadget: Add DMA descriptor chains for EP 0 (diff)
downloadlinux-3a1ec35160c69af3d2a44b0cf4bd0dea1026cdd1.tar.xz
linux-3a1ec35160c69af3d2a44b0cf4bd0dea1026cdd1.zip
usb: dwc2: host: Rename MAX_DMA_DESC_SIZE to HOST_DMA_NBYTES_LIMIT
Rename MAX_DMA_DESC_SIZE to HOST_DMA_NBYTES_LIMIT as it stores value of host DMA descriptor transfer bytes' limit. Values are different in case of gadget DMA descriptors. Signed-off-by: Vahram Aharonyan <vahrama@synopsys.com> Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc2/hw.h')
-rw-r--r--drivers/usb/dwc2/hw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/hw.h b/drivers/usb/dwc2/hw.h
index 5fad5a1a1a29..0e5bfb38b2df 100644
--- a/drivers/usb/dwc2/hw.h
+++ b/drivers/usb/dwc2/hw.h
@@ -820,6 +820,7 @@ struct dwc2_dma_desc {
#define HOST_DMA_ISOC_NBYTES_SHIFT 0
#define HOST_DMA_NBYTES_MASK (0x1ffff << 0)
#define HOST_DMA_NBYTES_SHIFT 0
+#define HOST_DMA_NBYTES_LIMIT 131071
/* Device Mode DMA descriptor status quadlet */
@@ -856,7 +857,6 @@ struct dwc2_dma_desc {
#define DEV_DMA_NBYTES_SHIFT 0
#define DEV_DMA_NBYTES_LIMIT 0xffff
-#define MAX_DMA_DESC_SIZE 131071
#define MAX_DMA_DESC_NUM_GENERIC 64
#define MAX_DMA_DESC_NUM_HS_ISOC 256