RdkBootManagerLib.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. # Copyright (c) 2014-2018, Linaro Limited. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-2-Clause-Patent
  5. #
  6. */
  7. #ifndef __RDK_BOOT_MANAGER_LIB_H__
  8. #define __RDK_BOOT_MANAGER_LIB_H__
  9. #include <Library/UefiLib.h>
  10. #include <Library/BaseLib.h>
  11. #include <Library/DebugLib.h>
  12. #include <Library/PrintLib.h>
  13. #include <Library/ShellLib.h>
  14. #include <Library/DevicePathLib.h>
  15. #include <Library/FileHandleLib.h>
  16. #include <Library/MemoryAllocationLib.h>
  17. #include <Library/UefiBootServicesTableLib.h>
  18. #include <Library/UefiRuntimeServicesTableLib.h>
  19. #include <Protocol/DiskIo.h>
  20. #include <Protocol/BlockIo.h>
  21. #include <Protocol/LoadFile.h>
  22. #include <Protocol/SimpleTextOut.h>
  23. #include <Protocol/DevicePathFromText.h>
  24. #include <Protocol/DevicePathToText.h>
  25. #include <Protocol/AndroidFastbootPlatform.h>
  26. #include <Guid/ImageAuthentication.h>
  27. #include <Guid/AuthenticatedVariableFormat.h>
  28. #include <HttpBootDxe/HttpBootDxe.h>
  29. #include <Include/Guid/AuthenticatedVariableFormat.h>
  30. extern
  31. EFI_STATUS
  32. PartitionRead (
  33. IN CHAR8 *PartitionName,
  34. IN VOID *Image,
  35. IN UINTN Size
  36. );
  37. extern
  38. EFI_STATUS
  39. PartitionWrite (
  40. IN CHAR8 *PartitionName,
  41. IN VOID *Image,
  42. IN UINTN Size
  43. );
  44. extern
  45. EFI_STATUS
  46. GetRdkVariable (
  47. IN CONST CHAR16 *Name,
  48. OUT CONST CHAR16 **Value
  49. );
  50. extern
  51. EFI_STATUS
  52. RdkSecureBoot (
  53. EFI_HANDLE ImageHandle,
  54. EFI_BOOT_SERVICES *BootServices
  55. );
  56. extern
  57. EFI_STATUS
  58. RdkReadFile (
  59. IN CONST CHAR16 *Path,
  60. IN OUT VOID **BufferPtr,
  61. OUT UINTN *FileSize
  62. );
  63. extern
  64. EFI_STATUS
  65. RdkWriteFile (
  66. IN CONST CHAR16 *Path,
  67. IN OUT VOID **BufferPtr,
  68. OUT UINTN *FileSize
  69. );
  70. extern
  71. EFI_STATUS
  72. GetFileHandler (
  73. OUT EFI_FILE_HANDLE *FileHandle,
  74. IN CONST CHAR16 *Path,
  75. IN UINT64 OpenMode
  76. );
  77. extern
  78. EFI_STATUS
  79. RdkHttpBoot (
  80. VOID
  81. );
  82. #endif /* __RDK_BOOT_MANAGER_LIB_H__ */