]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibInternal.h
2 Internal interfaces specific to the QemuFwCfgLib instances in OvmfPkg.
4 Copyright (C) 2016, Red Hat, Inc.
5 Copyright (C) 2017, Advanced Micro Devices. All rights reserved
7 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #ifndef __QEMU_FW_CFG_LIB_INTERNAL_H__
12 #define __QEMU_FW_CFG_LIB_INTERNAL_H__
15 Returns a boolean indicating if the firmware configuration interface is
16 available for library-internal purposes.
18 This function never changes fw_cfg state.
20 @retval TRUE The interface is available internally.
21 @retval FALSE The interface is not available internally.
24 InternalQemuFwCfgIsAvailable (
30 Returns a boolean indicating whether QEMU provides the DMA-like access method
33 @retval TRUE The DMA-like access method is available.
34 @retval FALSE The DMA-like access method is unavailable.
37 InternalQemuFwCfgDmaIsAvailable (
42 Transfer an array of bytes, or skip a number of bytes, using the DMA
45 @param[in] Size Size in bytes to transfer or skip.
47 @param[in,out] Buffer Buffer to read data into or write data from. Ignored,
48 and may be NULL, if Size is zero, or Control is
51 @param[in] Control One of the following:
52 FW_CFG_DMA_CTL_WRITE - write to fw_cfg from Buffer.
53 FW_CFG_DMA_CTL_READ - read from fw_cfg into Buffer.
54 FW_CFG_DMA_CTL_SKIP - skip bytes in fw_cfg.
57 InternalQemuFwCfgDmaBytes (
59 IN OUT VOID
*Buffer OPTIONAL
,