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