]> git.proxmox.com Git - mirror_edk2.git/blame - ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.h
ArmVirtPkg/PlatformBootManagerLib: rebase boot logo display to BootLogoLib
[mirror_edk2.git] / ArmVirtPkg / Library / PlatformBootManagerLib / PlatformBm.h
CommitLineData
8d620322
LE
1/** @file\r
2 Head file for BDS Platform specific code\r
3\r
4 Copyright (C) 2015-2016, Red Hat, Inc.\r
5 Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r
6\r
7 This program and the accompanying materials are licensed and made available\r
8 under the terms and conditions of the BSD License which accompanies this\r
9 distribution. The full text of the license may be found at\r
10 http://opensource.org/licenses/bsd-license.php\r
11\r
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT\r
13 WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14\r
15**/\r
16\r
17#ifndef _PLATFORM_BM_H_\r
18#define _PLATFORM_BM_H_\r
19\r
20#include <Library/BaseLib.h>\r
21#include <Library/BaseMemoryLib.h>\r
22#include <Library/DebugLib.h>\r
23#include <Library/DevicePathLib.h>\r
24#include <Library/MemoryAllocationLib.h>\r
25#include <Library/UefiBootServicesTableLib.h>\r
26#include <Library/UefiLib.h>\r
27#include <Library/UefiRuntimeServicesTableLib.h>\r
28\r
8d620322
LE
29/**\r
30 Download the kernel, the initial ramdisk, and the kernel command line from\r
31 QEMU's fw_cfg. Construct a minimal SimpleFileSystem that contains the two\r
32 image files, and load and start the kernel from it.\r
33\r
34 The kernel will be instructed via its command line to load the initrd from\r
35 the same Simple FileSystem.\r
36\r
37 @retval EFI_NOT_FOUND Kernel image was not found.\r
38 @retval EFI_OUT_OF_RESOURCES Memory allocation failed.\r
39 @retval EFI_PROTOCOL_ERROR Unterminated kernel command line.\r
40\r
41 @return Error codes from any of the underlying\r
42 functions. On success, the function doesn't\r
43 return.\r
44**/\r
45EFI_STATUS\r
46EFIAPI\r
47TryRunningQemuKernel (\r
48 VOID\r
49 );\r
50\r
51#endif // _PLATFORM_BM_H_\r