\r
Copyright (c) 2013-2015 Intel Corporation.\r
\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
UINTN LeftLength;\r
UINT8 DataToggle;\r
\r
- UINTN ReqMapLength = 0;\r
EFI_PHYSICAL_ADDRESS ReqMapPhyAddr = 0;\r
\r
UINTN DataMapLength = 0;\r
// Setup Stage\r
//\r
if(Request != NULL) {\r
- ReqMapLength = sizeof(EFI_USB_DEVICE_REQUEST);\r
ReqMapPhyAddr = (EFI_PHYSICAL_ADDRESS)(UINTN)Request;\r
}\r
SetupTd = OhciCreateTD (Ohc);\r
{\r
USB_OHCI_HC_DEV *Ohc;\r
ED_DESCRIPTOR *Ed;\r
- UINT8 EdDir;\r
UINT32 DataPidDir;\r
TD_DESCRIPTOR *HeadTd;\r
TD_DESCRIPTOR *DataTd;\r
TD_DESCRIPTOR *EmptyTd;\r
EFI_STATUS Status;\r
- EFI_USB_DATA_DIRECTION TransferDirection;\r
UINT8 EndPointNum;\r
UINTN TimeCount;\r
UINT32 ErrorCode;\r
\r
UINT8 CurrentToggle;\r
- VOID *Mapping;\r
UINTN MapLength;\r
EFI_PHYSICAL_ADDRESS MapPyhAddr;\r
UINTN LeftLength;\r
UINTN ActualSendLength;\r
BOOLEAN FirstTD;\r
\r
- Mapping = NULL;\r
MapLength = 0;\r
MapPyhAddr = 0;\r
LeftLength = 0;\r
Ohc = PEI_RECOVERY_USB_OHC_DEV_FROM_EHCI_THIS (This);\r
\r
if ((EndPointAddress & 0x80) != 0) {\r
- TransferDirection = EfiUsbDataIn;\r
- EdDir = ED_IN_DIR;\r
DataPidDir = TD_IN_PID;\r
} else {\r
- TransferDirection = EfiUsbDataOut;\r
- EdDir = ED_OUT_DIR;\r
DataPidDir = TD_OUT_PID;\r
}\r
\r