summaryrefslogtreecommitdiffstats
path: root/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2018-06-27 21:14:00 +0800
committerLiming Gao <liming.gao@intel.com>2018-06-28 11:19:52 +0800
commit77695f4da3dc8eedb6fc7fc67f91ef6ccd22daee (patch)
tree165a0742bc4af9973f73ad5443afdc07d8620254 /SourceLevelDebugPkg/Library/DebugCommunicationLibUsb
parentba0014b9f8ae1a593f03e744f26008214c2b06a8 (diff)
downloadedk2-77695f4da3dc8eedb6fc7fc67f91ef6ccd22daee.tar.gz
edk2-77695f4da3dc8eedb6fc7fc67f91ef6ccd22daee.tar.bz2
edk2-77695f4da3dc8eedb6fc7fc67f91ef6ccd22daee.zip
SourceLevelDebugPkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Diffstat (limited to 'SourceLevelDebugPkg/Library/DebugCommunicationLibUsb')
-rw-r--r--SourceLevelDebugPkg/Library/DebugCommunicationLibUsb/DebugCommunicationLibUsb.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb/DebugCommunicationLibUsb.c b/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb/DebugCommunicationLibUsb.c
index 1836c05526..6b800b327f 100644
--- a/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb/DebugCommunicationLibUsb.c
+++ b/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb/DebugCommunicationLibUsb.c
@@ -1,7 +1,7 @@
/** @file
Debug Port Library implementation based on usb debug port.
- Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -191,7 +191,7 @@ CalculateUsbDebugPortBar (
VendorId = PciRead16 (PcdGet32(PcdUsbEhciPciAddress) + PCI_VENDOR_ID_OFFSET);
DeviceId = PciRead16 (PcdGet32(PcdUsbEhciPciAddress) + PCI_DEVICE_ID_OFFSET);
-
+
if ((VendorId == 0xFFFF) || (DeviceId == 0xFFFF)) {
return RETURN_UNSUPPORTED;
}
@@ -199,7 +199,7 @@ CalculateUsbDebugPortBar (
ProgInterface = PciRead8 (PcdGet32(PcdUsbEhciPciAddress) + PCI_CLASSCODE_OFFSET);
SubClassCode = PciRead8 (PcdGet32(PcdUsbEhciPciAddress) + PCI_CLASSCODE_OFFSET + 1);
BaseCode = PciRead8 (PcdGet32(PcdUsbEhciPciAddress) + PCI_CLASSCODE_OFFSET + 2);
-
+
if ((ProgInterface != PCI_IF_EHCI) || (SubClassCode != PCI_CLASS_SERIAL_USB) || (BaseCode != PCI_CLASS_SERIAL)) {
return RETURN_UNSUPPORTED;
}
@@ -312,7 +312,7 @@ UsbDebugPortIn (
return RETURN_DEVICE_ERROR;
}
}
-
+
//
// Clearing DONE bit by writing 1
//
@@ -413,7 +413,7 @@ UsbDebugPortOut (
return RETURN_DEVICE_ERROR;
}
}
-
+
//
// Clearing DONE bit by writing 1
//
@@ -747,7 +747,7 @@ InitializeUsbDebugHardware (
Handle->Initialized = USBDBG_NO_DBG_CAB;
return Status;
}
-
+
Handle->Initialized = USBDBG_DBG_CAB;
}
@@ -1053,7 +1053,7 @@ DebugPortInitialize (
USB_DEBUG_PORT_HANDLE Handle;
//
- // Validate the PCD PcdDebugPortHandleBufferSize value
+ // Validate the PCD PcdDebugPortHandleBufferSize value
//
ASSERT (PcdGet16 (PcdDebugPortHandleBufferSize) == sizeof (USB_DEBUG_PORT_HANDLE));