X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=QuarkSocPkg%2FQuarkSouthCluster%2FUsb%2FOhci%2FDxe%2FOhci.c;fp=QuarkSocPkg%2FQuarkSouthCluster%2FUsb%2FOhci%2FDxe%2FOhci.c;h=e19d4d825312693e97013df67591e62a6997ed3e;hp=f73a09bf4cea1f31b24a8e8d8ee18ece33af32e9;hb=2a4d0a30a8318b7eb87754660da0f81063338444;hpb=f87c0b5e4634379ed0e68fd0383151193f784ee2 diff --git a/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/Ohci.c b/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/Ohci.c index f73a09bf4c..e19d4d8253 100644 --- a/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/Ohci.c +++ b/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/Ohci.c @@ -637,13 +637,11 @@ OhciBulkTransfer( USB_OHCI_HC_DEV *Ohc; ED_DESCRIPTOR *HeadEd; ED_DESCRIPTOR *Ed; - UINT8 EdDir; UINT32 DataPidDir; TD_DESCRIPTOR *HeadTd; TD_DESCRIPTOR *DataTd; TD_DESCRIPTOR *EmptyTd; EFI_STATUS Status; - EFI_USB_DATA_DIRECTION TransferDirection; UINT8 EndPointNum; UINTN TimeCount; OHCI_ED_RESULT EdResult; @@ -672,13 +670,9 @@ OhciBulkTransfer( Ohc = USB_OHCI_HC_DEV_FROM_THIS (This); if ((EndPointAddress & 0x80) != 0) { - TransferDirection = EfiUsbDataIn; - EdDir = ED_IN_DIR; DataPidDir = TD_IN_PID; MapOp = EfiPciIoOperationBusMasterWrite; } else { - TransferDirection = EfiUsbDataOut; - EdDir = ED_OUT_DIR; DataPidDir = TD_OUT_PID; MapOp = EfiPciIoOperationBusMasterRead; } @@ -941,7 +935,6 @@ OhciInterruptTransfer ( EFI_STATUS Status; UINT8 EndPointNum; UINT32 DataPidDir; - EFI_USB_DATA_DIRECTION TransferDirection; INTERRUPT_CONTEXT_ENTRY *Entry; EFI_TPL OldTpl; BOOLEAN FirstTD; @@ -959,11 +952,9 @@ OhciInterruptTransfer ( } if ((EndPointAddress & 0x80) != 0) { - TransferDirection = EfiUsbDataIn; EdDir = ED_IN_DIR; DataPidDir = TD_IN_PID; } else { - TransferDirection = EfiUsbDataOut; EdDir = ED_OUT_DIR; DataPidDir = TD_OUT_PID; }