]>
git.proxmox.com Git - mirror_edk2.git/blob - ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/DiskImage.h
2 Defines DiskImage - the view of the file that is visible at any point,
3 as well as the event handlers for editing the file
5 Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef _LIB_DISK_IMAGE_H_
11 #define _LIB_DISK_IMAGE_H_
13 #include "HexEditor.h"
16 Initialization function for HDiskImage.
18 @retval EFI_SUCCESS The operation was successful.
19 @retval EFI_LOAD_ERROR A load error occurred.
27 Cleanup function for HDiskImage.
29 @retval EFI_SUCCESS The operation was successful.
37 Backup function for HDiskImage. Only a few fields need to be backup.
38 This is for making the Disk buffer refresh as few as possible.
40 @retval EFI_SUCCESS The operation was successful.
41 @retval EFI_OUT_OF_RESOURCES gST->ConOut of resources.
49 Read a disk from disk into HBufferImage.
51 @param[in] DeviceName filename to read.
52 @param[in] Offset The offset.
53 @param[in] Size The size.
54 @param[in] Recover if is for recover, no information print.
56 @retval EFI_SUCCESS The operation was successful.
57 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.
58 @retval EFI_LOAD_ERROR A load error occurred.
59 @retval EFI_INVALID_PARAMETER A parameter was invalid.
63 IN CONST CHAR16
*DeviceName
,
70 Save lines in HBufferImage to disk.
71 NOT ALLOW TO WRITE TO ANOTHER DISK!!!!!!!!!
73 @param[in] DeviceName The device name.
74 @param[in] Offset The offset.
75 @param[in] Size The size.
77 @retval EFI_SUCCESS The operation was successful.
78 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.
79 @retval EFI_LOAD_ERROR A load error occurred.
80 @retval EFI_INVALID_PARAMETER A parameter was invalid.
84 IN CHAR16
*DeviceName
,