TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | QEMU_FW_CFG_RESOURCE |
Typedefs | |
typedef IN VOID *Buffer | OPTIONAL |
Functions | |
typedef | VOID (EFIAPI READ_BYTES_FUNCTION)(IN UINTN Size |
VOID (EFIAPI *InternalQemuFwCfgReadBytes)(IN UINTN Size | |
VOID | QemuBuildFwCfgResourceHob (IN QEMU_FW_CFG_RESOURCE *FwCfgResource) |
QEMU_FW_CFG_RESOURCE * | QemuGetFwCfgResourceHob (VOID) |
UINTN EFIAPI | QemuGetFwCfgSelectorAddress (VOID) |
UINTN EFIAPI | QemuGetFwCfgDataAddress (VOID) |
UINTN EFIAPI | QemuGetFwCfgDmaAddress (VOID) |
VOID EFIAPI | MmioReadBytes (IN UINTN Size, IN VOID *Buffer OPTIONAL) |
VOID EFIAPI | MmioWriteBytes (IN UINTN Size, IN VOID *Buffer OPTIONAL) |
VOID EFIAPI | MmioSkipBytes (IN UINTN Size) |
VOID EFIAPI | DmaReadBytes (IN UINTN Size, IN VOID *Buffer OPTIONAL) |
VOID EFIAPI | DmaWriteBytes (IN UINTN Size, IN VOID *Buffer OPTIONAL) |
VOID EFIAPI | DmaSkipBytes (IN UINTN Size) |
VOID | DmaTransferBytes (IN UINTN Size, IN OUT VOID *Buffer OPTIONAL, IN UINT32 Control) |
Internal interfaces specific to the QemuFwCfgLibMmio instances in OvmfPkg.
Copyright (C) 2016, Red Hat, Inc. Copyright (C) 2017, Advanced Micro Devices. All rights reserved Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file QemuFwCfgLibMmioInternal.h.
IN VOID* Buffer OPTIONAL |
Definition at line 31 of file QemuFwCfgLibMmioInternal.h.
Fast READ_BYTES_FUNCTION.
Definition at line 247 of file QemuFwCfgLibMmio.c.
Fast SKIP_BYTES_FUNCTION.
Definition at line 362 of file QemuFwCfgLibMmio.c.
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 188 of file QemuFwCfgLibMmio.c.
Fast WRITE_BYTES_FUNCTION.
Definition at line 301 of file QemuFwCfgLibMmio.c.
Slow READ_BYTES_FUNCTION.
Definition at line 124 of file QemuFwCfgLibMmio.c.
Slow SKIP_BYTES_FUNCTION.
Definition at line 336 of file QemuFwCfgLibMmio.c.
Slow WRITE_BYTES_FUNCTION.
Definition at line 284 of file QemuFwCfgLibMmio.c.
VOID QemuBuildFwCfgResourceHob | ( | IN QEMU_FW_CFG_RESOURCE * | FwCfgResource | ) |
Build firmware configure resource HOB.
[in] | FwCfgResource | A pointer to firmware configure resource. |
NULL |
Build firmware configure resource HOB.
[in] | FwCfgResource | A pointer to firmware configure resource. |
VOID |
Definition at line 44 of file QemuFwCfgLibMmio.c.
UINTN EFIAPI QemuGetFwCfgDataAddress | ( | VOID | ) |
To get firmware configure Data address.
VOID |
firmware | configure data address |
Definition at line 53 of file QemuFwCfgMmioDxe.c.
UINTN EFIAPI QemuGetFwCfgDmaAddress | ( | VOID | ) |
To get firmware DMA address.
VOID |
firmware | DMA address |
Definition at line 69 of file QemuFwCfgMmioDxe.c.
QEMU_FW_CFG_RESOURCE * QemuGetFwCfgResourceHob | ( | VOID | ) |
Get firmware configure resource HOB.
VOID |
FwCfgResource | The firmware configure resouce in HOB. |
Get firmware configure resource in HOB.
VOID |
non-NULL | The firmware configure resource in HOB. NULL The firmware configure resource not found. |
Definition at line 64 of file QemuFwCfgLibMmio.c.
UINTN EFIAPI QemuGetFwCfgSelectorAddress | ( | VOID | ) |
To get firmware configure selector address.
VOID |
firmware | configure selector address |
Definition at line 37 of file QemuFwCfgMmioDxe.c.
VOID | ( | EFIAPI * | InternalQemuFwCfgReadBytes | ) |
Reads firmware configuration bytes into a buffer
[in] | Size | Size in bytes to read |
[in] | Buffer | Buffer to store data into (OPTIONAL if Size is 0) |
Writes bytes from a buffer to firmware configuration
[in] | Size | Size in bytes to write |
[in] | Buffer | Buffer to transfer data from (OPTIONAL if Size is 0) |
Skips bytes in firmware configuration
[in] | Size | Size in bytes to skip |
typedef VOID | ( | EFIAPI | READ_BYTES_FUNCTION | ) |
Reads firmware configuration bytes into a buffer
[in] | Size | Size in bytes to read |
[in] | Buffer | Buffer to store data into (OPTIONAL if Size is 0) |
Writes bytes from a buffer to firmware configuration
[in] | Size | Size in bytes to write |
[in] | Buffer | Buffer to transfer data from (OPTIONAL if Size is 0) |
Skips bytes in firmware configuration
[in] | Size | Size in bytes to skip |