TianoCore EDK2 master
|
#include <Protocol/FirmwareVolumeBlock.h>
Go to the source code of this file.
Functions | |
EFI_STATUS | QemuFlashRead (IN EFI_LBA Lba, IN UINTN Offset, IN UINTN *NumBytes, IN UINT8 *Buffer) |
EFI_STATUS | QemuFlashWrite (IN EFI_LBA Lba, IN UINTN Offset, IN UINTN *NumBytes, IN UINT8 *Buffer) |
EFI_STATUS | QemuFlashEraseBlock (IN EFI_LBA Lba) |
EFI_STATUS | QemuFlashInitialize (VOID) |
VOID | QemuFlashConvertPointers (VOID) |
VOID | QemuFlashBeforeProbe (IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINTN FdBlockSize, IN UINTN FdBlockCount) |
VOID | QemuFlashPtrWrite (IN volatile UINT8 *Ptr, IN UINT8 Value) |
Variables | |
UINT8 * | mFlashBase |
OVMF support for QEMU system firmware flash device
Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file QemuFlash.h.
VOID QemuFlashBeforeProbe | ( | IN EFI_PHYSICAL_ADDRESS | BaseAddress, |
IN UINTN | FdBlockSize, | ||
IN UINTN | FdBlockCount | ||
) |
Definition at line 34 of file QemuFlashDxe.c.
VOID QemuFlashConvertPointers | ( | VOID | ) |
Definition at line 22 of file QemuFlashDxe.c.
EFI_STATUS QemuFlashEraseBlock | ( | IN EFI_LBA | Lba | ) |
Erase a QEMU Flash block
Lba | The logical block index to erase. |
Definition at line 234 of file QemuFlash.c.
EFI_STATUS QemuFlashInitialize | ( | VOID | ) |
Initializes QEMU flash memory support
EFI_WRITE_PROTECTED | The QEMU flash device is not present. |
EFI_SUCCESS | The QEMU flash device is supported. |
Definition at line 258 of file QemuFlash.c.
Write to QEMU Flash
[in] | Ptr | Pointer to the location to write. |
[in] | Value | The value to write. |
Definition at line 53 of file QemuFlashDxe.c.
EFI_STATUS QemuFlashRead | ( | IN EFI_LBA | Lba, |
IN UINTN | Offset, | ||
IN UINTN * | NumBytes, | ||
IN UINT8 * | Buffer | ||
) |
Read from QEMU Flash
[in] | Lba | The starting logical block index to read from. |
[in] | Offset | Offset into the block at which to begin reading. |
[in] | NumBytes | On input, indicates the requested read size. On output, indicates the actual number of bytes read |
[in] | Buffer | Pointer to the buffer to read into. |
Definition at line 150 of file QemuFlash.c.
EFI_STATUS QemuFlashWrite | ( | IN EFI_LBA | Lba, |
IN UINTN | Offset, | ||
IN UINTN * | NumBytes, | ||
IN UINT8 * | Buffer | ||
) |
Write to QEMU Flash
[in] | Lba | The starting logical block index to write to. |
[in] | Offset | Offset into the block at which to begin writing. |
[in] | NumBytes | On input, indicates the requested write size. On output, indicates the actual number of bytes written |
[in] | Buffer | Pointer to the data to write. |
Definition at line 188 of file QemuFlash.c.
|
extern |
Definition at line 27 of file QemuFlash.c.