PlatformBm.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /** @file
  2. Head file for BDS Platform specific code
  3. Copyright (C) 2015-2016, Red Hat, Inc.
  4. Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>
  5. SPDX-License-Identifier: BSD-2-Clause-Patent
  6. **/
  7. #ifndef _PLATFORM_BM_H_
  8. #define _PLATFORM_BM_H_
  9. #include <Library/BaseLib.h>
  10. #include <Library/BaseMemoryLib.h>
  11. #include <Library/DebugLib.h>
  12. #include <Library/DevicePathLib.h>
  13. #include <Library/MemoryAllocationLib.h>
  14. #include <Library/UefiBootServicesTableLib.h>
  15. #include <Library/UefiLib.h>
  16. #include <Library/UefiRuntimeServicesTableLib.h>
  17. /**
  18. Download the kernel, the initial ramdisk, and the kernel command line from
  19. QEMU's fw_cfg. Construct a minimal SimpleFileSystem that contains the two
  20. image files, and load and start the kernel from it.
  21. The kernel will be instructed via its command line to load the initrd from
  22. the same Simple FileSystem.
  23. @retval EFI_NOT_FOUND Kernel image was not found.
  24. @retval EFI_OUT_OF_RESOURCES Memory allocation failed.
  25. @retval EFI_PROTOCOL_ERROR Unterminated kernel command line.
  26. @return Error codes from any of the underlying
  27. functions. On success, the function doesn't
  28. return.
  29. **/
  30. EFI_STATUS
  31. EFIAPI
  32. TryRunningQemuKernel (
  33. VOID
  34. );
  35. #endif // _PLATFORM_BM_H_