2 Main file for AcpiViewApp application
4 Copyright (c) 2020, ARM Limited. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
8 #include <Library/BaseLib.h>
9 #include <Library/UefiBootServicesTableLib.h>
10 #include <Library/UefiLib.h>
11 #include <Library/ShellLib.h>
12 #include <Library/AcpiViewCommandLib.h>
14 #include <Protocol/ShellParameters.h>
17 // String token ID of help message text.
18 // Shell supports to find help message in the resource section of an application image if
19 // .MAN file is not found. This global variable is added to make build tool recognizes
20 // that the help string is consumed by user and then build tool will add the string into
21 // the resource section. Thus the application can use '-?' option to show help message in
24 GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringHelpTokenId
= STRING_TOKEN (STR_GET_HELP_ACPIVIEW
);
27 Application Entry Point wrapper around the shell command
29 @param[in] ImageHandle Handle to the Image (NULL if internal).
30 @param[in] SystemTable Pointer to the System Table (NULL if internal).
35 IN EFI_HANDLE ImageHandle
,
36 IN EFI_SYSTEM_TABLE
*SystemTable
39 return ShellCommandRunAcpiView (gImageHandle
, SystemTable
);