TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
BOOLEAN | InternalQemuFwCfgIsAvailable (VOID) |
BOOLEAN | InternalQemuFwCfgDmaIsAvailable (VOID) |
VOID | InternalQemuFwCfgDmaBytes (IN UINT32 Size, IN OUT VOID *Buffer OPTIONAL, IN UINT32 Control) |
BOOLEAN | QemuFwCfgIsTdxGuest (VOID) |
Internal interfaces specific to the QemuFwCfgLib instances in OvmfPkg.
Copyright (C) 2016, Red Hat, Inc. Copyright (C) 2017, Advanced Micro Devices. All rights reserved
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file QemuFwCfgLibInternal.h.
Transfer an array of bytes, or skip a number of bytes, using the DMA interface.
[in] | Size | Size in bytes to transfer or skip. |
[in,out] | Buffer | Buffer to read data into or write data from. Ignored, and may be NULL, if Size is zero, or Control is FW_CFG_DMA_CTL_SKIP. |
[in] | Control | One of the following: FW_CFG_DMA_CTL_WRITE - write to fw_cfg from Buffer. FW_CFG_DMA_CTL_READ - read from fw_cfg into Buffer. FW_CFG_DMA_CTL_SKIP - skip bytes in fw_cfg. |
Definition at line 387 of file QemuFwCfgDxe.c.
BOOLEAN InternalQemuFwCfgDmaIsAvailable | ( | VOID | ) |
Returns a boolean indicating whether QEMU provides the DMA-like access method for fw_cfg.
TRUE | The DMA-like access method is available. |
FALSE | The DMA-like access method is unavailable. |
Definition at line 141 of file QemuFwCfgDxe.c.
BOOLEAN InternalQemuFwCfgIsAvailable | ( | VOID | ) |
Returns a boolean indicating if the firmware configuration interface is available for library-internal purposes.
This function never changes fw_cfg state.
TRUE | The interface is available internally. |
FALSE | The interface is not available internally. |
Definition at line 126 of file QemuFwCfgDxe.c.
BOOLEAN QemuFwCfgIsTdxGuest | ( | VOID | ) |
Check if it is Tdx guest
TRUE | It is Tdx guest |
FALSE | It is not Tdx guest |