aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.h
diff options
context:
space:
mode:
authorSarah Sharp <sarah.a.sharp@linux.intel.com>2011-04-19 20:43:33 -0400
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2011-05-02 19:42:56 -0400
commitb61d378f2da41c748aba6ca19d77e1e1c02bcea5 (patch)
treeefb1541eefb32e57bf619a8bd85748a31b283031 /drivers/usb/host/xhci.h
parent5cd43e33b9519143f06f507dd7cbee6b7a621885 (diff)
xhci 1.0: Set transfer burst last packet count field.
The xHCI 1.0 specification defines a new isochronous TRB field, called transfer burst last packet count (TBLPC). This field defines the number of packets in the last "burst" of packets in a TD. Only SuperSpeed endpoints can handle more than one burst, so this is set to the number for packets in a TD for all non-SuperSpeed devices (minus one, since the field is zero based). This patch should have no effect on host controllers that don't advertise the xHCI 1.0 (0x100) version number in their hci_version field. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r--drivers/usb/host/xhci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index 87ec3b079728..db661543a805 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -944,6 +944,7 @@ struct xhci_event_cmd {
944#define TRB_INTR_TARGET(p) (((p) & 0x3ff) << 22) 944#define TRB_INTR_TARGET(p) (((p) & 0x3ff) << 22)
945#define GET_INTR_TARGET(p) (((p) >> 22) & 0x3ff) 945#define GET_INTR_TARGET(p) (((p) >> 22) & 0x3ff)
946#define TRB_TBC(p) (((p) & 0x3) << 7) 946#define TRB_TBC(p) (((p) & 0x3) << 7)
947#define TRB_TLBPC(p) (((p) & 0xf) << 16)
947 948
948/* Cycle bit - indicates TRB ownership by HC or HCD */ 949/* Cycle bit - indicates TRB ownership by HC or HCD */
949#define TRB_CYCLE (1<<0) 950#define TRB_CYCLE (1<<0)