TianoCore EDK2 master
|
#include "UefiShellDebug1CommandsLib.h"
Go to the source code of this file.
Data Structures | |
struct | FILE_BUFFER |
Enumerations | |
enum | READ_STATUS { OutOfDiffPoint , InDiffPoint , InPrevDiffPoint } |
Functions | |
VOID | PrintDifferentPoint (CONST CHAR16 *FileName, CHAR16 *FileTag, UINT8 *Buffer, UINT64 BufferSize, UINTN Address, UINT64 DifferentBytes) |
STATIC VOID | FileBufferInit (OUT FILE_BUFFER *FileBuffer) |
STATIC VOID | FileBufferUninit (IN OUT FILE_BUFFER *FileBuffer) |
STATIC EFI_STATUS | FileBufferReadByte (IN SHELL_FILE_HANDLE FileHandle, IN OUT FILE_BUFFER *FileBuffer, OUT UINTN *BytesRead, OUT UINT8 *Byte) |
SHELL_STATUS EFIAPI | ShellCommandRunComp (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
STATIC CONST SHELL_PARAM_ITEM | ParamList [] |
Main file for Comp shell Debug1 function.
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Comp.c.
STATIC VOID FileBufferInit | ( | OUT FILE_BUFFER * | FileBuffer | ) |
Initialize a FILE_BUFFER.
[out] | FileBuffer | The FILE_BUFFER to initialize. On return, the caller is responsible for checking FileBuffer->Data: if FileBuffer->Data is NULL on output, then memory allocation failed. |
STATIC EFI_STATUS FileBufferReadByte | ( | IN SHELL_FILE_HANDLE | FileHandle, |
IN OUT FILE_BUFFER * | FileBuffer, | ||
OUT UINTN * | BytesRead, | ||
OUT UINT8 * | Byte | ||
) |
Read a byte from a SHELL_FILE_HANDLE, buffered with a FILE_BUFFER.
[in] | FileHandle | The SHELL_FILE_HANDLE to replenish FileBuffer from, if needed. |
[in,out] | FileBuffer | The FILE_BUFFER to read a byte from. If FileBuffer is empty on entry, then FileBuffer is refilled from FileHandle, before outputting a byte from FileBuffer to Byte. The caller is responsible for ensuring that FileBuffer was successfully initialized with FileBufferInit(). |
[out] | BytesRead | On successful return, BytesRead is set to 1 if the next byte from FileBuffer has been stored to Byte. On successful return, BytesRead is set to 0 if FileBuffer is empty, and FileHandle is at EOF. When an error is returned, BytesRead is not set. |
[out] | Byte | On output, the next byte from FileBuffer. Only set if (a) EFI_SUCCESS is returned and (b) BytesRead is set to 1 on output. |
EFI_SUCCESS | BytesRead has been set to 0 or 1. In the latter case, Byte has been set as well. |
STATIC VOID FileBufferUninit | ( | IN OUT FILE_BUFFER * | FileBuffer | ) |
Uninitialize a FILE_BUFFER.
[in,out] | FileBuffer | The FILE_BUFFER to uninitialize. The caller is responsible for making sure FileBuffer was first initialized with FileBufferInit(), successfully or unsuccessfully. |
VOID PrintDifferentPoint | ( | CONST CHAR16 * | FileName, |
CHAR16 * | FileTag, | ||
UINT8 * | Buffer, | ||
UINT64 | BufferSize, | ||
UINTN | Address, | ||
UINT64 | DifferentBytes | ||
) |
Function to print differnt point data.
[in] | FileName | File name. |
[in] | FileTag | File tag name. |
[in] | Buffer | Data buffer to be printed. |
[in] | BufferSize | Size of the data to be printed. |
[in] | Address | Address of the differnt point. |
[in] | DifferentBytes | Total size of the buffer. |
SHELL_STATUS EFIAPI ShellCommandRunComp | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
STATIC CONST SHELL_PARAM_ITEM ParamList[] |