]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/QemuFwCfgS3Lib: add initial PEI and DXE fw_cfg library instances
authorLaszlo Ersek <lersek@redhat.com>
Wed, 22 Feb 2017 01:40:32 +0000 (02:40 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Tue, 14 Mar 2017 20:49:11 +0000 (21:49 +0100)
commit5e4d5b108799258e3cbf47bbc9744306855696df
tree9771be5525bf5bba4f2adee896cda964fa283746
parentad223a1c542217e2a9d06548dd596405e68e2a0b
OvmfPkg/QemuFwCfgS3Lib: add initial PEI and DXE fw_cfg library instances

This patch introduces PeiQemuFwCfgS3LibFwCfg, a limited functionality
QemuFwCfgS3Lib instance, for PEI phase modules.

The patch also introduces DxeQemuFwCfgS3LibFwCfg, a full functionality
QemuFwCfgS3Lib instance, for DXE_DRIVER and DXE_RUNTIME_DRIVER modules.

These library instances share the QemuFwCfgS3Enabled() function. The
function actually uses fw_cfg; the implementation is copied from
"OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c".

The library instances will diverge in the following patches.

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>
OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf [new file with mode: 0644]
OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf [new file with mode: 0644]
OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3PeiDxe.c [new file with mode: 0644]