VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/ShellPkg/Application/AcpiViewApp/AcpiViewApp.c

Last change on this file was 99404, checked in by vboxsync, 2 years ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1/** @file
2 Main file for AcpiViewApp application
3
4 Copyright (c) 2020, ARM Limited. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6**/
7
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>
13
14#include <Protocol/ShellParameters.h>
15
16//
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
22// Shell.
23//
24GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringHelpTokenId = STRING_TOKEN (STR_GET_HELP_ACPIVIEW);
25
26/**
27 Application Entry Point wrapper around the shell command
28
29 @param[in] ImageHandle Handle to the Image (NULL if internal).
30 @param[in] SystemTable Pointer to the System Table (NULL if internal).
31**/
32EFI_STATUS
33EFIAPI
34AcpiViewAppMain (
35 IN EFI_HANDLE ImageHandle,
36 IN EFI_SYSTEM_TABLE *SystemTable
37 )
38{
39 return ShellCommandRunAcpiView (gImageHandle, SystemTable);
40}
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette