audk/OvmfPkg/Include/Library
Laszlo Ersek 06a265b948 OvmfPkg/QemuFwCfgS3Lib: add boot script opcode generation APIs to libclass
Introduce the following APIs:

- QemuFwCfgS3CallWhenBootScriptReady(): central function that registers a
  callback function, with a context parameter, for when ACPI S3 Boot
  Script opcodes can be produced. This function also allocates reserved
  memory for the opcodes to operate upon.

  The client module is supposed to produce the boot script fragment in the
  callback function.

- QemuFwCfgS3ScriptWriteBytes(), QemuFwCfgS3ScriptReadBytes(),
  QemuFwCfgS3ScriptSkipBytes(), QemuFwCfgS3ScriptCheckValue(): helper
  functions, available only to the above callback function, for composing
  the boot script fragment. QemuFwCfgS3ScriptSkipBytes() can double as a
  plain "select" whenever necessary.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=394
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2017-03-14 21:49:18 +01:00
..
LoadLinuxLib.h OvmfPkg: Fix typing errors in header files 2016-09-13 14:14:31 +02:00
NvVarsFileLib.h Update the copyright notice format 2010-04-28 12:43:04 +00:00
PlatformFvbLib.h OvmfPkg EMU FVB: Add 2 functions to PlatformFvbLib 2011-01-09 03:51:16 +00:00
QemuBootOrderLib.h OvmfPkg, ArmVirtPkg: clean up SetBootOrderFromQemu() parameter list 2016-05-25 12:25:19 +02:00
QemuFwCfgLib.h ArmVirtPkg, OvmfPkg: retire QemuFwCfgS3Enabled() from QemuFwCfgLib 2017-03-14 21:49:16 +01:00
QemuFwCfgS3Lib.h OvmfPkg/QemuFwCfgS3Lib: add boot script opcode generation APIs to libclass 2017-03-14 21:49:18 +01:00
SerializeVariablesLib.h OvmfPkg: Add SerializeVariablesLib library class 2011-01-30 19:49:37 +00:00
VirtioLib.h OvmfPkg: VirtioLib: add Virtio10WriteFeatures() function 2016-04-06 19:21:50 +02:00
VirtioMmioDeviceLib.h OvmfPkg/VirtioMmioDeviceLib: Implement VIRTIO_DEVICE_PROTOCOL for VirtIo Devices over MMIO 2013-12-11 16:57:59 +00:00
XenHypercallLib.h OvmfPkg/XenHypercallLib: Add EFIAPI 2016-12-06 18:00:32 +01:00
XenIoMmioLib.h ArmVirtualizationPkg: add XenIoMmioLib 2015-02-28 20:34:16 +00:00