diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-01-18 14:49:05 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-01-18 14:49:05 +0000 |
commit | 1ee71c250ba263ffe0f34a6ffbe28ba33d0f4fb8 (patch) | |
tree | cd84ec352f73c55b00d9d1b08751ddf40f2b58b3 /sys/dev/usb/xhcireg.h | |
parent | bd4d3fede70171a9a1d2d77189a03efd9063cb4f (diff) |
Complete synchronous abort method modeled after the existing ones.
Because our USB stack wants the aborted xfer to be removed from the
pipe during abort(), we have to sleep in the abort function.
Regarding the xHCI process, when a TD is being aborted, we simply stop
the endpoint and then move the dequeue pointer past its last TRB. This
is fairly simple for the moment since only one xfer can be pending on a
given pipe.
Diffstat (limited to 'sys/dev/usb/xhcireg.h')
-rw-r--r-- | sys/dev/usb/xhcireg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/xhcireg.h b/sys/dev/usb/xhcireg.h index 74e5edad8bb..424b8cb881d 100644 --- a/sys/dev/usb/xhcireg.h +++ b/sys/dev/usb/xhcireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: xhcireg.h,v 1.9 2015/01/02 18:06:25 mpi Exp $ */ +/* $OpenBSD: xhcireg.h,v 1.10 2015/01/18 14:49:04 mpi Exp $ */ /*- * Copyright (c) 2014 Martin Pieuchot. All rights reserved. @@ -435,7 +435,7 @@ struct xhci_trb { #define XHCI_CODE_CMD_RING_STOP 24 /* Command Stop (CS) requested */ #define XHCI_CODE_CMD_ABORTED 25 /* Command Abort (CA) operation */ #define XHCI_CODE_XFER_STOPPED 26 /* xfer terminated by a stop endpoint */ -#define XHCI_CODE_XFER_INVLEN 27 /* TRB transfer length invalid */ +#define XHCI_CODE_XFER_STOPINV 27 /* TRB transfer length invalid */ #define XHCI_CODE_XFER_SHORTPKT 28 /* Stopped before reaching end of TD */ #define XHCI_CODE_MELAT 29 /* Max Exit Latency too large */ #define XHCI_CODE_RESERVED 30 |