Functions | |
EFI_STATUS | GetFvbHandleByAddress (IN EFI_PHYSICAL_ADDRESS Address, OUT EFI_HANDLE *FvbHandle) |
EFI_STATUS | GetLbaAndOffsetByAddress (IN EFI_PHYSICAL_ADDRESS Address, OUT EFI_LBA *Lba, OUT UINTN *Offset) |
EFI_STATUS | FtwVariableSpace (IN EFI_PHYSICAL_ADDRESS VariableBase, IN UINT8 *Buffer, IN UINTN BufferSize) |
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
EFI_STATUS FtwVariableSpace | ( | IN EFI_PHYSICAL_ADDRESS | VariableBase, | |
IN UINT8 * | Buffer, | |||
IN UINTN | BufferSize | |||
) |
Writes a buffer to variable storage space.
This function writes a buffer to variable storage space into firmware volume block device. The destination is specified by parameter VariableBase. Fault Tolerant Write protocol is used for writing.
[in] | VariableBase | The base address of the variable to write. |
[in] | Buffer | Points to the data buffer. |
[in] | BufferSize | The number of bytes of the data Buffer. |
EFI_SUCCESS | The function completed successfully. | |
EFI_NOT_FOUND | Fail to locate Fault Tolerant Write protocol. | |
Other | The function could not complete successfully. |
References EFI_STATUS(), GetFvbHandleByAddress(), GetLbaAndOffsetByAddress(), and UINTN().
Referenced by Reclaim().
EFI_STATUS GetFvbHandleByAddress | ( | IN EFI_PHYSICAL_ADDRESS | Address, | |
OUT EFI_HANDLE * | FvbHandle | |||
) |
Gets firmware volume block handle by given address.
This function gets firmware volume block handle whose address range contains the parameter Address.
[in] | Address | Address which should be contained by returned FVB handle. |
[out] | FvbHandle | Pointer to FVB handle for output. |
EFI_SUCCESS | FVB handle successfully returned. | |
EFI_NOT_FOUND | Failed to find FVB handle by address. |
References EFI_STATUS(), and UINTN().
Referenced by FtwVariableSpace(), and GetLbaAndOffsetByAddress().
EFI_STATUS GetLbaAndOffsetByAddress | ( | IN EFI_PHYSICAL_ADDRESS | Address, | |
OUT EFI_LBA * | Lba, | |||
OUT UINTN * | Offset | |||
) |
Gets LBA of block and offset by given address.
This function gets the Logical Block Address (LBA) of firmware volume block containing the given address, and the offset of address on the block.
[in] | Address | Address which should be contained by returned FVB handle. |
[out] | Lba | The pointer to LBA for output. |
[out] | Offset | The pointer to offset for output. |
EFI_SUCCESS | LBA and offset successfully returned. | |
EFI_NOT_FOUND | Failed to find FVB handle by address. | |
EFI_ABORTED | Failed to find valid LBA and offset. |
References EFI_STATUS(), GetFvbHandleByAddress(), and UINTN().
Referenced by FtwVariableSpace().