Commit 3216c382 authored by Robert Sprowson's avatar Robert Sprowson Committed by ROOL
Browse files

Set final TRB for a TD size to '0'

xhci.c: From NetBSD 1.113.

Version 0.28. Tagged as 'XHCIDriver-0_28'
parent 30e34d4e
/* (0.27)
/* (0.28)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.27
#define Module_MajorVersion_CMHG 0.28
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 02 Jun 2018
#define Module_Date_CMHG 06 Mar 2020
#define Module_MajorVersion "0.27"
#define Module_Version 27
#define Module_MajorVersion "0.28"
#define Module_Version 28
#define Module_MinorVersion ""
#define Module_Date "02 Jun 2018"
#define Module_Date "06 Mar 2020"
#define Module_ApplicationDate "02-Jun-18"
#define Module_ApplicationDate "06-Mar-20"
#define Module_ComponentName "XHCIDriver"
#define Module_ComponentPath "mixed/RiscOS/Sources/HWSupport/USB/Controllers/XHCIDriver"
#define Module_FullVersion "0.27"
#define Module_HelpVersion "0.27 (02 Jun 2018)"
#define Module_LibraryVersionInfo "0:27"
#define Module_FullVersion "0.28"
#define Module_HelpVersion "0.28 (06 Mar 2020)"
#define Module_LibraryVersionInfo "0:28"
......@@ -3347,7 +3347,7 @@ xhci_device_ctrl_start(usbd_xfer_handle xfer)
parameter = DMAADDR(dma, 0);
KASSERT(len <= 0x10000);
status = XHCI_TRB_2_IRQ_SET(0) |
XHCI_TRB_2_TDSZ_SET(1) |
XHCI_TRB_2_TDSZ_SET(0) |
XHCI_TRB_2_BYTES_SET(len);
control = (isread ? XHCI_TRB_3_DIR_IN : 0) |
XHCI_TRB_3_TYPE_SET(XHCI_TRB_TYPE_DATA_STAGE) |
......@@ -3486,7 +3486,7 @@ xhci_device_bulk_start(usbd_xfer_handle xfer)
*/
KASSERT(len <= 0x10000);
status = XHCI_TRB_2_IRQ_SET(0) |
XHCI_TRB_2_TDSZ_SET(1) |
XHCI_TRB_2_TDSZ_SET(0) |
XHCI_TRB_2_BYTES_SET(len);
control = XHCI_TRB_3_TYPE_SET(XHCI_TRB_TYPE_NORMAL) |
XHCI_TRB_3_ISP_BIT | XHCI_TRB_3_IOC_BIT;
......@@ -3605,7 +3605,7 @@ xhci_device_intr_start(usbd_xfer_handle xfer)
parameter = DMAADDR(dma, 0);
KASSERT(len <= 0x10000);
status = XHCI_TRB_2_IRQ_SET(0) |
XHCI_TRB_2_TDSZ_SET(1) |
XHCI_TRB_2_TDSZ_SET(0) |
XHCI_TRB_2_BYTES_SET(len);
control = XHCI_TRB_3_TYPE_SET(XHCI_TRB_TYPE_NORMAL) |
XHCI_TRB_3_ISP_BIT | XHCI_TRB_3_IOC_BIT;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment