SmiFeatures.h 979 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**@file
  2. Negotiate SMI features with QEMU, and configure UefiCpuPkg/PiSmmCpuDxeSmm
  3. accordingly.
  4. Copyright (C) 2016-2017, Red Hat, Inc.
  5. SPDX-License-Identifier: BSD-2-Clause-Patent
  6. **/
  7. #ifndef __SMI_FEATURES_H__
  8. #define __SMI_FEATURES_H__
  9. #include <Protocol/S3SaveState.h>
  10. /**
  11. Negotiate SMI features with QEMU.
  12. @retval FALSE If SMI feature negotiation is not supported by QEMU. This is
  13. not an error, it just means that SaveSmiFeatures() should not
  14. be called.
  15. @retval TRUE SMI feature negotiation is supported, and it has completed
  16. successfully as well. (Failure to negotiate is a fatal error
  17. and the function never returns in that case.)
  18. **/
  19. BOOLEAN
  20. NegotiateSmiFeatures (
  21. VOID
  22. );
  23. /**
  24. Append a boot script fragment that will re-select the previously negotiated
  25. SMI features during S3 resume.
  26. **/
  27. VOID
  28. SaveSmiFeatures (
  29. VOID
  30. );
  31. #endif