audk/OvmfPkg/Include
Laszlo Ersek fcca9f67fb OvmfPkg/QemuFwCfgLib: add QemuFwCfgSkipBytes()
Introduce the new public API QemuFwCfgSkipBytes(), for advancing over
bytes in the selected firmware configuration item without transferring
data between the item and the caller.

When the DMA interface is available (the common case), the operation is
instantaneous. As a fallback, provide a loop of chunked reads into a small
stack-allocated scratch buffer.

This patch enables OvmfPkg/QemuFwCfgLib to overwrite part of a writeable
fw_cfg file, which will be particularly useful for the upcoming
QEMU_LOADER_WRITE_POINTER command in OvmfPkg/AcpiPlatformDxe.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=359
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2017-01-31 00:14:35 +01:00
..
Guid OvmfPkg: introduce gRootBridgesConnectedEventGroupGuid 2016-03-23 17:38:09 +01:00
IndustryStandard OvmfPkg/SmmControl2Dxe: correct PCI_CONFIG_READ_WRITE in S3 boot script 2017-01-09 20:49:20 +01:00
Library OvmfPkg/QemuFwCfgLib: add QemuFwCfgSkipBytes() 2017-01-31 00:14:35 +01:00
Protocol OvmfPkg: Fix typing errors in header files 2016-09-13 14:14:31 +02:00
Register OvmfPkg: SmmCpuFeaturesLib: customize state save map format 2015-11-30 18:46:42 +00:00
OvmfPlatforms.h OvmfPkg: introduce ICH9_PMBASE_VALUE 2016-05-17 20:48:37 +02:00