FspWrapperPlatformLib.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /** @file
  2. Provide FSP wrapper platform related function.
  3. Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef __FSP_WRAPPER_PLATFORM_LIB_H__
  7. #define __FSP_WRAPPER_PLATFORM_LIB_H__
  8. /**
  9. This function overrides the default configurations in the FSP-M UPD data region.
  10. @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data structure.
  11. **/
  12. VOID
  13. EFIAPI
  14. UpdateFspmUpdData (
  15. IN OUT VOID *FspUpdRgnPtr
  16. );
  17. /**
  18. This function overrides the default configurations in the FSP-S UPD data region.
  19. @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data structure.
  20. **/
  21. VOID
  22. EFIAPI
  23. UpdateFspsUpdData (
  24. IN OUT VOID *FspUpdRgnPtr
  25. );
  26. /**
  27. Update TempRamExit parameter.
  28. @note At this point, memory is ready, PeiServices are available to use.
  29. @return TempRamExit parameter.
  30. **/
  31. VOID *
  32. EFIAPI
  33. UpdateTempRamExitParam (
  34. VOID
  35. );
  36. /**
  37. Get S3 PEI memory information.
  38. @note At this point, memory is ready, and PeiServices are available to use.
  39. Platform can get some data from SMRAM directly.
  40. @param[out] S3PeiMemSize PEI memory size to be installed in S3 phase.
  41. @param[out] S3PeiMemBase PEI memory base to be installed in S3 phase.
  42. @return If S3 PEI memory information is got successfully.
  43. **/
  44. EFI_STATUS
  45. EFIAPI
  46. GetS3MemoryInfo (
  47. OUT UINT64 *S3PeiMemSize,
  48. OUT EFI_PHYSICAL_ADDRESS *S3PeiMemBase
  49. );
  50. /**
  51. Perform platform related reset in FSP wrapper.
  52. This function will reset the system with requested ResetType.
  53. @param[in] FspStatusResetType The type of reset the platform has to perform.
  54. **/
  55. VOID
  56. EFIAPI
  57. CallFspWrapperResetSystem (
  58. IN EFI_STATUS FspStatusResetType
  59. );
  60. #endif