]>
Commit | Line | Data |
---|---|---|
be8afe14 LE |
1 | /** @file\r |
2 | Head file for BDS Platform specific code\r | |
3 | \r | |
e4fbd18f | 4 | Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r |
be8afe14 | 5 | \r |
e4fbd18f LE |
6 | This program and the accompanying materials are licensed and made available\r |
7 | under the terms and conditions of the BSD License which accompanies this\r | |
8 | distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT\r | |
12 | WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
be8afe14 LE |
13 | \r |
14 | **/\r | |
15 | \r | |
16 | #ifndef _INTEL_BDS_PLATFORM_H_\r | |
17 | #define _INTEL_BDS_PLATFORM_H_\r | |
18 | \r | |
19 | #include <Protocol/DevicePathFromText.h>\r | |
20 | #include <Protocol/DevicePathToText.h>\r | |
21 | \r | |
e4fbd18f | 22 | #include <Library/BaseLib.h>\r |
be8afe14 LE |
23 | #include <Library/BaseMemoryLib.h>\r |
24 | #include <Library/BdsLib.h>\r | |
25 | #include <Library/DebugLib.h>\r | |
26 | #include <Library/DevicePathLib.h>\r | |
e4fbd18f | 27 | #include <Library/GenericBdsLib.h>\r |
be8afe14 | 28 | #include <Library/MemoryAllocationLib.h>\r |
be8afe14 | 29 | #include <Library/PcdLib.h>\r |
be8afe14 | 30 | #include <Library/PlatformBdsLib.h>\r |
e4fbd18f LE |
31 | #include <Library/UefiBootServicesTableLib.h>\r |
32 | #include <Library/UefiRuntimeServicesTableLib.h>\r | |
be8afe14 LE |
33 | \r |
34 | #include <Guid/GlobalVariable.h>\r | |
35 | \r | |
1b610ac2 LE |
36 | VOID\r |
37 | PlatformBdsEnterFrontPage (\r | |
38 | IN UINT16 TimeoutDefault,\r | |
39 | IN BOOLEAN ConnectAllHappened\r | |
40 | );\r | |
41 | \r | |
23d04b58 LE |
42 | /**\r |
43 | Download the kernel, the initial ramdisk, and the kernel command line from\r | |
44 | QEMU's fw_cfg. Construct a minimal SimpleFileSystem that contains the two\r | |
45 | image files, and load and start the kernel from it.\r | |
46 | \r | |
47 | The kernel will be instructed via its command line to load the initrd from\r | |
48 | the same Simple FileSystem.\r | |
49 | \r | |
50 | @retval EFI_NOT_FOUND Kernel image was not found.\r | |
51 | @retval EFI_OUT_OF_RESOURCES Memory allocation failed.\r | |
52 | @retval EFI_PROTOCOL_ERROR Unterminated kernel command line.\r | |
53 | \r | |
54 | @return Error codes from any of the underlying\r | |
55 | functions. On success, the function doesn't\r | |
56 | return.\r | |
57 | **/\r | |
58 | EFI_STATUS\r | |
59 | EFIAPI\r | |
60 | TryRunningQemuKernel (\r | |
61 | VOID\r | |
62 | );\r | |
63 | \r | |
be8afe14 | 64 | #endif // _INTEL_BDS_PLATFORM_H\r |