TianoCore EDK2 master
|
#include "UefiShellDebug1CommandsLib.h"
Go to the source code of this file.
Data Structures | |
union | HEX_NUMBER |
Enumerations | |
enum | DATA_TYPE { DataTypeHexNumber = 0 , DataTypeHexArray = 1 , DataTypeAscii = 2 , DataTypeUnicode = 3 , DataTypeDevicePath = 4 , DataTypeUnKnow = 5 } |
Functions | |
BOOLEAN | IsStringOfHexNibbles (IN CONST CHAR16 *String) |
DATA_TYPE | TestDataType (IN CONST CHAR16 *Data) |
EFI_STATUS | ParseParameterData (IN CONST CHAR16 *Data, OUT VOID *Buffer, IN OUT UINTN *BufferSize) |
EFI_STATUS | GetVariableDataFromParameter (IN CONST LIST_ENTRY *Package, OUT UINT8 **Buffer, OUT UINTN *BufferSize) |
SHELL_STATUS EFIAPI | ShellCommandRunSetVar (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
STATIC CONST SHELL_PARAM_ITEM | ParamList [] |
Main file for SetVar 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 SetVar.c.
EFI_STATUS GetVariableDataFromParameter | ( | IN CONST LIST_ENTRY * | Package, |
OUT UINT8 ** | Buffer, | ||
OUT UINTN * | BufferSize | ||
) |
Function to get each data from parameters.
[in] | Package | The package of checked values. |
[out] | Buffer | A pointer to a buffer to hold the return data. |
[out] | BufferSize | Indicates the size of data in bytes return in Buffer. |
EFI_INVALID_PARAMETER | Buffer or BufferSize is NULL. |
EFI_OUT_OF_RESOURCES | A memory allcation failed. |
EFI_SUCCESS | Get each parameter data was successful. |
Check if the input is a (potentially empty) string of hexadecimal nibbles.
[in] | String | The CHAR16 string to check. |
FALSE | A character has been found in String for which ShellIsHexaDecimalDigitCharacter() returned FALSE. |
TRUE | Otherwise. (Note that this covers the case when String is empty.) |
EFI_STATUS ParseParameterData | ( | IN CONST CHAR16 * | Data, |
OUT VOID * | Buffer, | ||
IN OUT UINTN * | BufferSize | ||
) |
Function to parse the Data by the type of Data, and save in the Buffer.
[in] | Data | A pointer to a buffer to be parsed. |
[out] | Buffer | A pointer to a buffer to hold the return data. |
[in,out] | BufferSize | On input, indicates the size of Buffer in bytes. On output,indicates the size of data return in Buffer. Or the size in bytes of the buffer needed to obtain. |
EFI_INVALID_PARAMETER | The Buffer or BufferSize is NULL. |
EFI_BUFFER_TOO_SMALL | The Buffer is too small to hold the data. |
EFI_OUT_OF_RESOURCES | A memory allcation failed. |
EFI_SUCCESS | The Data parsed successful and save in the Buffer. |
SHELL_STATUS EFIAPI ShellCommandRunSetVar | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
STATIC CONST SHELL_PARAM_ITEM ParamList[] |