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