TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
EFI_STATUS | HDiskImageInit (VOID) |
EFI_STATUS | HDiskImageBackup (VOID) |
EFI_STATUS | HDiskImageCleanup (VOID) |
EFI_STATUS | HDiskImageSetDiskNameOffsetSize (IN CONST CHAR16 *Str, IN UINTN Offset, IN UINTN Size) |
EFI_STATUS | HDiskImageRead (IN CONST CHAR16 *DeviceName, IN UINTN Offset, IN UINTN Size, IN BOOLEAN Recover) |
EFI_STATUS | HDiskImageSave (IN CHAR16 *DeviceName, IN UINTN Offset, IN UINTN Size) |
Functions to deal with Disk buffer.
Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file DiskImage.c.
EFI_STATUS HDiskImageBackup | ( | VOID | ) |
Backup function for HDiskImage. Only a few fields need to be backup. This is for making the Disk buffer refresh as few as possible.
EFI_SUCCESS | The operation was successful. |
EFI_OUT_OF_RESOURCES | gST->ConOut of resources. |
Definition at line 63 of file DiskImage.c.
EFI_STATUS HDiskImageCleanup | ( | VOID | ) |
Cleanup function for HDiskImage.
EFI_SUCCESS | The operation was successful. |
Definition at line 90 of file DiskImage.c.
EFI_STATUS HDiskImageInit | ( | VOID | ) |
Initialization function for HDiskImage.
EFI_SUCCESS | The operation was successful. |
EFI_LOAD_ERROR | A load error occurred. |
Definition at line 41 of file DiskImage.c.
EFI_STATUS HDiskImageRead | ( | IN CONST CHAR16 * | DeviceName, |
IN UINTN | Offset, | ||
IN UINTN | Size, | ||
IN BOOLEAN | Recover | ||
) |
Read a disk from disk into HBufferImage.
[in] | DeviceName | filename to read. |
[in] | Offset | The offset. |
[in] | Size | The size. |
[in] | Recover | if is for recover, no information print. |
EFI_SUCCESS | The operation was successful. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
EFI_LOAD_ERROR | A load error occurred. |
EFI_INVALID_PARAMETER | A parameter was invalid. |
Definition at line 154 of file DiskImage.c.
Save lines in HBufferImage to disk. NOT ALLOW TO WRITE TO ANOTHER DISK!!!!!!!!!
[in] | DeviceName | The device name. |
[in] | Offset | The offset. |
[in] | Size | The size. |
EFI_SUCCESS | The operation was successful. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
EFI_LOAD_ERROR | A load error occurred. |
EFI_INVALID_PARAMETER | A parameter was invalid. |
Definition at line 329 of file DiskImage.c.
EFI_STATUS HDiskImageSetDiskNameOffsetSize | ( | IN CONST CHAR16 * | Str, |
IN UINTN | Offset, | ||
IN UINTN | Size | ||
) |
Set FileName field in HFileImage.
[in] | Str | File name to set. |
[in] | Offset | The offset. |
[in] | Size | The size. |
EFI_SUCCESS | The operation was successful. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
Definition at line 111 of file DiskImage.c.
|
extern |
Definition at line 27 of file BufferImage.c.
|
extern |
Definition at line 69 of file BufferImage.c.
|
extern |
Definition at line 62 of file BufferImage.c.
|
extern |
Definition at line 67 of file BufferImage.c.
HEFI_EDITOR_DISK_IMAGE HDiskImage |
Definition at line 21 of file DiskImage.c.
HEFI_EDITOR_DISK_IMAGE HDiskImageBackupVar |
Definition at line 22 of file DiskImage.c.
HEFI_EDITOR_DISK_IMAGE HDiskImageConst |
Definition at line 27 of file DiskImage.c.
|
extern |
Definition at line 38 of file MainHexEditor.c.