AcpiViewCommandLib.h 1.3 KB

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