]>
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 | |
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 | |
29 | VOID\r | |
30 | PlatformBdsEnterFrontPage (\r | |
31 | IN UINT16 TimeoutDefault,\r | |
32 | IN BOOLEAN ConnectAllHappened\r | |
33 | );\r | |
34 | \r | |
35 | /**\r | |
36 | Download the kernel, the initial ramdisk, and the kernel command line from\r | |
37 | QEMU's fw_cfg. Construct a minimal SimpleFileSystem that contains the two\r | |
38 | image files, and load and start the kernel from it.\r | |
39 | \r | |
40 | The kernel will be instructed via its command line to load the initrd from\r | |
41 | the same Simple FileSystem.\r | |
42 | \r | |
43 | @retval EFI_NOT_FOUND Kernel image was not found.\r | |
44 | @retval EFI_OUT_OF_RESOURCES Memory allocation failed.\r | |
45 | @retval EFI_PROTOCOL_ERROR Unterminated kernel command line.\r | |
46 | \r | |
47 | @return Error codes from any of the underlying\r | |
48 | functions. On success, the function doesn't\r | |
49 | return.\r | |
50 | **/\r | |
51 | EFI_STATUS\r | |
52 | EFIAPI\r | |
53 | TryRunningQemuKernel (\r | |
54 | VOID\r | |
55 | );\r | |
56 | \r | |
57 | #endif // _PLATFORM_BM_H_\r |