]>
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 This program and the accompanying materials are licensed and made available
8 under the terms and conditions of the BSD License which accompanies this
9 distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT
13 WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #ifndef __QEMU_FW_CFG_LIB_INTERNAL_H__
18 #define __QEMU_FW_CFG_LIB_INTERNAL_H__
21 Returns a boolean indicating if the firmware configuration interface is
22 available for library-internal purposes.
24 This function never changes fw_cfg state.
26 @retval TRUE The interface is available internally.
27 @retval FALSE The interface is not available internally.
30 InternalQemuFwCfgIsAvailable (
36 Returns a boolean indicating whether QEMU provides the DMA-like access method
39 @retval TRUE The DMA-like access method is available.
40 @retval FALSE The DMA-like access method is unavailable.
43 InternalQemuFwCfgDmaIsAvailable (
48 Returns a boolean indicating whether SEV support is enabled
50 @retval TRUE SEV is enabled
51 @retval FALSE SEV is disabled
54 InternalQemuFwCfgSevIsEnabled (
59 Allocate a bounce buffer for SEV DMA.
61 @param[out] Buffer Allocated DMA Buffer pointer
62 @param[in] NumPage Number of pages.
66 InternalQemuFwCfgSevDmaAllocateBuffer (
72 Free the DMA buffer allocated using InternalQemuFwCfgSevDmaAllocateBuffer
74 @param[in] NumPage Number of pages.
75 @param[in] Buffer DMA Buffer pointer
79 InternalQemuFwCfgSevDmaFreeBuffer (