]> git.proxmox.com Git - mirror_edk2.git/blobdiff - QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/OhcPeim.c
ArmPkg/CompilerIntrinsicsLib: Add uread, uwrite GCC assembly sources
[mirror_edk2.git] / QuarkSocPkg / QuarkSouthCluster / Usb / Ohci / Pei / OhcPeim.c
index c38d4969d8d4b5ff13aa66223e27fe409e6763d1..6997e6e38790f118c220e025edb4ecf209f63094 100644 (file)
@@ -3,13 +3,7 @@ This file contains the implementation of Usb Hc Protocol.
 \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
@@ -72,7 +66,6 @@ OhciControlTransfer (
   UINTN                         LeftLength;\r
   UINT8                         DataToggle;\r
 \r
-  UINTN                         ReqMapLength = 0;\r
   EFI_PHYSICAL_ADDRESS          ReqMapPhyAddr = 0;\r
 \r
   UINTN                         DataMapLength = 0;\r
@@ -140,7 +133,6 @@ OhciControlTransfer (
   // 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
@@ -356,26 +348,22 @@ OhciBulkTransfer (
 {\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
@@ -391,12 +379,8 @@ OhciBulkTransfer (
   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