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