EfiResetSystemLib.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /** @file
  2. Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. **/
  5. #ifndef __EFI_RESET_SYSTEM_LIB_H___
  6. #define __EFI_RESET_SYSTEM_LIB_H___
  7. /**
  8. Resets the entire platform.
  9. @param ResetType The type of reset to perform.
  10. @param ResetStatus The status code for the reset.
  11. @param DataSize The size, in bytes, of WatchdogData.
  12. @param ResetData For a ResetType of EfiResetCold, EfiResetWarm, or
  13. EfiResetShutdown the data buffer starts with a Null-terminated
  14. Unicode string, optionally followed by additional binary data.
  15. **/
  16. EFI_STATUS
  17. EFIAPI
  18. LibResetSystem (
  19. IN EFI_RESET_TYPE ResetType,
  20. IN EFI_STATUS ResetStatus,
  21. IN UINTN DataSize,
  22. IN CHAR16 *ResetData OPTIONAL
  23. );
  24. /**
  25. Initialize any infrastructure required for LibResetSystem () to function.
  26. @param ImageHandle The firmware allocated handle for the EFI image.
  27. @param SystemTable A pointer to the EFI System Table.
  28. @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
  29. **/
  30. EFI_STATUS
  31. EFIAPI
  32. LibInitializeResetSystem (
  33. IN EFI_HANDLE ImageHandle,
  34. IN EFI_SYSTEM_TABLE *SystemTable
  35. );
  36. #endif