Changeset 80721 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb/DebugCommunicationLibUsb.c
- Timestamp:
- Sep 11, 2019 8:46:37 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133262
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-129237 /vendor/edk2/current 103735-103757,103769-103776,129194-133213
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb/DebugCommunicationLibUsb.c
r77662 r80721 2 2 Debug Port Library implementation based on usb debug port. 3 3 4 Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR> 5 This program and the accompanying materials 6 are licensed and made available under the terms and conditions of the BSD License 7 which accompanies this distribution. The full text of the license may be found at 8 http://opensource.org/licenses/bsd-license.php. 9 10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 4 Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR> 5 SPDX-License-Identifier: BSD-2-Clause-Patent 12 6 13 7 **/ … … 133 127 UINT32 EhciMemoryBase; 134 128 // 129 // The usb debug device In endpoint. 130 // 131 UINT8 InEndpoint; 132 // 133 // The usb debug device Out endpoint. 134 // 135 UINT8 OutEndpoint; 136 // 135 137 // The Bulk In endpoint toggle bit. 136 138 // … … 724 726 725 727 // 728 // Determine the usb debug device endpoints. 729 // 730 Handle->InEndpoint = UsbDebugPortDescriptor.DebugInEndpoint; 731 Handle->OutEndpoint = UsbDebugPortDescriptor.DebugOutEndpoint; 732 733 // 726 734 // enable the usb debug feature. 727 735 // … … 880 888 } 881 889 882 Status = UsbDebugPortOut(UsbDebugPortRegister, Buffer + Total, Sent, OUTPUT_PID, 0x7F, 0x01, UsbDebugPortHandle->BulkOutToggle);890 Status = UsbDebugPortOut(UsbDebugPortRegister, Buffer + Total, Sent, OUTPUT_PID, 0x7F, UsbDebugPortHandle->OutEndpoint, UsbDebugPortHandle->BulkOutToggle); 883 891 884 892 if (RETURN_ERROR(Status)) { … … 960 968 } 961 969 UsbDebugPortRegister->UsbAddress = 0x7F; 962 UsbDebugPortRegister->UsbEndPoint = 0x82& 0x0F;970 UsbDebugPortRegister->UsbEndPoint = UsbDebugPortHandle->InEndpoint & 0x0F; 963 971 964 972 //
Note:
See TracChangeset
for help on using the changeset viewer.