]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SourceLevelDebugPkg: Clean up source files
authorLiming Gao <liming.gao@intel.com>
Wed, 27 Jun 2018 13:14:00 +0000 (21:14 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 28 Jun 2018 03:19:52 +0000 (11:19 +0800)
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>
37 files changed:
SourceLevelDebugPkg/DebugAgentDxe/DebugAgentDxe.c
SourceLevelDebugPkg/DebugAgentDxe/DebugAgentDxe.inf
SourceLevelDebugPkg/DebugAgentDxe/DebugAgentDxe.uni
SourceLevelDebugPkg/DebugAgentDxe/DebugAgentDxeExtra.uni
SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.c
SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.inf
SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.uni
SourceLevelDebugPkg/DebugAgentPei/DebugAgentPeiExtra.uni
SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c
SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.h
SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugMp.c
SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugMp.h
SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/ArchDebugSupport.c
SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/AsmFuncs.S
SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/ArchDebugSupport.c
SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgent/DxeDebugAgentLib.c
SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgent/DxeDebugAgentLib.h
SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgent/SerialIo.c
SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c
SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.c
SourceLevelDebugPkg/Library/DebugCommunicationLibUsb/DebugCommunicationLibUsb.c
SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Common.c
SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Dxe.c
SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Dxe.inf
SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Internal.h
SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Pei.c
SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Pei.inf
SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Transfer.c
SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/Ia32/IntHandlerFuncs.c
SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLib.c
SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLib.h
SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/X64/IntHandlerFuncs.c
SourceLevelDebugPkg/SourceLevelDebugPkg.dec
SourceLevelDebugPkg/SourceLevelDebugPkg.dsc
SourceLevelDebugPkg/SourceLevelDebugPkg.uni
SourceLevelDebugPkg/SourceLevelDebugPkgExtra.uni

index f5ae59fcb453376243cb357756e8f66af71f0e69..304c53dfaa557de53c01805310e79473b057a5a3 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   Initialize Debug Agent in DXE by invoking Debug Agent Library.\r
 \r
-Copyright (c) 2013 - 2015, 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
-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
+Copyright (c) 2013 - 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
+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
 \r
 **/\r
 \r
@@ -18,7 +18,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/DebugAgentLib.h>\r
 #include <Library/UefiLib.h>\r
 \r
-EFI_EVENT       mExitBootServiceEvent; \r
+EFI_EVENT       mExitBootServiceEvent;\r
 \r
 /**\r
   One notified function to disable Debug Timer interrupt when gBS->ExitBootServices() called.\r
index 7cd7a87126913f966dd4967691294a548f6645c5..67f9ec6d55dcb4b327a076a7ee4db9d3fdceaf6f 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #  This DXE driver will invoke Debug Agent Library to initialize the debug agent.\r
 #\r
-# Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2013 - 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
@@ -20,7 +20,7 @@
   MODULE_UNI_FILE                = DebugAgentDxe.uni\r
   FILE_GUID                      = 9727502C-034E-472b-8E1B-67BB28C6CFDB\r
   MODULE_TYPE                    = DXE_DRIVER\r
-  VERSION_STRING                 = 1.0  \r
+  VERSION_STRING                 = 1.0\r
   ENTRY_POINT                    = DebugAgentDxeInitialize\r
   UNLOAD_IMAGE                   = DebugAgentDxeUnload\r
 \r
@@ -32,7 +32,7 @@
 \r
 [Sources]\r
   DebugAgentDxe.c\r
-  \r
+\r
 [Packages]\r
   MdePkg/MdePkg.dec\r
   MdeModulePkg/MdeModulePkg.dec\r
@@ -40,7 +40,7 @@
 [LibraryClasses]\r
   UefiDriverEntryPoint\r
   UefiBootServicesTableLib\r
-  DebugAgentLib  \r
+  DebugAgentLib\r
 \r
 [Guids]\r
   gEfiEventExitBootServicesGuid                 ## SOMETIMES_CONSUMES ## Event\r
index 35621a5f43a91188fe325f967bcd13bd4a17febb..3715f4b2eb47aea10c9207b196d904e05cd7472f 100644 (file)
@@ -3,13 +3,13 @@
 //\r
 // This DXE driver will invoke Debug Agent Library to initialize the debug agent.\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\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
+//\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
 //\r
index 2329b1d2c5c35f4d934e9a6b3fcccbdf7428b887..6ff6a24c5d108cf077534cdc531314cf1eab5803 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // DebugAgentDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Debug Agent DXE Driver"\r
 \r
 \r
index 2dcc7a78d16ad8a1867631b6abec33d0f66f6611..f04450c46b3b0e7b442a64dd8edfafa95e7ae28f 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   Initialize Debug Agent in PEI by invoking Debug Agent Library.\r
 \r
-Copyright (c) 2013 - 2014, 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
-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
+Copyright (c) 2013 - 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
+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
 \r
 **/\r
 \r
@@ -24,7 +24,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   This function is the Entry point of the CPU I/O PEIM which installs CpuIoPpi.\r
 \r
   @param[in]  FileHandle   Pointer to image file handle.\r
-  @param[in]  PeiServices  Pointer to PEI Services Table   \r
+  @param[in]  PeiServices  Pointer to PEI Services Table\r
 \r
   @retval EFI_SUCCESS    Debug Agent successfully initialized.\r
   @retval other          Some error occurs when initialzed Debug Agent.\r
index 26397bd3c056b86910dc06f138bbcfcce46a66be..6b9d49e23bccf80398deffab7b544d415749ce6b 100644 (file)
@@ -1,10 +1,10 @@
 ## @file\r
 #  Initialized Debug Agent in PEI phase.\r
 #\r
-#  This PEIM will invoke Debug Agent Library to initialize the debug agent in \r
+#  This PEIM will invoke Debug Agent Library to initialize the debug agent in\r
 #  whole PEI phase.\r
 #\r
-# Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2013 - 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
@@ -21,7 +21,7 @@
   MODULE_UNI_FILE                = DebugAgentPei.uni\r
   FILE_GUID                      = D9D114EF-F40B-4d48-AAA0-A3DC99C9F5BD\r
   MODULE_TYPE                    = PEIM\r
-  VERSION_STRING                 = 1.0  \r
+  VERSION_STRING                 = 1.0\r
   ENTRY_POINT                    = DebugAgentPeiInitialize\r
 \r
 #\r
@@ -32,7 +32,7 @@
 \r
 [Sources]\r
   DebugAgentPei.c\r
-  \r
+\r
 [Packages]\r
   MdePkg/MdePkg.dec\r
   MdeModulePkg/MdeModulePkg.dec\r
index 4fd12a020c9656b9e83661eb92f917c3945ec772..ff52cc82d3266ddfab1ca839fa495c340a30821e 100644 (file)
@@ -4,13 +4,13 @@
 // This PEIM will invoke Debug Agent Library to initialize the debug agent in\r
 // whole PEI phase.\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\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
+//\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
 //\r
index 620e82affa38f024c6354374f67bc0dbf4ef95d1..54d5c4fa5755a7ee5e3c93ebfc89904048ff1bef 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // DebugAgentPei Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME  \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Debug Agent PEI Module"\r
 \r
 \r
index 0a021307dcdc36e651e85d8e6db350220e04f619..0db33e66aa13582d8d6104fbecfc7cb53adf8df7 100644 (file)
@@ -383,9 +383,9 @@ DebugAgentReadBuffer (
   UINT32                   TimerRound;\r
   UINT32                   TimerFrequency;\r
   UINT32                   TimerCycle;\r
-  \r
+\r
   Begin         = 0;\r
-  TimeoutTicker = 0;  \r
+  TimeoutTicker = 0;\r
   TimerRound    = 0;\r
   TimerFrequency = GetMailboxPointer()->DebugTimerFrequency;\r
   TimerCycle = GetApicTimerInitCount ();\r
@@ -405,7 +405,7 @@ DebugAgentReadBuffer (
   while (Index < NumberOfBytes) {\r
     if (DebugPortPollBuffer (Handle)) {\r
       DebugPortReadBuffer (Handle, Buffer + Index, 1, 0);\r
-      Index ++; \r
+      Index ++;\r
       continue;\r
     }\r
     if (Timeout != 0) {\r
@@ -652,7 +652,7 @@ ReadRemainingBreakPacket (
   if (IS_REQUEST (DebugHeader)) {\r
     if (DebugHeader->SequenceNo == (UINT8) (Mailbox->HostSequenceNo + 1)) {\r
       //\r
-      // Only updagte HostSequenceNo for new command packet \r
+      // Only updagte HostSequenceNo for new command packet\r
       //\r
       UpdateMailboxContent (Mailbox, DEBUG_MAILBOX_HOST_SEQUENCE_NO_INDEX, DebugHeader->SequenceNo);\r
       return EFI_SUCCESS;\r
@@ -1476,7 +1476,7 @@ CompressData (
         if (Send) {\r
           DebugPortWriteBuffer (Handle, &LastChar, 1);\r
         }\r
-        \r
+\r
       } else if (LastCharCount >= 2) {\r
         CompressedIndex += 3;\r
         LastCharCount -= 2;\r
index e09ead9cf07433ea259af116b844a727ce9e0729..8b207445b0a4b4dd8be062bf377951cddc7568dd 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Command header of for Debug Agent library instance.\r
 \r
-  Copyright (c) 2010 - 2016, 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
@@ -126,7 +126,7 @@ typedef union {
     //\r
     UINT32  BreakOnNextSmi    : 1;   // 1: Break on next SMI\r
     UINT32  PrintErrorLevel   : 4;   // Bitmask of print error level for debug message\r
-    UINT32  BreakOnBootScript : 1;   // 1: Break before executing boot script \r
+    UINT32  BreakOnBootScript : 1;   // 1: Break before executing boot script\r
     UINT32  Reserved2         : 26;\r
   } Bits;\r
   UINT64  Uint64;\r
@@ -285,7 +285,7 @@ DebugReadBreakSymbol (
 \r
   @param[in] ErrorLevel  The error level of the debug message.\r
   @param[in] Format      Format string for the debug message to print.\r
-  @param[in] ...         Variable argument list whose contents are accessed \r
+  @param[in] ...         Variable argument list whose contents are accessed\r
                          based on the format string specified by Format.\r
 \r
 **/\r
@@ -322,13 +322,13 @@ MultiProcessorDebugSupport (
 \r
 /**\r
   Find and report module image info to HOST.\r
-  \r
+\r
   @param[in] AlignSize      Image aligned size.\r
-  \r
+\r
 **/\r
-VOID \r
+VOID\r
 FindAndReportModuleImageInfo (\r
-  IN UINTN          AlignSize                   \r
+  IN UINTN          AlignSize\r
   );\r
 \r
 /**\r
@@ -338,7 +338,7 @@ FindAndReportModuleImageInfo (
   @retval  FALSE    IDT entries were not setup by Debug Agent.\r
 \r
 **/\r
-BOOLEAN \r
+BOOLEAN\r
 IsDebugAgentInitialzed (\r
   VOID\r
   );\r
@@ -362,7 +362,7 @@ UpdateMailboxChecksum (
   @param[in]  Mailbox  Debug Agent Mailbox pointer.\r
 \r
 **/\r
-VOID \r
+VOID\r
 VerifyMailboxChecksum (\r
   IN DEBUG_AGENT_MAILBOX    *Mailbox\r
   );\r
@@ -374,17 +374,17 @@ VerifyMailboxChecksum (
   @param[in]  FlagValue     Debug flag value.\r
 \r
 **/\r
-VOID \r
+VOID\r
 SetDebugFlag (\r
   IN UINT64                 FlagMask,\r
-  IN UINT32                 FlagValue                          \r
+  IN UINT32                 FlagValue\r
   );\r
 \r
 /**\r
   Get debug flag in mailbox.\r
 \r
   @param[in]  FlagMask      Debug flag mask value.\r
-  \r
+\r
   @return Debug flag value.\r
 \r
 **/\r
@@ -399,10 +399,10 @@ GetDebugFlag (
   @param[in]  Mailbox  Debug Agent Mailbox pointer.\r
   @param[in]  Index    Mailbox content index.\r
   @param[in]  Value    Value to be set into mail box.\r
-  \r
+\r
 **/\r
 VOID\r
-UpdateMailboxContent ( \r
+UpdateMailboxContent (\r
   IN DEBUG_AGENT_MAILBOX    *Mailbox,\r
   IN UINTN                  Index,\r
   IN UINT64                 Value\r
@@ -412,7 +412,7 @@ UpdateMailboxContent (
   Retrieve exception handler from IDT table by ExceptionNum.\r
 \r
   @param[in]  ExceptionNum    Exception number\r
\r
+\r
   @return Exception handler\r
 \r
 **/\r
@@ -425,7 +425,7 @@ GetExceptionHandlerInIdtEntry (
   Set exception handler in IDT table by ExceptionNum.\r
 \r
   @param[in]  ExceptionNum      Exception number\r
-  @param[in]  ExceptionHandler  Exception Handler to be set \r
+  @param[in]  ExceptionHandler  Exception Handler to be set\r
 \r
 **/\r
 VOID\r
@@ -437,15 +437,15 @@ SetExceptionHandlerInIdtEntry (
 /**\r
   Prints a debug message to the debug output device if the specified error level is enabled.\r
 \r
-  If any bit in ErrorLevel is also set in DebugPrintErrorLevelLib function \r
-  GetDebugPrintErrorLevel (), then print the message specified by Format and the \r
+  If any bit in ErrorLevel is also set in DebugPrintErrorLevelLib function\r
+  GetDebugPrintErrorLevel (), then print the message specified by Format and the\r
   associated variable argument list to the debug output device.\r
 \r
   If Format is NULL, then ASSERT().\r
 \r
   @param[in] ErrorLevel  The error level of the debug message.\r
   @param[in] IsSend      Flag of debug message to declare that the data is being sent or being received.\r
-  @param[in] Data        Variable argument list whose contents are accessed \r
+  @param[in] Data        Variable argument list whose contents are accessed\r
   @param[in] Length      based on the format string specified by Format.\r
 \r
 **/\r
@@ -455,7 +455,7 @@ DebugAgentDataMsgPrint (
   IN UINT8             ErrorLevel,\r
   IN BOOLEAN           IsSend,\r
   IN UINT8             *Data,\r
-  IN UINT8             Length  \r
+  IN UINT8             Length\r
   );\r
 \r
 /**\r
index e3ed08db4946487cb0ec50c657b4d5e2de67dc89..9d048d89c90842999828db09b7eb55e055d50947 100644 (file)
@@ -142,10 +142,10 @@ DebugAgentIsBsp (
   )\r
 {\r
   MSR_IA32_APIC_BASE_REGISTER  MsrApicBase;\r
-  \r
+\r
   //\r
   // If there are less than 2 CPUs detected, then the currently executing CPU\r
-  // must be the BSP.  This avoids an access to an MSR that may not be supported \r
+  // must be the BSP.  This avoids an access to an MSR that may not be supported\r
   // on single core CPUs.\r
   //\r
   if (mDebugCpuData.CpuCount < 2) {\r
index f0cb3f6c1daa066719adacfc9ed2ffe5828bc570..d8afefe56e76a49ec35daa30ea11d552ad3259f7 100644 (file)
@@ -189,7 +189,7 @@ UINT32
 FindNextPendingBreakCpu (\r
   VOID\r
   );\r
-  \r
+\r
 /**\r
   Check if all processors are in running status.\r
 \r
@@ -205,18 +205,18 @@ IsAllCpuRunning (
 /**\r
   Check if the current processor is the first breaking processor.\r
 \r
-  If yes, halt other processors.  \r
-  \r
+  If yes, halt other processors.\r
+\r
   @param[in] ProcessorIndex   Processor index value.\r
-  \r
+\r
   @return TRUE       This processor is the first breaking processor.\r
   @return FALSE      This processor is not the first breaking processor.\r
-                            \r
+\r
 **/\r
 BOOLEAN\r
 IsFirstBreakProcessor (\r
   IN UINT32              ProcessorIndex\r
   );\r
-  \r
+\r
 #endif\r
 \r
index 1aef63f206fd33a5ee109f297d0f856f510d2636..1ecde2d4cc6e97c753f9bfd7a902e6d1d524755c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Supporting functions for IA32 architecture.\r
 \r
-  Copyright (c) 2010 - 2015, 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
@@ -58,9 +58,9 @@ InitializeDebugIdt (
   IdtEntry[DEBUG_TIMER_VECTOR].Bits.OffsetHigh = (UINT16)((UINTN)InterruptHandler >> 16);\r
   IdtEntry[DEBUG_TIMER_VECTOR].Bits.Selector   = CodeSegment;\r
   IdtEntry[DEBUG_TIMER_VECTOR].Bits.GateType   = IA32_IDT_GATE_TYPE_INTERRUPT_32;\r
-  \r
+\r
   //\r
-  // If the CPU supports Debug Extensions(CPUID:01 EDX:BIT2), then \r
+  // If the CPU supports Debug Extensions(CPUID:01 EDX:BIT2), then\r
   // Set DE flag in CR4 to enable IO breakpoint\r
   //\r
   AsmCpuid (1, NULL, NULL, NULL, &RegEdx);\r
@@ -73,7 +73,7 @@ InitializeDebugIdt (
   Retrieve exception handler from IDT table by ExceptionNum.\r
 \r
   @param[in]  ExceptionNum    Exception number\r
\r
+\r
   @return Exception handler\r
 \r
 **/\r
@@ -90,13 +90,13 @@ GetExceptionHandlerInIdtEntry (
 \r
   return (VOID *) (((UINTN)IdtEntry[ExceptionNum].Bits.OffsetLow) |\r
                   (((UINTN)IdtEntry[ExceptionNum].Bits.OffsetHigh) << 16));\r
-} \r
+}\r
 \r
 /**\r
   Set exception handler in IDT table by ExceptionNum.\r
 \r
   @param[in]  ExceptionNum      Exception number\r
-  @param[in]  ExceptionHandler  Exception Handler to be set \r
+  @param[in]  ExceptionHandler  Exception Handler to be set\r
 \r
 **/\r
 VOID\r
index a6a3da6a6bfd5b49f3cd6a3169bd026ae0574ae7..30d279e80d8d3b92a3721113e21c5eaddc5f7c0a 100644 (file)
@@ -1,6 +1,6 @@
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2010 - 2015, 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
@@ -235,21 +235,21 @@ NoExtrPush:
 ## insure FXSAVE/FXRSTOR is enabled in CR4...\r
 ## ... while we're at it, make sure DE is also enabled...\r
   mov     $1, %eax\r
-  pushl   %ebx                         # temporarily save value of ebx on stack \r
-  cpuid                                # use CPUID to determine if FXSAVE/FXRESTOR \r
+  pushl   %ebx                         # temporarily save value of ebx on stack\r
+  cpuid                                # use CPUID to determine if FXSAVE/FXRESTOR\r
                                        # and DE are supported\r
   popl    %ebx                         # retore value of ebx that was overwritten\r
-                                       # by CPUID \r
+                                       # by CPUID\r
   movl    %cr4, %eax\r
   pushl   %eax                         # push cr4 firstly\r
   testl   $BIT24, %edx                 # Test for FXSAVE/FXRESTOR support\r
   jz      L1\r
   orl     $BIT9, %eax                  # Set CR4.OSFXSR\r
-L1:    \r
+L1:\r
   testl   $BIT2, %edx                  # Test for Debugging Extensions support\r
   jz      L2\r
   orl     $BIT3, %eax                  # Set CR4.DE\r
-L2:    \r
+L2:\r
   movl    %eax, %cr4\r
   movl    %cr3, %eax\r
   pushl   %eax\r
@@ -322,14 +322,14 @@ L2:
                            # edx still contains result from CPUID above\r
   jz      L3\r
   .byte 0x0f, 0xae, 0x07   # fxsave [edi]\r
-L3:  \r
+L3:\r
 \r
 ## save the exception data\r
   pushl   8(%esp)\r
 \r
 ## Clear Direction Flag\r
   cld\r
-       \r
+\r
 ## Prepare parameter and call C function\r
   pushl   %esp\r
   pushl   %ebx\r
@@ -347,7 +347,7 @@ L3:
   testl   $BIT24, %edx     # Test for FXSAVE/FXRESTOR support\r
   jz      L4\r
   .byte 0x0f, 0xae, 0x0e   # fxrstor [esi]\r
-L4:  \r
+L4:\r
   addl    $512,%esp\r
 \r
 ## UINT32  Dr0, Dr1, Dr2, Dr3, Dr6, Dr7;\r
@@ -412,4 +412,4 @@ L4:
   popl    %ebp\r
   addl    $8,%esp   # skip eax\r
   iretl\r
-  \r
+\r
index 08cef0154f8b0b10e4695d5f03baf91751b22acb..a0e56481a51d2bac09ba24172a64383c224cceba 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Supporting functions for X64 architecture.\r
 \r
-  Copyright (c) 2010 - 2015, 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
@@ -62,7 +62,7 @@ InitializeDebugIdt (
   IdtEntry[DEBUG_TIMER_VECTOR].Bits.GateType        = IA32_IDT_GATE_TYPE_INTERRUPT_32;\r
 \r
   //\r
-  // If the CPU supports Debug Extensions(CPUID:01 EDX:BIT2), then \r
+  // If the CPU supports Debug Extensions(CPUID:01 EDX:BIT2), then\r
   // Set DE flag in CR4 to enable IO breakpoint\r
   //\r
   AsmCpuid (1, NULL, NULL, NULL, &RegEdx);\r
@@ -75,7 +75,7 @@ InitializeDebugIdt (
   Retrieve exception handler from IDT table by ExceptionNum.\r
 \r
   @param[in]  ExceptionNum    Exception number\r
\r
+\r
   @return Exception handler\r
 \r
 **/\r
@@ -93,13 +93,13 @@ GetExceptionHandlerInIdtEntry (
   return (VOID *) (IdtEntry[ExceptionNum].Bits.OffsetLow |\r
                   (((UINTN)IdtEntry[ExceptionNum].Bits.OffsetHigh) << 16) |\r
                   (((UINTN)IdtEntry[ExceptionNum].Bits.OffsetUpper) << 32));\r
-} \r
+}\r
 \r
 /**\r
   Set exception handler in IDT table by ExceptionNum.\r
 \r
   @param[in]  ExceptionNum      Exception number\r
-  @param[in]  ExceptionHandler  Exception Handler to be set \r
+  @param[in]  ExceptionHandler  Exception Handler to be set\r
 \r
 **/\r
 VOID\r
index c74a1f6be3fb097277a24111e9a7ace3581dfa40..2a8ae8aec58eb3e87eb57e01cb35151c3bcf0046 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Debug Agent library implementition for Dxe Core and Dxr modules.\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
@@ -237,7 +237,7 @@ GetDebugPortHandle (
 /**\r
   Worker function to set up Debug Agent environment.\r
 \r
-  This function will set up IDT table and initialize the IDT entries and \r
+  This function will set up IDT table and initialize the IDT entries and\r
   initialize CPU LOCAL APIC timer.\r
   It also tries to connect HOST if Debug Agent was not initialized before.\r
 \r
index 536fb71dc5b2e0d92da1a9e79caf5cc97815edd3..caef603442573ae66ce52feb802a3beee2301cc8 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Header file for Dxe Core Debug Agent Library instance.\r
 \r
-  Copyright (c) 2010 - 2013, 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
 #include "DebugAgent.h"\r
 \r
 /**\r
-  Install EFI Serial IO protocol based on Debug Communication Library. \r
+  Install EFI Serial IO protocol based on Debug Communication Library.\r
 \r
 **/\r
 VOID\r
 InstallSerialIo (\r
   VOID\r
   );\r
-  \r
+\r
 #endif\r
index cb3b623038b90e0f72c4a3f367a83935984ac761..32ff007a9a2b0e40090a766d2077c7485e670480 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Install Serial IO Protocol that layers on top of a Debug Communication Library instance.\r
 \r
-  Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2012 - 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
@@ -31,7 +31,7 @@ EFIAPI
 SerialReset (\r
   IN EFI_SERIAL_IO_PROTOCOL  *This\r
   );\r
-  \r
+\r
 /**\r
   Set new attributes to a serial device.\r
 \r
@@ -246,7 +246,7 @@ DEBUG_SERIAL_FIFO            mSerialFifoForDebug    = {0, 0, DEBGU_SERIAL_IO_FIF
 \r
 /**\r
   Detect whether specific FIFO is empty or not.\r
\r
+\r
   @param[in]  Fifo    A pointer to the Data Structure DEBUG_SERIAL_FIFO.\r
 \r
   @return whether specific FIFO is empty or not.\r
@@ -357,7 +357,7 @@ DebugTerminalFifoRemove (
 }\r
 \r
 /**\r
-  Install EFI Serial IO protocol based on Debug Communication Library. \r
+  Install EFI Serial IO protocol based on Debug Communication Library.\r
 \r
 **/\r
 VOID\r
@@ -431,12 +431,12 @@ SerialSetAttributes (
   //\r
   // The Debug Communication Library CAN NOT change communications parameters (if it has)\r
   // actually. Because it also has no any idea on what parameters are based on, we cannot\r
-  // check the input parameters (like BaudRate, Parity, DataBits and StopBits). \r
+  // check the input parameters (like BaudRate, Parity, DataBits and StopBits).\r
   //\r
-  \r
+\r
   //\r
   // Update the Timeout value in the mode structure based on the request.\r
-  // The Debug Communication Library can not support a timeout on writes, but the timeout on \r
+  // The Debug Communication Library can not support a timeout on writes, but the timeout on\r
   // reads can be provided by this module.\r
   //\r
   if (Timeout == 0) {\r
@@ -444,11 +444,11 @@ SerialSetAttributes (
   } else {\r
     mSerialIoMode.Timeout = Timeout;\r
   }\r
-  \r
+\r
   //\r
   // Update the ReceiveFifoDepth value in the mode structure based on the request.\r
-  // This module assumes that the Debug Communication Library uses a FIFO depth of \r
-  // SERIAL_PORT_DEFAULT_RECEIVE_FIFO_DEPTH.  The Debug Communication Library may actually be \r
+  // This module assumes that the Debug Communication Library uses a FIFO depth of\r
+  // SERIAL_PORT_DEFAULT_RECEIVE_FIFO_DEPTH.  The Debug Communication Library may actually be\r
   // using a larger FIFO, but there is no way to tell.\r
   //\r
   if (ReceiveFifoDepth == 0 || ReceiveFifoDepth >= SERIAL_PORT_DEFAULT_RECEIVE_FIFO_DEPTH) {\r
@@ -512,21 +512,21 @@ SerialGetControl (
   // Raise TPL to prevent recursion from EFI timer interrupts\r
   //\r
   Tpl = gBS->RaiseTPL (TPL_NOTIFY);\r
-  \r
+\r
   //\r
   // Save and disable Debug Timer interrupt to avoid it to access Debug Port\r
   //\r
   DebugTimerInterruptState = SaveAndSetDebugTimerInterrupt (FALSE);\r
   Handle = GetDebugPortHandle ();\r
-  \r
+\r
   //\r
   // Always assume the output buffer is empty and the Debug Communication Library can process\r
   // more write requests.\r
   //\r
   *Control = mSerialIoMode.ControlMask | EFI_SERIAL_OUTPUT_BUFFER_EMPTY;\r
-  \r
+\r
   //\r
-  // Check to see if the Terminal FIFO is empty and \r
+  // Check to see if the Terminal FIFO is empty and\r
   // check to see if the input buffer in the Debug Communication Library is empty\r
   //\r
   if (!IsDebugTermianlFifoEmpty (&mSerialFifoForTerminal) || DebugPortPollBuffer (Handle)) {\r
@@ -535,14 +535,14 @@ SerialGetControl (
 \r
   //\r
   // Restore Debug Timer interrupt\r
-  //  \r
+  //\r
   SaveAndSetDebugTimerInterrupt (DebugTimerInterruptState);\r
-  \r
+\r
   //\r
   // Restore to original TPL\r
   //\r
   gBS->RestoreTPL (Tpl);\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -575,13 +575,13 @@ SerialWrite (
   // Raise TPL to prevent recursion from EFI timer interrupts\r
   //\r
   Tpl = gBS->RaiseTPL (TPL_NOTIFY);\r
-  \r
+\r
   //\r
   // Save and disable Debug Timer interrupt to avoid it to access Debug Port\r
   //\r
   DebugTimerInterruptState = SaveAndSetDebugTimerInterrupt (FALSE);\r
   Handle = GetDebugPortHandle ();\r
-  \r
+\r
   if ((mSerialIoMode.ControlMask & EFI_SERIAL_SOFTWARE_LOOPBACK_ENABLE) != 0)  {\r
     if (*BufferSize == 0) {\r
       return EFI_SUCCESS;\r
@@ -598,14 +598,14 @@ SerialWrite (
 \r
   //\r
   // Restore Debug Timer interrupt\r
-  //  \r
+  //\r
   SaveAndSetDebugTimerInterrupt (DebugTimerInterruptState);\r
-  \r
+\r
   //\r
   // Restore to original TPL\r
   //\r
   gBS->RestoreTPL (Tpl);\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -643,13 +643,13 @@ SerialRead (
   // Raise TPL to prevent recursion from EFI timer interrupts\r
   //\r
   Tpl = gBS->RaiseTPL (TPL_NOTIFY);\r
-  \r
+\r
   //\r
   // Save and disable Debug Timer interrupt to avoid it to access Debug Port\r
   //\r
   DebugTimerInterruptState = SaveAndSetDebugTimerInterrupt (FALSE);\r
   Handle = GetDebugPortHandle ();\r
\r
+\r
   Data8 = (UINT8 *) &DebugHeader;\r
   Uint8Buffer = (UINT8 *)Buffer;\r
   if ((mSerialIoMode.ControlMask & EFI_SERIAL_SOFTWARE_LOOPBACK_ENABLE) != 0)  {\r
@@ -671,7 +671,7 @@ SerialRead (
         continue;\r
       }\r
       //\r
-      // Read the input character from Debug Port \r
+      // Read the input character from Debug Port\r
       //\r
       if (!DebugPortPollBuffer (Handle)) {\r
         break;\r
@@ -703,14 +703,14 @@ SerialRead (
 \r
   //\r
   // Restore Debug Timer interrupt\r
-  //  \r
+  //\r
   SaveAndSetDebugTimerInterrupt (DebugTimerInterruptState);\r
-  \r
+\r
   //\r
   // Restore to original TPL\r
   //\r
   gBS->RestoreTPL (Tpl);\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -757,7 +757,7 @@ DebugReadBreakFromDebugPort (
       DebugAgentMsgPrint (DEBUG_AGENT_INFO, "Debug Timer attach symbol received %x", *Data8);\r
       *BreakSymbol = *Data8;\r
       return EFI_SUCCESS;\r
-    } \r
+    }\r
     if (*Data8 == DEBUG_STARTING_SYMBOL_NORMAL) {\r
       Status = ReadRemainingBreakPacket (Handle, &DebugHeader);\r
       if (Status == EFI_SUCCESS) {\r
@@ -775,7 +775,7 @@ DebugReadBreakFromDebugPort (
       DebugTerminalFifoAdd (&mSerialFifoForTerminal, *Data8);\r
     }\r
   }\r
-  \r
+\r
   return EFI_NOT_FOUND;\r
 }\r
 \r
index 86c03a5fe3392b8f9f094d0b0a1254fb240503df..38bd18d0fe5bc750f1df46f83271a17699790c51 100644 (file)
@@ -93,7 +93,7 @@
 \r
 [Protocols]\r
   gEfiSerialIoProtocolGuid                      ## SOMETIMES_PRODUCES\r
-  gEfiDevicePathProtocolGuid                    ## SOMETIMES_PRODUCES \r
+  gEfiDevicePathProtocolGuid                    ## SOMETIMES_PRODUCES\r
 \r
 [Pcd]\r
   gEfiMdePkgTokenSpaceGuid.PcdFSBClock                                  ## SOMETIMES_CONSUMES\r
index 6be8c544255dae06387794000aec9fc8c681bcf8..03a88e62517b7ffd529a0a0c4e55ef79d355978a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Debug Agent library implementition.\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
@@ -77,7 +77,7 @@ GetMailboxFromHob (
   )\r
 {\r
   EFI_HOB_GUID_TYPE        *GuidHob;\r
-  UINT64                   *MailboxLocation;  \r
+  UINT64                   *MailboxLocation;\r
   DEBUG_AGENT_MAILBOX      *Mailbox;\r
 \r
   GuidHob = GetFirstGuidHob (&gEfiDebugAgentGuid);\r
@@ -87,7 +87,7 @@ GetMailboxFromHob (
   MailboxLocation = (UINT64 *) (GET_GUID_HOB_DATA(GuidHob));\r
   Mailbox = (DEBUG_AGENT_MAILBOX *)(UINTN)(*MailboxLocation);\r
   VerifyMailboxChecksum (Mailbox);\r
-  \r
+\r
   return Mailbox;\r
 }\r
 \r
@@ -224,7 +224,7 @@ InitializeDebugAgent (
     //\r
     // Check if Debug Agent initialized in SEC/PEI phase\r
     //\r
-    Mailbox = GetMailboxFromHob (); \r
+    Mailbox = GetMailboxFromHob ();\r
     if (Mailbox != NULL) {\r
       mMailboxPointer = Mailbox;\r
       break;\r
@@ -237,7 +237,7 @@ InitializeDebugAgent (
     //\r
     // Save original IDT entries\r
     //\r
-    AsmReadIdtr (&IdtDescriptor);      \r
+    AsmReadIdtr (&IdtDescriptor);\r
     CopyMem (&IdtEntry, (VOID *)IdtDescriptor.Base, 33 * sizeof(IA32_IDT_GATE_DESCRIPTOR));\r
     //\r
     // Initialized Debug Agent\r
@@ -269,11 +269,11 @@ InitializeDebugAgent (
     }\r
     //\r
     // Find and report PE/COFF image info to HOST\r
-    //  \r
+    //\r
     FindAndReportModuleImageInfo (SIZE_4KB);\r
     //\r
     // Restore saved IDT entries\r
-    //     \r
+    //\r
     CopyMem ((VOID *)IdtDescriptor.Base, &IdtEntry, 33 * sizeof(IA32_IDT_GATE_DESCRIPTOR));\r
 \r
     break;\r
@@ -381,12 +381,12 @@ InitializeDebugAgent (
 \r
   default:\r
     //\r
-    // Only DEBUG_AGENT_INIT_PREMEM_SEC and DEBUG_AGENT_INIT_POSTMEM_SEC are allowed for this \r
+    // Only DEBUG_AGENT_INIT_PREMEM_SEC and DEBUG_AGENT_INIT_POSTMEM_SEC are allowed for this\r
     // Debug Agent library instance.\r
     //\r
     DEBUG ((EFI_D_ERROR, "Debug Agent: The InitFlag value is not allowed!\n"));\r
     CpuDeadLoop ();\r
-    break;    \r
+    break;\r
   }\r
 }\r
 \r
index 6a854ff2a217b2bcb0b1a1fa6cbcb3aadca45df9..6a6394f8c21d5e8f53392f06ecb87e883fc8971c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Debug Port Library implementation based on serial port.\r
 \r
-  Copyright (c) 2010 - 2015, 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
@@ -65,7 +65,7 @@ DebugPortInitialize (
 \r
   Status = SerialPortInitialize ();\r
   if (RETURN_ERROR(Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Debug Serial Port: Initialization failed!\n")); \r
+    DEBUG ((EFI_D_ERROR, "Debug Serial Port: Initialization failed!\n"));\r
   }\r
 \r
   if (Function != NULL) {\r
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
index 86ecc2f9dbc7862daadd4702235d0757c30ae09a..924dbfd9d59d7ca219f8f332c64490ddce279e22 100644 (file)
@@ -46,7 +46,7 @@ UINT16   mSerialNumberStrDesc[] = {
 **/\r
 VOID\r
 XhcSetR32Bit(\r
-  IN OUT  UINTN  Register, \r
+  IN OUT  UINTN  Register,\r
   IN      UINT32 BitMask\r
   )\r
 {\r
@@ -65,7 +65,7 @@ XhcSetR32Bit(
 **/\r
 VOID\r
 XhcClearR32Bit(\r
-  IN OUT  UINTN  Register, \r
+  IN OUT  UINTN  Register,\r
   IN      UINT32 BitMask\r
   )\r
 {\r
@@ -92,10 +92,10 @@ XhcWriteDebugReg (
   )\r
 {\r
   EFI_PHYSICAL_ADDRESS  DebugCapabilityBase;\r
-  \r
+\r
   DebugCapabilityBase = Handle->DebugCapabilityBase;\r
   MmioWrite32 ((UINTN)(DebugCapabilityBase + Offset), Data);\r
-  \r
+\r
   return;\r
 }\r
 \r
@@ -116,7 +116,7 @@ XhcReadDebugReg (
 {\r
   UINT32                  Data;\r
   EFI_PHYSICAL_ADDRESS    DebugCapabilityBase;\r
-  \r
+\r
   DebugCapabilityBase = Handle->DebugCapabilityBase;\r
   Data = MmioRead32 ((UINTN)(DebugCapabilityBase + Offset));\r
 \r
@@ -182,7 +182,7 @@ ProgramXhciBaseAddress (
   UINT32                      Low;\r
   UINT32                      High;\r
   EFI_PHYSICAL_ADDRESS        XhciMmioBase;\r
-  \r
+\r
   Low = PciRead32 (PcdGet32(PcdUsbXhciPciAddress) + PCI_BASE_ADDRESSREG_OFFSET);\r
   High = PciRead32 (PcdGet32(PcdUsbXhciPciAddress) + PCI_BASE_ADDRESSREG_OFFSET + 4);\r
   XhciMmioBase = (EFI_PHYSICAL_ADDRESS) (LShiftU64 ((UINT64) High, 32) | Low);\r
@@ -263,7 +263,7 @@ CalculateUsbDebugPortMmioBase (
 \r
   VendorId = PciRead16 (PcdGet32(PcdUsbXhciPciAddress) + PCI_VENDOR_ID_OFFSET);\r
   DeviceId = PciRead16 (PcdGet32(PcdUsbXhciPciAddress) + PCI_DEVICE_ID_OFFSET);\r
-  \r
+\r
   if ((VendorId == 0xFFFF) || (DeviceId == 0xFFFF)) {\r
     goto Done;\r
   }\r
@@ -271,7 +271,7 @@ CalculateUsbDebugPortMmioBase (
   ProgInterface = PciRead8 (PcdGet32(PcdUsbXhciPciAddress) + PCI_CLASSCODE_OFFSET);\r
   SubClassCode  = PciRead8 (PcdGet32(PcdUsbXhciPciAddress) + PCI_CLASSCODE_OFFSET + 1);\r
   BaseCode      = PciRead8 (PcdGet32(PcdUsbXhciPciAddress) + PCI_CLASSCODE_OFFSET + 2);\r
-  \r
+\r
   if ((ProgInterface != PCI_IF_XHCI) || (SubClassCode != PCI_CLASS_SERIAL_USB) || (BaseCode != PCI_CLASS_SERIAL)) {\r
     goto Done;\r
   }\r
@@ -282,7 +282,7 @@ CalculateUsbDebugPortMmioBase (
   // Get capability pointer from HCCPARAMS at offset 0x10\r
   //\r
   CapabilityPointer = Handle->XhciMmioBase + (MmioRead32 ((UINTN)(Handle->XhciMmioBase + XHC_HCCPARAMS_OFFSET)) >> 16) * 4;\r
\r
+\r
   //\r
   // Search XHCI debug capability\r
   //\r
@@ -377,7 +377,7 @@ CreateEventRing (
   EVENT_RING_SEG_TABLE_ENTRY  *ERSTBase;\r
 \r
   ASSERT (EventRing != NULL);\r
-  \r
+\r
   //\r
   // Allocate Event Ring\r
   //\r
@@ -390,7 +390,7 @@ CreateEventRing (
   EventRing->TrbNumber        = EVENT_RING_TRB_NUMBER;\r
   EventRing->EventRingDequeue = (EFI_PHYSICAL_ADDRESS)(UINTN) EventRing->EventRingSeg0;\r
   EventRing->EventRingEnqueue = (EFI_PHYSICAL_ADDRESS)(UINTN) EventRing->EventRingSeg0;\r
-  \r
+\r
   //\r
   // Software maintains an Event Ring Consumer Cycle State (CCS) bit, initializing it to '1'\r
   // and toggling it every time the Event Ring Dequeue Pointer wraps back to the beginning of the Event Ring.\r
@@ -473,7 +473,7 @@ CreateTransferRing (
 {\r
   VOID                  *Buf;\r
   LINK_TRB              *EndTrb;\r
\r
+\r
   Buf = AllocateAlignBuffer (sizeof (TRB_TEMPLATE) * TrbNum);\r
   ASSERT (Buf != NULL);\r
   ASSERT (((UINTN) Buf & 0xF) == 0);\r
@@ -523,7 +523,7 @@ CreateDebugCapabilityContext (
   UINT8                       *ManufacturerStrDesc;\r
   UINT8                       *ProductStrDesc;\r
   UINT8                       *SerialNumberStrDesc;\r
-  \r
+\r
   //\r
   // Allocate debug device context\r
   //\r
@@ -531,10 +531,10 @@ CreateDebugCapabilityContext (
   ASSERT (Buf != NULL);\r
   ASSERT (((UINTN) Buf & 0xF) == 0);\r
   ZeroMem (Buf, sizeof (XHC_DC_CONTEXT));\r
-  \r
+\r
   DebugCapabilityContext = (XHC_DC_CONTEXT *)(UINTN) Buf;\r
   Handle->DebugCapabilityContext = (EFI_PHYSICAL_ADDRESS)(UINTN) DebugCapabilityContext;\r
-  \r
+\r
   //\r
   // Initialize DbcInfoContext.\r
   //\r
@@ -550,7 +550,7 @@ CreateDebugCapabilityContext (
   DebugCapabilityContext->EpOutContext.EPType           = ED_BULK_OUT;\r
   DebugCapabilityContext->EpOutContext.MaxPacketSize    = XHCI_DEBUG_DEVICE_MAX_PACKET_SIZE;\r
   DebugCapabilityContext->EpOutContext.AverageTRBLength = 0x1000;\r
-  \r
+\r
   //\r
   // Initialize EpInContext.\r
   //\r
@@ -558,7 +558,7 @@ CreateDebugCapabilityContext (
   DebugCapabilityContext->EpInContext.EPType           = ED_BULK_IN;\r
   DebugCapabilityContext->EpInContext.MaxPacketSize    = XHCI_DEBUG_DEVICE_MAX_PACKET_SIZE;\r
   DebugCapabilityContext->EpInContext.AverageTRBLength = 0x1000;\r
-  \r
+\r
   //\r
   // Update string descriptor address\r
   //\r
@@ -567,19 +567,19 @@ CreateDebugCapabilityContext (
   ZeroMem (String0Desc, STRING0_DESC_LEN + MANU_DESC_LEN + PRODUCT_DESC_LEN + SERIAL_DESC_LEN);\r
   CopyMem (String0Desc, mString0Desc, STRING0_DESC_LEN);\r
   DebugCapabilityContext->DbcInfoContext.String0DescAddress = (UINT64)(UINTN)String0Desc;\r
-  \r
+\r
   ManufacturerStrDesc = String0Desc + STRING0_DESC_LEN;\r
   CopyMem (ManufacturerStrDesc, mManufacturerStrDesc, MANU_DESC_LEN);\r
   DebugCapabilityContext->DbcInfoContext.ManufacturerStrDescAddress = (UINT64)(UINTN)ManufacturerStrDesc;\r
-  \r
+\r
   ProductStrDesc = ManufacturerStrDesc + MANU_DESC_LEN;\r
   CopyMem (ProductStrDesc, mProductStrDesc, PRODUCT_DESC_LEN);\r
   DebugCapabilityContext->DbcInfoContext.ProductStrDescAddress = (UINT64)(UINTN)ProductStrDesc;\r
-  \r
+\r
   SerialNumberStrDesc = ProductStrDesc + PRODUCT_DESC_LEN;\r
   CopyMem (SerialNumberStrDesc, mSerialNumberStrDesc, SERIAL_DESC_LEN);\r
   DebugCapabilityContext->DbcInfoContext.SerialNumberStrDescAddress = (UINT64)(UINTN)SerialNumberStrDesc;\r
-  \r
+\r
   //\r
   // Allocate and initialize the Transfer Ring for the Input Endpoint Context.\r
   //\r
@@ -687,7 +687,7 @@ InitializeUsbDebugHardware (
       return EFI_DEVICE_ERROR;\r
     }\r
     //\r
-    // If XHCI supports debug capability, hardware resource has been allocated, \r
+    // If XHCI supports debug capability, hardware resource has been allocated,\r
     // but it has not been enabled, try to enable again.\r
     //\r
     goto Enable;\r
@@ -708,7 +708,7 @@ InitializeUsbDebugHardware (
 \r
   //\r
   // Reset port to get debug device discovered\r
-  //  \r
+  //\r
   for (Index = 0; Index < TotalUsb3Port; Index++) {\r
     XhcSetR32Bit ((UINTN)XhciOpRegister + XHC_PORTSC_OFFSET + Index * 0x10, BIT4);\r
     MicroSecondDelay (10 * 1000);\r
@@ -727,20 +727,20 @@ InitializeUsbDebugHardware (
   Handle->UrbIn.Data  = (EFI_PHYSICAL_ADDRESS)(UINTN) Buffer;\r
   Handle->Data        = (EFI_PHYSICAL_ADDRESS)(UINTN) Buffer + XHCI_DEBUG_DEVICE_MAX_PACKET_SIZE;\r
   Handle->UrbOut.Data = Handle->UrbIn.Data + XHCI_DEBUG_DEVICE_MAX_PACKET_SIZE * 2;\r
-   \r
+\r
   //\r
   // Initialize event ring\r
   //\r
   ZeroMem (&Handle->EventRing, sizeof (EVENT_RING));\r
   Status = CreateEventRing (Handle, &Handle->EventRing);\r
   ASSERT_EFI_ERROR (Status);\r
-  \r
+\r
   //\r
   // Init IN and OUT endpoint context\r
   //\r
   Status = CreateDebugCapabilityContext (Handle);\r
   ASSERT_EFI_ERROR (Status);\r
-  \r
+\r
   //\r
   // Init DCDDI1 and DCDDI2\r
   //\r
@@ -748,7 +748,7 @@ InitializeUsbDebugHardware (
    Handle,\r
    XHC_DC_DCDDI1,\r
    (UINT32)((XHCI_DEBUG_DEVICE_VENDOR_ID << 16) | XHCI_DEBUG_DEVICE_PROTOCOL)\r
-   ); \r
+   );\r
 \r
   XhcWriteDebugReg (\r
    Handle,\r
@@ -759,7 +759,7 @@ InitializeUsbDebugHardware (
 Enable:\r
   if ((Handle->Initialized == USB3DBG_NOT_ENABLED) && (!Handle->ChangePortPower)) {\r
     //\r
-    // If the first time detection is failed, turn port power off and on in order to \r
+    // If the first time detection is failed, turn port power off and on in order to\r
     // reset port status this time, then try to check if debug device is ready again.\r
     //\r
     for (Index = 0; Index < TotalUsb3Port; Index++) {\r
@@ -775,9 +775,9 @@ Enable:
   // Set DCE bit and LSE bit to "1" in DCCTRL in first initialization\r
   //\r
   XhcSetDebugRegBit (Handle, XHC_DC_DCCTRL, BIT1|BIT31);\r
-  \r
+\r
   XhcDetectDebugCapabilityReady (Handle);\r
-  \r
+\r
   Status = RETURN_SUCCESS;\r
   if (!Handle->Ready) {\r
     Handle->Initialized = USB3DBG_NOT_ENABLED;\r
@@ -823,7 +823,7 @@ DiscoverInitializeUsbDebugPort (
 \r
   @param[in] Instance           Debug port instance.\r
 \r
-**/  \r
+**/\r
 VOID\r
 SetUsb3DebugPortInstance (\r
   IN USB3_DEBUG_PORT_HANDLE     *Instance\r
@@ -839,7 +839,7 @@ SetUsb3DebugPortInstance (
 /**\r
   Return USB3 debug instance address.\r
 \r
-**/  \r
+**/\r
 USB3_DEBUG_PORT_HANDLE *\r
 GetUsb3DebugPortInstance (\r
   VOID\r
@@ -1010,7 +1010,7 @@ DebugPortWriteBuffer (
     XhcDataTransfer (UsbDebugPortHandle, EfiUsbDataOut, Buffer + Total, &Sent, DATA_TRANSFER_WRITE_TIMEOUT);\r
     Total += Sent;\r
   }\r
-  \r
+\r
   return Total;\r
 }\r
 \r
@@ -1123,7 +1123,7 @@ DebugPortInitialize (
   USB3_DEBUG_PORT_HANDLE    *UsbDebugPortHandle;\r
 \r
   //\r
-  // Validate the PCD PcdDebugPortHandleBufferSize value \r
+  // Validate the PCD PcdDebugPortHandleBufferSize value\r
   //\r
   ASSERT (PcdGet16 (PcdDebugPortHandleBufferSize) == sizeof (USB3_DEBUG_PORT_HANDLE));\r
 \r
index 0955aa6f0e9f144b77ac9e34158172bdcd29fad0..af9cc8f2815d0a1891717c0bb89d8140acee1595 100644 (file)
@@ -280,7 +280,7 @@ Usb3PciIoNotify (
                   );\r
   if (!EFI_ERROR (Status) &&\r
       (PciIoHandleBuffer != NULL) &&\r
-      (PciIoHandleCount != 0)) { \r
+      (PciIoHandleCount != 0)) {\r
     for (Index = 0; Index < PciIoHandleCount; Index++) {\r
       Status = gBS->HandleProtocol (\r
                       PciIoHandleBuffer[Index],\r
@@ -327,7 +327,7 @@ Usb3PciIoNotify (
 /**\r
   Return USB3 debug instance address pointer.\r
 \r
-**/  \r
+**/\r
 EFI_PHYSICAL_ADDRESS *\r
 GetUsb3DebugPortInstanceAddrPtr (\r
   VOID\r
@@ -391,7 +391,7 @@ Usb3AllocateDmaBuffer (
   Allocate aligned memory for XHC's usage.\r
 \r
   @param  BufferSize      The size, in bytes, of the Buffer.\r
-  \r
+\r
   @return A pointer to the allocated buffer or NULL if allocation fails.\r
 \r
 **/\r
@@ -403,9 +403,9 @@ AllocateAlignBuffer (
   EFI_PHYSICAL_ADDRESS    TmpAddr;\r
   EFI_STATUS              Status;\r
   VOID                    *Buf;\r
-  \r
+\r
   Buf = NULL;\r
-  \r
+\r
   if (gBS != NULL) {\r
     if (mUsb3PciIo != NULL) {\r
       Usb3AllocateDmaBuffer (\r
index 683d9572e9f7c5acf812211132b86f0d15fb162e..ce5902b919de6b37c98067d751041199fdecfebf 100644 (file)
@@ -50,7 +50,7 @@
   # The format of pci address please refer to SourceLevelDebugPkg.dec\r
   gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbXhciPciAddress               ## CONSUMES\r
 \r
-  # Per XHCI spec, software shall impose a timeout between the detection of the Debug Host \r
+  # Per XHCI spec, software shall impose a timeout between the detection of the Debug Host\r
   # connection and the DbC Run transition to 1. This PCD specifies the timeout value in microsecond.\r
   gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbXhciDebugDetectTimeout       ## SOMETIMES_CONSUMES\r
 \r
index 8673dad6c55e72cc7fd6a4ee1b0e9a1e53930133..f5a0279ac116994e414c51e648f9153f9f1fd3e4 100644 (file)
@@ -248,12 +248,12 @@ typedef struct _ENDPOINT_CONTEXT_64 {
   UINT32                  RsvdZ5;             // Reserved\r
   UINT32                  RsvdZ6;\r
   UINT32                  RsvdZ7;\r
-  \r
+\r
   UINT32                  RsvdZ8;\r
   UINT32                  RsvdZ9;\r
   UINT32                  RsvdZ10;\r
   UINT32                  RsvdZ11;\r
-  \r
+\r
   UINT32                  RsvdZ12;\r
   UINT32                  RsvdZ13;\r
   UINT32                  RsvdZ14;\r
@@ -396,7 +396,7 @@ typedef struct _DBC_INFO_CONTEXT {
   UINT64        RsvdZ1:32;\r
   UINT64        RsvdZ2;\r
   UINT64        RsvdZ3;\r
-  UINT64        RsvdZ4;  \r
+  UINT64        RsvdZ4;\r
 } DBC_INFO_CONTEXT;\r
 \r
 //\r
@@ -460,7 +460,7 @@ typedef struct _USB3_DEBUG_PORT_INSTANCE {
   // The flag indicates debug capability is supported\r
   //\r
   BOOLEAN                                 DebugSupport;\r
-  \r
+\r
   //\r
   // The flag indicates debug device is ready\r
   //\r
@@ -483,7 +483,7 @@ typedef struct _USB3_DEBUG_PORT_INSTANCE {
 \r
   //\r
   // The flag indicates if USB 3.0 ports has been turn off/on power\r
-  //  \r
+  //\r
   BOOLEAN                                 ChangePortPower;\r
 \r
   //\r
@@ -493,24 +493,24 @@ typedef struct _USB3_DEBUG_PORT_INSTANCE {
 \r
   //\r
   // XHCI OP RegisterBase address\r
-  //  \r
+  //\r
   EFI_PHYSICAL_ADDRESS                    XhciOpRegister;\r
-  \r
+\r
   //\r
   // XHCI Debug Register Base Address\r
   //\r
   EFI_PHYSICAL_ADDRESS                    DebugCapabilityBase;\r
-  \r
+\r
   //\r
   // XHCI Debug Capability offset\r
   //\r
-  UINT64                                  DebugCapabilityOffset;  \r
-  \r
+  UINT64                                  DebugCapabilityOffset;\r
+\r
   //\r
   // XHCI Debug Context Address\r
   //\r
   EFI_PHYSICAL_ADDRESS                    DebugCapabilityContext;\r
-  \r
+\r
   //\r
   // Transfer Ring\r
   //\r
@@ -521,7 +521,7 @@ typedef struct _USB3_DEBUG_PORT_INSTANCE {
   // EventRing\r
   //\r
   EVENT_RING                              EventRing;\r
-  \r
+\r
   //\r
   // URB - Read\r
   //\r
@@ -573,7 +573,7 @@ XhcSetDebugRegBit (
   IN UINT32                  Offset,\r
   IN UINT32                  Bit\r
   );\r
-  \r
+\r
 /**\r
   Write the data to the debug register.\r
 \r
@@ -581,7 +581,7 @@ XhcSetDebugRegBit (
   @param  Offset       The offset of the debug register.\r
   @param  Data         The data to write.\r
 \r
-**/  \r
+**/\r
 VOID\r
 XhcWriteDebugReg (\r
   IN USB3_DEBUG_PORT_HANDLE     *Handle,\r
@@ -596,12 +596,12 @@ XhcWriteDebugReg (
   @param[in]      BitMask     32-bit mask\r
 \r
   @return  BOOLEAN  - TRUE  if all bits specified by the mask are enabled.\r
-                    - FALSE even if one of the bits specified by the mask \r
+                    - FALSE even if one of the bits specified by the mask\r
                             is not enabled.\r
 **/\r
 BOOLEAN\r
 XhcIsBitSet(\r
-  UINTN   Register, \r
+  UINTN   Register,\r
   UINT32  BitMask\r
   );\r
 \r
@@ -613,7 +613,7 @@ XhcIsBitSet(
 **/\r
 VOID\r
 XhcSetR32Bit(\r
-  UINTN   Register, \r
+  UINTN   Register,\r
   UINT32  BitMask\r
   );\r
 \r
@@ -625,13 +625,13 @@ XhcSetR32Bit(
 **/\r
 VOID\r
 XhcClearR32Bit(\r
-  IN OUT  UINTN  Register, \r
+  IN OUT  UINTN  Register,\r
   IN      UINT32 BitMask\r
   );\r
 \r
 /**\r
   Initialize USB3 debug port.\r
-  \r
+\r
   This method invokes various internal functions to facilitate\r
   detection and initialization of USB3 debug port.\r
 \r
@@ -656,7 +656,7 @@ GetXhciPciCommand (
   Allocate aligned memory for XHC's usage.\r
 \r
   @param  BufferSize      The size, in bytes, of the Buffer.\r
-  \r
+\r
   @return A pointer to the allocated buffer or NULL if allocation fails.\r
 \r
 **/\r
@@ -667,7 +667,7 @@ AllocateAlignBuffer (
 \r
 /**\r
   The real function to initialize USB3 debug port.\r
-  \r
+\r
   This method invokes various internal functions to facilitate\r
   detection and initialization of USB3 debug port.\r
 \r
@@ -725,7 +725,7 @@ InitializeUsbDebugHardware (
 /**\r
   Return USB3 debug instance address pointer.\r
 \r
-**/  \r
+**/\r
 EFI_PHYSICAL_ADDRESS *\r
 GetUsb3DebugPortInstanceAddrPtr (\r
   VOID\r
@@ -734,7 +734,7 @@ GetUsb3DebugPortInstanceAddrPtr (
 /**\r
   Return USB3 debug instance address.\r
 \r
-**/  \r
+**/\r
 USB3_DEBUG_PORT_HANDLE *\r
 GetUsb3DebugPortInstance (\r
   VOID\r
index dfdbfb0b7c2e37b00588353d54ca454e7dee4084..f59128e47e05f053acf0350f567eb004a671e4e1 100644 (file)
@@ -179,7 +179,7 @@ Usb3GetIoMmu (
 /**\r
   Return USB3 debug instance address pointer.\r
 \r
-**/  \r
+**/\r
 EFI_PHYSICAL_ADDRESS *\r
 GetUsb3DebugPortInstanceAddrPtr (\r
   VOID\r
@@ -221,7 +221,7 @@ GetUsb3DebugPortInstanceAddrPtr (
   Allocate aligned memory for XHC's usage.\r
 \r
   @param BufferSize     The size, in bytes, of the Buffer.\r
-  \r
+\r
   @return A pointer to the allocated buffer or NULL if allocation fails.\r
 \r
 **/\r
index 12257bce7da736a26813ef62fb43b90cb3233e5f..24a120322cc5618f223f33ab7f69e4ce6b401f01 100644 (file)
@@ -52,7 +52,7 @@
   # The format of pci address please refer to SourceLevelDebugPkg.dec\r
   gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbXhciPciAddress               ## CONSUMES\r
 \r
-  # Per XHCI spec, software shall impose a timeout between the detection of the Debug Host \r
+  # Per XHCI spec, software shall impose a timeout between the detection of the Debug Host\r
   # connection and the DbC Run transition to 1. This PCD specifies the timeout value in microsecond.\r
   gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbXhciDebugDetectTimeout       ## SOMETIMES_CONSUMES\r
 \r
index 1b6645bd1c6d422be1ce56cec58d92364cbe9fdd..fb48010a9a1b36ff1e07dbcc12720f9bd6e3f44c 100644 (file)
@@ -41,7 +41,7 @@ XhcSyncTrsRing (
   TrsTrb = (TRB_TEMPLATE *)(UINTN) TrsRing->RingEnqueue;\r
 \r
   ASSERT (TrsTrb != NULL);\r
-  \r
+\r
   for (Index = 0; Index < TrsRing->TrbNumber; Index++) {\r
     if (TrsTrb->CycleBit != (TrsRing->RingPCS & BIT0)) {\r
       break;\r
@@ -185,9 +185,9 @@ IsTrbInTrsRing (
 {\r
   TRB_TEMPLATE  *CheckedTrb;\r
   UINTN         Index;\r
-  \r
+\r
   CheckedTrb = (TRB_TEMPLATE *)(UINTN) Ring->RingSeg0;\r
-  \r
+\r
   ASSERT (Ring->TrbNumber == TR_RING_TRB_NUMBER);\r
 \r
   for (Index = 0; Index < Ring->TrbNumber; Index++) {\r
@@ -222,7 +222,7 @@ XhcCheckUrbResult (
   UINT64                  XhcDequeue;\r
   UINT32                  High;\r
   UINT32                  Low;\r
-  \r
+\r
   ASSERT ((Handle != NULL) && (Urb != NULL));\r
 \r
   if (Urb->Finished) {\r
@@ -230,12 +230,12 @@ XhcCheckUrbResult (
   }\r
 \r
   EvtTrb = NULL;\r
-  \r
+\r
   //\r
   // Traverse the event ring to find out all new events from the previous check.\r
   //\r
   XhcSyncEventRing (Handle, &Handle->EventRing);\r
-  \r
+\r
   for (Index = 0; Index < Handle->EventRing.TrbNumber; Index++) {\r
 \r
     Status = XhcCheckNewEvent (Handle, &Handle->EventRing, ((TRB_TEMPLATE **)&EvtTrb));\r
@@ -245,13 +245,13 @@ XhcCheckUrbResult (
       //\r
       goto EXIT;\r
     }\r
-    \r
+\r
     if ((EvtTrb->Type != TRB_TYPE_COMMAND_COMPLT_EVENT) && (EvtTrb->Type != TRB_TYPE_TRANS_EVENT)) {\r
       continue;\r
     }\r
-    \r
+\r
     TRBPtr = (TRB_TEMPLATE *)(UINTN)(EvtTrb->TRBPtrLo | LShiftU64 ((UINT64) EvtTrb->TRBPtrHi, 32));\r
-    \r
+\r
     if (IsTrbInTrsRing ((TRANSFER_RING *)(UINTN)(Urb->Ring), TRBPtr)) {\r
       CheckedUrb = Urb;\r
     } else if (IsTrbInTrsRing ((TRANSFER_RING *)(UINTN)(Handle->UrbIn.Ring), TRBPtr)) {\r
@@ -269,7 +269,7 @@ XhcCheckUrbResult (
     } else {\r
       continue;\r
     }\r
-    \r
+\r
     if ((EvtTrb->Completecode == TRB_COMPLETION_SHORT_PACKET) ||\r
         (EvtTrb->Completecode == TRB_COMPLETION_SUCCESS)) {\r
       //\r
@@ -326,9 +326,9 @@ XhcRingDoorBell (
 \r
   //\r
   // 7.6.8.2 DCDB Register\r
-  //  \r
+  //\r
   Dcdb = (Urb->Direction == EfiUsbDataIn) ? 0x100 : 0x0;\r
-  \r
+\r
   XhcWriteDebugReg (\r
     Handle,\r
     XHC_DC_DCDB,\r
@@ -378,7 +378,7 @@ XhcExecTransfer (
     // If time out occurs.\r
     //\r
     Urb->Result |= EFI_USB_ERR_TIMEOUT;\r
-  } \r
+  }\r
   //\r
   // If URB transfer is error, restore transfer ring to original value before URB transfer\r
   // This will make the current transfer TRB is always at the latest unused one in transfer ring.\r
@@ -425,7 +425,7 @@ XhcCreateTransferTrb (
   } else {\r
     EPRing = &Handle->TransferRingOut;\r
   }\r
-  \r
+\r
   Urb->Ring = (EFI_PHYSICAL_ADDRESS)(UINTN) EPRing;\r
   XhcSyncTrsRing (Handle, EPRing);\r
 \r
@@ -439,12 +439,12 @@ XhcCreateTransferTrb (
   Trb->TrbNormal.ISP       = 1;\r
   Trb->TrbNormal.IOC       = 1;\r
   Trb->TrbNormal.Type      = TRB_TYPE_NORMAL;\r
-  \r
+\r
   //\r
   // Update the cycle bit to indicate this TRB has been consumed.\r
   //\r
   Trb->TrbNormal.CycleBit = EPRing->RingPCS & BIT0;\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -470,7 +470,7 @@ XhcCreateUrb (
   EFI_STATUS                    Status;\r
   URB                           *Urb;\r
   EFI_PHYSICAL_ADDRESS          UrbData;\r
-  \r
+\r
   if (Direction == EfiUsbDataIn) {\r
     Urb = &Handle->UrbIn;\r
   } else {\r
@@ -478,17 +478,17 @@ XhcCreateUrb (
   }\r
 \r
   UrbData  = Urb->Data;\r
-  \r
+\r
   ZeroMem (Urb, sizeof (URB));\r
   Urb->Direction = Direction;\r
-  \r
+\r
   //\r
   // Allocate memory to move data from CAR or SMRAM to normal memory\r
   // to make XHCI DMA successfully\r
   // re-use the pre-allocate buffer in PEI to avoid DXE memory service or gBS are not ready\r
   //\r
   Urb->Data  = UrbData;\r
-  \r
+\r
   if (Direction == EfiUsbDataIn) {\r
     //\r
     // Do not break URB data in buffer as it may contain the data which were just put in via DMA by XHC\r
@@ -502,7 +502,7 @@ XhcCreateUrb (
     CopyMem ((VOID*)(UINTN) Urb->Data, Data, DataLen);\r
     Urb->DataLen  = (UINT32) DataLen;\r
   }\r
-  \r
+\r
   Status = XhcCreateTransferTrb (Handle, Urb);\r
   ASSERT_EFI_ERROR (Status);\r
 \r
@@ -539,7 +539,7 @@ XhcDataTransfer (
 {\r
   URB                     *Urb;\r
   EFI_STATUS              Status;\r
-  \r
+\r
   //\r
   // Validate the parameters\r
   //\r
@@ -562,7 +562,7 @@ XhcDataTransfer (
   if (Urb->Result == EFI_USB_NOERROR) {\r
     Status = EFI_SUCCESS;\r
   }\r
-  \r
+\r
   if (Direction == EfiUsbDataIn) {\r
     //\r
     // Move data from internal buffer to outside buffer (outside buffer may be in SMRAM...)\r
index ccf3fb1842acfe85ab68df4e282feb22d3737d0b..85cab7c205d30ae2d1b564f094e4b661ca49582a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Ia32 arch functions to access IDT vector.\r
 \r
-  Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2013 - 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
@@ -24,7 +24,7 @@
   @retval  FALSE    IDT entries were not setuo by Debug Agent.\r
 \r
 **/\r
-BOOLEAN \r
+BOOLEAN\r
 CheckDebugAgentHandler (\r
   IN  IA32_DESCRIPTOR            *IdtDescriptor,\r
   IN  UINTN                      InterruptType\r
@@ -48,7 +48,7 @@ CheckDebugAgentHandler (
 }\r
 \r
 /**\r
-  Save IDT entry for INT1 and update it. \r
+  Save IDT entry for INT1 and update it.\r
 \r
   @param[in]  IdtDescriptor      Pointer to IDT Descriptor.\r
   @param[out] SavedIdtEntry      Original IDT entry returned.\r
@@ -63,7 +63,7 @@ SaveAndUpdateIdtEntry1 (
   IA32_IDT_GATE_DESCRIPTOR   *IdtEntry;\r
   UINT16                     CodeSegment;\r
   UINTN                      InterruptHandler;\r
-  \r
+\r
   IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor->Base;\r
   CopyMem (SavedIdtEntry, &IdtEntry[1], sizeof (IA32_IDT_GATE_DESCRIPTOR));\r
 \r
@@ -80,7 +80,7 @@ SaveAndUpdateIdtEntry1 (
 }\r
 \r
 /**\r
-  Restore IDT entry for INT1. \r
+  Restore IDT entry for INT1.\r
 \r
   @param[in]  IdtDescriptor      Pointer to IDT Descriptor.\r
   @param[in]  RestoredIdtEntry   IDT entry to be restored.\r
@@ -93,7 +93,7 @@ RestoreIdtEntry1 (
   )\r
 {\r
   IA32_IDT_GATE_DESCRIPTOR   *IdtEntry;\r
-  \r
+\r
   IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor->Base;\r
   CopyMem (&IdtEntry[1], RestoredIdtEntry, sizeof (IA32_IDT_GATE_DESCRIPTOR));\r
 }\r
index 87420709f6c31f98c1d2d2bda669b5bbb6788e00..feecf410c849e80ef9b4782b05ca8927bbf4f590 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   PE/Coff Extra Action library instances.\r
 \r
-  Copyright (c) 2010 - 2015, 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
@@ -16,7 +16,7 @@
 \r
 /**\r
   Check if the hardware breakpoint in Drx is enabled by checking the Lx and Gx bit in Dr7.\r
-  \r
+\r
   It assumes that DebugAgent will set both Lx and Gx bit when setting up the hardware breakpoint.\r
 \r
 \r
@@ -40,7 +40,7 @@ IsDrxEnabled (
   Common routine to report the PE/COFF image loading/relocating or unloading event.\r
 \r
   If ImageContext is NULL, then ASSERT().\r
-  \r
+\r
   @param  ImageContext  Pointer to the image context structure that describes the\r
                         PE/COFF image.\r
   @param  Signature     IMAGE_LOAD_SIGNATURE or IMAGE_UNLOAD_SIGNATURE.\r
@@ -83,7 +83,7 @@ PeCoffLoaderExtraActionCommon (
   if (LoadImageMethod == DEBUG_LOAD_IMAGE_METHOD_IO_HW_BREAKPOINT) {\r
     //\r
     // If the CPU does not support Debug Extensions(CPUID:01 EDX:BIT2)\r
-    // then force use of DEBUG_LOAD_IMAGE_METHOD_SOFT_INT3 \r
+    // then force use of DEBUG_LOAD_IMAGE_METHOD_SOFT_INT3\r
     //\r
     AsmCpuid (1, NULL, NULL, NULL, &RegEdx);\r
     if ((RegEdx & BIT2) == 0) {\r
@@ -107,7 +107,7 @@ PeCoffLoaderExtraActionCommon (
       IdtEntryHooked = TRUE;\r
     }\r
   }\r
-  \r
+\r
   //\r
   // Save Debug Register State\r
   //\r
@@ -152,7 +152,7 @@ PeCoffLoaderExtraActionCommon (
 \r
   //\r
   // Restore Debug Register State only when Host didn't change it inside exception handler.\r
-  // E.g.: User halts the target and sets the HW breakpoint while target is \r
+  // E.g.: User halts the target and sets the HW breakpoint while target is\r
   //       in the above exception handler\r
   //\r
   NewDr7 = AsmReadDr7 () | BIT10; // H/w sets bit 10, some simulators don't\r
index 3f919287e80c5549e8718f60e08ee027492a3d39..9216d9b0dfda503be749d47c4cf878b2a924e32f 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   PE/Coff Extra Action library instances, it will report image debug info.\r
 \r
-  Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2013 - 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
@@ -43,14 +43,14 @@ extern UINTN  AsmInterruptHandle;
   @retval  FALSE    IDT entries were not setuo by Debug Agent.\r
 \r
 **/\r
-BOOLEAN \r
+BOOLEAN\r
 CheckDebugAgentHandler (\r
   IN  IA32_DESCRIPTOR            *IdtDescriptor,\r
   IN  UINTN                      InterruptType\r
   );\r
 \r
 /**\r
-  Save IDT entry for INT1 and update it. \r
+  Save IDT entry for INT1 and update it.\r
 \r
   @param[in]  IdtDescriptor      Pointer to IDT Descriptor.\r
   @param[out] SavedIdtEntry      Original IDT entry returned.\r
@@ -63,7 +63,7 @@ SaveAndUpdateIdtEntry1 (
   );\r
 \r
 /**\r
-  Restore IDT entry for INT1. \r
+  Restore IDT entry for INT1.\r
 \r
   @param[in]  IdtDescriptor      Pointer to IDT Descriptor.\r
   @param[in]  RestoredIdtEntry   IDT entry to be restored.\r
index 5431187d0674c6eda59f8e17b67e13bd9c8cef34..b95557b56853a5fad8eedb514f6add7fc57f8b5c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   X64 arch function to access IDT vector.\r
 \r
-  Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2013 - 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
@@ -24,7 +24,7 @@
   @retval  FALSE    IDT entries were not setuo by Debug Agent.\r
 \r
 **/\r
-BOOLEAN \r
+BOOLEAN\r
 CheckDebugAgentHandler (\r
   IN  IA32_DESCRIPTOR            *IdtDescriptor,\r
   IN  UINTN                      InterruptType\r
@@ -39,7 +39,7 @@ CheckDebugAgentHandler (
   }\r
 \r
   InterruptHandler = IdtEntry[InterruptType].Bits.OffsetLow +\r
-                    (((UINTN)IdtEntry[InterruptType].Bits.OffsetHigh) << 16) + \r
+                    (((UINTN)IdtEntry[InterruptType].Bits.OffsetHigh) << 16) +\r
                     (((UINTN)IdtEntry[InterruptType].Bits.OffsetUpper) << 32);\r
   if (InterruptHandler >= sizeof (UINT32) &&  *(UINT32 *)(InterruptHandler - sizeof (UINT32)) == AGENT_HANDLER_SIGNATURE) {\r
     return TRUE;\r
@@ -49,7 +49,7 @@ CheckDebugAgentHandler (
 }\r
 \r
 /**\r
-  Save IDT entry for INT1 and update it. \r
+  Save IDT entry for INT1 and update it.\r
 \r
   @param[in]  IdtDescriptor      Pointer to IDT Descriptor.\r
   @param[out] SavedIdtEntry      Original IDT entry returned.\r
@@ -64,7 +64,7 @@ SaveAndUpdateIdtEntry1 (
   IA32_IDT_GATE_DESCRIPTOR   *IdtEntry;\r
   UINT16                     CodeSegment;\r
   UINTN                      InterruptHandler;\r
-  \r
+\r
   IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor->Base;\r
   CopyMem (SavedIdtEntry, &IdtEntry[1], sizeof (IA32_IDT_GATE_DESCRIPTOR));\r
 \r
@@ -82,7 +82,7 @@ SaveAndUpdateIdtEntry1 (
 }\r
 \r
 /**\r
-  Restore IDT entry for INT1. \r
+  Restore IDT entry for INT1.\r
 \r
   @param[in]  IdtDescriptor      Pointer to IDT Descriptor.\r
   @param[in]  RestoredIdtEntry   IDT entry to be restored.\r
@@ -95,7 +95,7 @@ RestoreIdtEntry1 (
   )\r
 {\r
   IA32_IDT_GATE_DESCRIPTOR   *IdtEntry;\r
-  \r
+\r
   IdtEntry = (IA32_IDT_GATE_DESCRIPTOR *) IdtDescriptor->Base;\r
   CopyMem (&IdtEntry[1], RestoredIdtEntry, sizeof (IA32_IDT_GATE_DESCRIPTOR));\r
 }\r
index b89e9c6ad601f2367d9975f434169c8c1aa990f8..5cc0c3f241168b99fe20e4511bf4a9fab5c5fa8e 100644 (file)
@@ -7,13 +7,13 @@
 # etc.\r
 #\r
 # Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials are licensed and made available under \r
-# the terms and conditions of the BSD License that accompanies this distribution.  \r
+# This program and the accompanying materials are licensed and made available under\r
+# the terms and conditions of the BSD License that accompanies this distribution.\r
 # 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
+# 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
 #\r
 ##\r
 \r
@@ -72,7 +72,7 @@
   # @Expression  0x80000001 | (gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbEhciPciAddress & 0xF0000FFF) == 0\r
   gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbEhciPciAddress|0x000EF000|UINT32|0x00000003\r
 \r
-  ## The mask of exception numbers whose handlers would be ignored and cannot be replaced or \r
+  ## The mask of exception numbers whose handlers would be ignored and cannot be replaced or\r
   #  hooked by Debug Agent Library. Masking INT1/INT3 is invalid.\r
   # @Prompt Configure exception numbers not to be hooked by Debug Agent.\r
   # @Expression  0x80000001 | (gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdExceptionsIgnoredByDebugger & 0xA) == 0\r
@@ -94,7 +94,7 @@
   ## Note that the memory BAR address is only used before Pci bus resource allocation.\r
   # @Prompt Configure xhci host controller memory BAR.\r
   gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbXhciMemorySpaceBase|0xD0000000|UINT64|0x00000007\r
-  \r
+\r
   ## The pci address of xhci host controller, in which usb debug feature is enabled.\r
   #  The format of pci address is :<BR>\r
   #      -----------------------------------------------------------------------<BR>\r
   # @Prompt Configure xhci host controller pci address.\r
   # @Expression  0x80000001 | (gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbXhciPciAddress & 0xF0000FFF) == 0\r
   gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbXhciPciAddress|0x000A0000|UINT32|0x00000008\r
-  \r
-  ## Per XHCI spec, software shall impose a timeout between the detection of the Debug Host \r
+\r
+  ## Per XHCI spec, software shall impose a timeout between the detection of the Debug Host\r
   ## connection and the DbC Run transition to 1. This PCD specifies the timeout value in microsecond.\r
   # @Prompt Configure debug device detection timeout value.\r
   gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbXhciDebugDetectTimeout|3000000|UINT64|0x00000009\r
index d9b1b84b15fc1454685354c37bae06d4062ecd02..69dcca67dd396e0e5534d1bcb9378d1c5974bc38 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # Source Level Debug Package.\r
 #\r
-# Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #    This program and the accompanying materials\r
 #    are licensed and made available under the terms and conditions of the BSD License\r
@@ -30,7 +30,7 @@
 \r
 [LibraryClasses.common]\r
   DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
-  DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf  \r
+  DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
   BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r
   BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r
   PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
index 8a201652274b086163fb9b4d0a19019ae2714573..887083a050256af6fef8b7a40ec17c3406f6796a 100644 (file)
@@ -14,7 +14,7 @@
 // the terms and conditions of the BSD License that accompanies this distribution.\r
 // The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php.\r
-// \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
 //\r
index 3f305c91f0bf826fdfe44874e84255108304cd79..c69af014065908230ebe5b29b05b2e7629394895 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // SourceLevelDebug Package Localized Strings and Content.\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials are licensed and made available under\r
 // the terms and conditions of the BSD License that accompanies this distribution.\r
@@ -13,6 +13,6 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_PACKAGE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_PACKAGE_NAME\r
+#language en-US\r
 "SourceLevelDebug package"\r