]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Include/Library/AcpiViewCommandLib.h
ShellPkg: Apply uncrustify changes
[mirror_edk2.git] / ShellPkg / Include / Library / AcpiViewCommandLib.h
CommitLineData
a6eaba4d 1/** @file\r
db77d8f7
TP
2 Library providing 'acpiview' functionality to display and\r
3 validate installed ACPI tables.\r
ee4dc24f 4\r
422fe85c 5 Copyright (c) 2016 - 2020, ARM Limited. All rights reserved.<BR>\r
56ba3746 6 SPDX-License-Identifier: BSD-2-Clause-Patent\r
ee4dc24f
RN
7**/\r
8\r
db77d8f7
TP
9#ifndef ACPI_VIEW_COMMAND_LIB_H_\r
10#define ACPI_VIEW_COMMAND_LIB_H_\r
ee4dc24f 11\r
d45cf5ff
TP
12/**\r
13 Dump a buffer to a file. Print error message if a file cannot be created.\r
14\r
15 @param[in] FileName The filename that shall be created to contain the buffer.\r
16 @param[in] Buffer Pointer to buffer that shall be dumped.\r
17 @param[in] BufferSize The size of buffer to be dumped in bytes.\r
18\r
19 @return The number of bytes that were written\r
20**/\r
21UINTN\r
22EFIAPI\r
23ShellDumpBufferToFile (\r
47d20b54
MK
24 IN CONST CHAR16 *FileNameBuffer,\r
25 IN CONST VOID *Buffer,\r
d45cf5ff
TP
26 IN CONST UINTN BufferSize\r
27 );\r
ee4dc24f
RN
28\r
29/**\r
db77d8f7 30 Display and validate ACPI tables.\r
ee4dc24f 31\r
422fe85c
TP
32 @param[in] ImageHandle Handle to the Image (NULL if internal).\r
33 @param[in] SystemTable Pointer to the System Table (NULL if internal).\r
34\r
db77d8f7
TP
35 @retval SHELL_INVALID_PARAMETER The command line invocation could not be parsed.\r
36 @retval SHELL_NOT_FOUND The command failed.\r
37 @retval SHELL_SUCCESS The command was successful.\r
a6eaba4d 38**/\r
ee4dc24f
RN
39SHELL_STATUS\r
40EFIAPI\r
41ShellCommandRunAcpiView (\r
42 IN EFI_HANDLE ImageHandle,\r
43 IN EFI_SYSTEM_TABLE *SystemTable\r
44 );\r
45\r
46#endif // UEFI_SHELL_ACPIVIEW_COMMAND_LIB_H_\r