]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SourceLevelDebugPkg/Library/DebugCommunicationLibUsb/DebugCommunicationLibUsb.c
SourceLevelDebugPkg: Clean up source files
[mirror_edk2.git] / SourceLevelDebugPkg / Library / DebugCommunicationLibUsb / DebugCommunicationLibUsb.c
index 1836c055267b669422dac55edb62b32ed20dad30..6b800b327f7f391f948122eb7b1c855fdb902224 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Debug Port Library implementation based on usb debug port.\r
 \r
-  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\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
@@ -191,7 +191,7 @@ CalculateUsbDebugPortBar (
 \r
   VendorId = PciRead16 (PcdGet32(PcdUsbEhciPciAddress) + PCI_VENDOR_ID_OFFSET);\r
   DeviceId = PciRead16 (PcdGet32(PcdUsbEhciPciAddress) + PCI_DEVICE_ID_OFFSET);\r
-  \r
+\r
   if ((VendorId == 0xFFFF) || (DeviceId == 0xFFFF)) {\r
     return RETURN_UNSUPPORTED;\r
   }\r
@@ -199,7 +199,7 @@ CalculateUsbDebugPortBar (
   ProgInterface = PciRead8 (PcdGet32(PcdUsbEhciPciAddress) + PCI_CLASSCODE_OFFSET);\r
   SubClassCode  = PciRead8 (PcdGet32(PcdUsbEhciPciAddress) + PCI_CLASSCODE_OFFSET + 1);\r
   BaseCode      = PciRead8 (PcdGet32(PcdUsbEhciPciAddress) + PCI_CLASSCODE_OFFSET + 2);\r
-  \r
+\r
   if ((ProgInterface != PCI_IF_EHCI) || (SubClassCode != PCI_CLASS_SERIAL_USB) || (BaseCode != PCI_CLASS_SERIAL)) {\r
     return RETURN_UNSUPPORTED;\r
   }\r
@@ -312,7 +312,7 @@ UsbDebugPortIn (
       return RETURN_DEVICE_ERROR;\r
     }\r
   }\r
-  \r
+\r
   //\r
   // Clearing DONE bit by writing 1\r
   //\r
@@ -413,7 +413,7 @@ UsbDebugPortOut (
       return RETURN_DEVICE_ERROR;\r
     }\r
   }\r
-  \r
+\r
   //\r
   // Clearing DONE bit by writing 1\r
   //\r
@@ -747,7 +747,7 @@ InitializeUsbDebugHardware (
       Handle->Initialized = USBDBG_NO_DBG_CAB;\r
       return Status;\r
     }\r
-  \r
+\r
     Handle->Initialized = USBDBG_DBG_CAB;\r
   }\r
 \r
@@ -1053,7 +1053,7 @@ DebugPortInitialize (
   USB_DEBUG_PORT_HANDLE     Handle;\r
 \r
   //\r
-  // Validate the PCD PcdDebugPortHandleBufferSize value \r
+  // Validate the PCD PcdDebugPortHandleBufferSize value\r
   //\r
   ASSERT (PcdGet16 (PcdDebugPortHandleBufferSize) == sizeof (USB_DEBUG_PORT_HANDLE));\r
 \r