]>
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 | |
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 | |
45 | EFI_STATUS\r | |
46 | EFIAPI\r | |
47 | TryRunningQemuKernel (\r | |
48 | VOID\r | |
49 | );\r | |
50 | \r | |
1f73aef5 LE |
51 | /**\r |
52 | Use SystemTable Conout to stop video based Simple Text Out consoles from\r | |
53 | going to the video device. Put up LogoFile on every video device that is a\r | |
54 | console.\r | |
55 | \r | |
56 | @param[in] LogoFile File name of logo to display on the center of the\r | |
57 | screen.\r | |
58 | \r | |
59 | @retval EFI_SUCCESS ConsoleControl has been flipped to graphics and logo\r | |
60 | displayed.\r | |
61 | @retval EFI_UNSUPPORTED Logo not found\r | |
62 | **/\r | |
63 | EFI_STATUS\r | |
64 | EnableQuietBoot (\r | |
65 | IN EFI_GUID *LogoFile\r | |
66 | );\r | |
67 | \r | |
68 | /**\r | |
69 | Use SystemTable Conout to turn on video based Simple Text Out consoles. The\r | |
70 | Simple Text Out screens will now be synced up with all non video output\r | |
71 | devices\r | |
72 | \r | |
73 | @retval EFI_SUCCESS UGA devices are back in text mode and synced up.\r | |
74 | **/\r | |
75 | EFI_STATUS\r | |
76 | DisableQuietBoot (\r | |
77 | VOID\r | |
78 | );\r | |
79 | \r | |
8d620322 | 80 | #endif // _PLATFORM_BM_H_\r |