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