]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/QemuFlashFvbServicesRuntimeDxe/QemuFlash.h
2 OVMF support for QEMU system firmware flash device
4 Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef __QEMU_FLASH_H__
16 #define __QEMU_FLASH_H__
18 #include <Protocol/FirmwareVolumeBlock.h>
23 @param[in] Lba The starting logical block index to read from.
24 @param[in] Offset Offset into the block at which to begin reading.
25 @param[in] NumBytes On input, indicates the requested read size. On
26 output, indicates the actual number of bytes read
27 @param[in] Buffer Pointer to the buffer to read into.
42 @param[in] Lba The starting logical block index to write to.
43 @param[in] Offset Offset into the block at which to begin writing.
44 @param[in] NumBytes On input, indicates the requested write size. On
45 output, indicates the actual number of bytes written
46 @param[in] Buffer Pointer to the data to write.
59 Erase a QEMU Flash block
61 @param Lba The logical block index to erase.
71 Initializes QEMU flash memory support
73 @retval EFI_WRITE_PROTECTED The QEMU flash device is not present.
74 @retval EFI_SUCCESS The QEMU flash device is supported.
84 QemuFlashConvertPointers (