TianoCore EDK2 master
|
#include <Guid/ShellLibHiiGuid.h>
#include <IndustryStandard/Acpi.h>
#include <IndustryStandard/ArmErrorSourceTable.h>
#include <Library/BaseMemoryLib.h>
#include <Library/HiiLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PrintLib.h>
#include <Library/ShellCommandLib.h>
#include <Library/ShellLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#include <Library/AcpiViewCommandLib.h>
#include <Uefi.h>
#include "AcpiParser.h"
#include "AcpiTableParser.h"
#include "AcpiView.h"
#include "AcpiViewConfig.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | RegisterAllParsers () |
UINTN EFIAPI | ShellDumpBufferToFile (IN CONST CHAR16 *FileNameBuffer, IN CONST VOID *Buffer, IN CONST UINTN BufferSize) |
CONST CHAR16 *EFIAPI | ShellCommandGetManFileNameAcpiView (VOID) |
SHELL_STATUS EFIAPI | ShellCommandRunAcpiView (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
EFI_STATUS EFIAPI | UefiShellAcpiViewCommandLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
EFI_STATUS EFIAPI | UefiShellAcpiViewCommandLibDestructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
CONST CHAR16 | gShellAcpiViewFileName [] = L"ShellCommand" |
EFI_HII_HANDLE | gShellAcpiViewHiiHandle = NULL |
STATIC CONST SHELL_PARAM_ITEM | ParamList [] |
STATIC CONST ACPI_TABLE_PARSER | ParserList [] |
Main file for 'acpiview' Shell command function.
Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. Copyright (c) 2016 - 2023, Arm Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file UefiShellAcpiViewCommandLib.c.
EFI_STATUS RegisterAllParsers | ( | ) |
This function registers all the available table parsers.
EFI_SUCCESS | The parser is registered. |
EFI_ALREADY_STARTED | The parser for the ACPI Table was already registered. |
EFI_INVALID_PARAMETER | A parameter is invalid. |
EFI_OUT_OF_RESOURCES | No space to register the parser. |
Definition at line 96 of file UefiShellAcpiViewCommandLib.c.
CONST CHAR16 *EFIAPI ShellCommandGetManFileNameAcpiView | ( | VOID | ) |
Return the file name of the help text file if not using HII.
Definition at line 183 of file UefiShellAcpiViewCommandLib.c.
SHELL_STATUS EFIAPI ShellCommandRunAcpiView | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Function for 'acpiview' command.
[in] | ImageHandle | Handle to the Image (NULL if internal). |
[in] | SystemTable | Pointer to the System Table (NULL if internal). |
SHELL_INVALID_PARAMETER | The command line invocation could not be parsed |
SHELL_NOT_FOUND | The command failed |
SHELL_SUCCESS | The command was successful |
Definition at line 202 of file UefiShellAcpiViewCommandLib.c.
UINTN EFIAPI ShellDumpBufferToFile | ( | IN CONST CHAR16 * | FileNameBuffer, |
IN CONST VOID * | Buffer, | ||
IN CONST UINTN | BufferSize | ||
) |
Dump a buffer to a file. Print error message if a file cannot be created.
[in] | FileName | The filename that shall be created to contain the buffer. |
[in] | Buffer | Pointer to buffer that shall be dumped. |
[in] | BufferSize | The size of buffer to be dumped in bytes. |
Definition at line 129 of file UefiShellAcpiViewCommandLib.c.
EFI_STATUS EFIAPI UefiShellAcpiViewCommandLibConstructor | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Constructor for the Shell AcpiView Command library.
Install the handlers for acpiview UEFI Shell command.
ImageHandle | The image handle of the process. |
SystemTable | The EFI System Table pointer. |
EFI_SUCCESS | The Shell command handlers were installed successfully. |
EFI_DEVICE_ERROR | Hii package failed to install. |
Definition at line 405 of file UefiShellAcpiViewCommandLib.c.
EFI_STATUS EFIAPI UefiShellAcpiViewCommandLibDestructor | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Destructor for the library. free any resources.
ImageHandle | The image handle of the process. |
SystemTable | The EFI System Table pointer. |
Definition at line 458 of file UefiShellAcpiViewCommandLib.c.
CONST CHAR16 gShellAcpiViewFileName[] = L"ShellCommand" |
Definition at line 29 of file UefiShellAcpiViewCommandLib.c.
EFI_HII_HANDLE gShellAcpiViewHiiHandle = NULL |
Definition at line 30 of file UefiShellAcpiViewCommandLib.c.
STATIC CONST SHELL_PARAM_ITEM ParamList[] |
An array of acpiview command line parameters.
Definition at line 35 of file UefiShellAcpiViewCommandLib.c.
STATIC CONST ACPI_TABLE_PARSER ParserList[] |
A list of available table parsers.
Definition at line 50 of file UefiShellAcpiViewCommandLib.c.