summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-04-14 16:05:54 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-04-19 11:11:57 +0300
commitb058f3e8a3991ba3ea3504fea1faf81974cf17fa (patch)
treeeb5710ee9c7354c58cd4289382582750884d439b /drivers/usb/dwc3
parentcf6d867d3b57d4eca229b3c506216d98d88be49c (diff)
downloadop-kernel-dev-b058f3e8a3991ba3ea3504fea1faf81974cf17fa.zip
op-kernel-dev-b058f3e8a3991ba3ea3504fea1faf81974cf17fa.tar.gz
usb: dwc3: core: add helper to extract trb type
This helper will be used later to convert trb type into a human-readable string for debugfs. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index c3ea427..bbbd178 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -580,6 +580,7 @@ enum dwc3_link_state {
#define DWC3_TRB_CTRL_IOC (1 << 11)
#define DWC3_TRB_CTRL_SID_SOFN(n) (((n) & 0xffff) << 14)
+#define DWC3_TRBCTL_TYPE(n) ((n) & (0x3f << 4))
#define DWC3_TRBCTL_NORMAL DWC3_TRB_CTRL_TRBCTL(1)
#define DWC3_TRBCTL_CONTROL_SETUP DWC3_TRB_CTRL_TRBCTL(2)
#define DWC3_TRBCTL_CONTROL_STATUS2 DWC3_TRB_CTRL_TRBCTL(3)
OpenPOWER on IntegriCloud