diff options
author | Laszlo Ersek <lersek@redhat.com> | 2017-02-22 06:58:55 +0100 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2017-03-14 21:49:18 +0100 |
commit | 06a265b948da7271e6d0cd527a8b54a5213e7bea (patch) | |
tree | 6a3cf81526b9ec8512f0dc1af05062a5b9922684 /OvmfPkg/README | |
parent | 687f7521ea03b6c05ec03a8d37f4d7370cfd1016 (diff) | |
download | edk2-platforms-06a265b948da7271e6d0cd527a8b54a5213e7bea.tar.xz |
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>
Diffstat (limited to 'OvmfPkg/README')
0 files changed, 0 insertions, 0 deletions