FspPlatformLib.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /** @file
  2. Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. **/
  5. #ifndef _FSP_PLATFORM_LIB_H_
  6. #define _FSP_PLATFORM_LIB_H_
  7. /**
  8. Get system memory from HOB.
  9. @param[in,out] LowMemoryLength less than 4G memory length
  10. @param[in,out] HighMemoryLength greater than 4G memory length
  11. **/
  12. VOID
  13. EFIAPI
  14. FspGetSystemMemorySize (
  15. IN OUT UINT64 *LowMemoryLength,
  16. IN OUT UINT64 *HighMemoryLength
  17. );
  18. /**
  19. Migrate BootLoader data before destroying CAR.
  20. **/
  21. VOID
  22. EFIAPI
  23. FspMigrateTemporaryMemory (
  24. VOID
  25. );
  26. /**
  27. Set a new stack frame for the continuation function.
  28. **/
  29. VOID
  30. EFIAPI
  31. FspSetNewStackFrame (
  32. VOID
  33. );
  34. /**
  35. This function transfer control to the ContinuationFunc passed in by the
  36. BootLoader.
  37. **/
  38. VOID
  39. EFIAPI
  40. FspInitDone (
  41. VOID
  42. );
  43. /**
  44. This function handle NotifyPhase API call from the BootLoader.
  45. It gives control back to the BootLoader after it is handled. If the
  46. Notification code is a ReadyToBoot event, this function will return
  47. and FSP continues the remaining execution until it reaches the DxeIpl.
  48. **/
  49. VOID
  50. EFIAPI
  51. FspWaitForNotify (
  52. VOID
  53. );
  54. #endif