--- /dev/null
+/** @file\r
+ Initialize Debug Agent in PEI by invoking Debug Agent Library.\r
+\r
+Copyright (c) 2013, 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
+#include <PiPei.h>\r
+\r
+#include <Library/DebugAgentLib.h>\r
+\r
+/**\r
+ The Entry Point for Debug Agent PEI driver.\r
+\r
+ It will invoke Debug Agent Library to enable source debugging feature in PEI phase.\r
+\r
+ 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
+\r
+ @retval EFI_SUCCESS Debug Agent successfully initialized.\r
+ @retval other Some error occurs when initialzed Debug Agent.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+DebugAgentPeiInitialize (\r
+ IN EFI_PEI_FILE_HANDLE FileHandle,\r
+ IN CONST EFI_PEI_SERVICES **PeiServices\r
+ )\r
+{\r
+ EFI_STATUS Status;\r
+\r
+ InitializeDebugAgent (DEBUG_AGENT_INIT_PEI, &Status, NULL);\r
+\r
+ return Status;\r
+}\r