]>
Commit | Line | Data |
---|---|---|
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 | |
9792fb0e | 7 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
8d620322 LE |
8 | \r |
9 | **/\r | |
10 | \r | |
11 | #ifndef _PLATFORM_BM_H_\r | |
12 | #define _PLATFORM_BM_H_\r | |
13 | \r | |
14 | #include <Library/BaseLib.h>\r | |
15 | #include <Library/BaseMemoryLib.h>\r | |
16 | #include <Library/DebugLib.h>\r | |
17 | #include <Library/DevicePathLib.h>\r | |
18 | #include <Library/MemoryAllocationLib.h>\r | |
19 | #include <Library/UefiBootServicesTableLib.h>\r | |
20 | #include <Library/UefiLib.h>\r | |
21 | #include <Library/UefiRuntimeServicesTableLib.h>\r | |
22 | \r | |
8d620322 LE |
23 | /**\r |
24 | Download the kernel, the initial ramdisk, and the kernel command line from\r | |
25 | QEMU's fw_cfg. Construct a minimal SimpleFileSystem that contains the two\r | |
26 | image files, and load and start the kernel from it.\r | |
27 | \r | |
28 | The kernel will be instructed via its command line to load the initrd from\r | |
29 | the same Simple FileSystem.\r | |
30 | \r | |
31 | @retval EFI_NOT_FOUND Kernel image was not found.\r | |
32 | @retval EFI_OUT_OF_RESOURCES Memory allocation failed.\r | |
33 | @retval EFI_PROTOCOL_ERROR Unterminated kernel command line.\r | |
34 | \r | |
35 | @return Error codes from any of the underlying\r | |
36 | functions. On success, the function doesn't\r | |
37 | return.\r | |
38 | **/\r | |
39 | EFI_STATUS\r | |
40 | EFIAPI\r | |
41 | TryRunningQemuKernel (\r | |
42 | VOID\r | |
43 | );\r | |
44 | \r | |
45 | #endif // _PLATFORM_BM_H_\r |