Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
/** @file\r
Pei Core Reset System Support\r
/** @file\r
Pei Core Reset System Support\r
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
Copyright (c) 2006 - 2017, 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
+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
EFI_STATUS\r
EFIAPI\r
PeiResetSystem (\r
EFI_STATUS\r
EFIAPI\r
PeiResetSystem (\r
- IN CONST EFI_PEI_SERVICES **PeiServices\r
+ IN CONST EFI_PEI_SERVICES **PeiServices\r
- EFI_STATUS Status;\r
- EFI_PEI_RESET_PPI *ResetPpi;\r
+ EFI_STATUS Status;\r
+ EFI_PEI_RESET_PPI *ResetPpi;\r
\r
//\r
// Attempt to use newer ResetSystem2(). If this returns, then ResetSystem2()\r
\r
//\r
// Attempt to use newer ResetSystem2(). If this returns, then ResetSystem2()\r
);\r
if (!EFI_ERROR (Status)) {\r
return ResetPpi->ResetSystem (PeiServices);\r
);\r
if (!EFI_ERROR (Status)) {\r
return ResetPpi->ResetSystem (PeiServices);\r
- // Report Status Code that Reset PPI is not available\r
+ // Report Status Code that Reset PPI is not available.\r
//\r
REPORT_STATUS_CODE (\r
EFI_ERROR_CODE | EFI_ERROR_MINOR,\r
//\r
REPORT_STATUS_CODE (\r
EFI_ERROR_CODE | EFI_ERROR_MINOR,\r
VOID\r
EFIAPI\r
PeiResetSystem2 (\r
VOID\r
EFIAPI\r
PeiResetSystem2 (\r
- IN EFI_RESET_TYPE ResetType,\r
- IN EFI_STATUS ResetStatus,\r
- IN UINTN DataSize,\r
- IN VOID *ResetData OPTIONAL\r
+ IN EFI_RESET_TYPE ResetType,\r
+ IN EFI_STATUS ResetStatus,\r
+ IN UINTN DataSize,\r
+ IN VOID *ResetData OPTIONAL\r
- EFI_STATUS Status;\r
- EFI_PEI_RESET2_PPI *Reset2Ppi;\r
+ EFI_STATUS Status;\r
+ EFI_PEI_RESET2_PPI *Reset2Ppi;\r
\r
//\r
// Look for PEI Reset System 2 PPI\r
\r
//\r
// Look for PEI Reset System 2 PPI\r
NULL,\r
(VOID **)&Reset2Ppi\r
);\r
NULL,\r
(VOID **)&Reset2Ppi\r
);\r
if (!EFI_ERROR (Status)) {\r
Reset2Ppi->ResetSystem (ResetType, ResetStatus, DataSize, ResetData);\r
return;\r
if (!EFI_ERROR (Status)) {\r
Reset2Ppi->ResetSystem (ResetType, ResetStatus, DataSize, ResetData);\r
return;\r
(EFI_SOFTWARE_PEI_CORE | EFI_SW_PS_EC_RESET_NOT_AVAILABLE)\r
);\r
}\r
(EFI_SOFTWARE_PEI_CORE | EFI_SW_PS_EC_RESET_NOT_AVAILABLE)\r
);\r
}\r