TianoCore EDK2 master
|
#include <PiDxe.h>
#include <IndustryStandard/Pci.h>
#include <IndustryStandard/Acpi.h>
#include <IndustryStandard/SmBios.h>
#include <IndustryStandard/PeImage.h>
#include <IndustryStandard/Virtio095.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/BaseLib.h>
#include <Library/PcdLib.h>
#include <Library/PciLib.h>
#include <Library/UefiBootManagerLib.h>
#include <Library/BootLogoLib.h>
#include <Library/HobLib.h>
#include <Library/UefiLib.h>
#include <Library/DxeServicesTableLib.h>
#include <Library/DevicePathLib.h>
#include <Library/IoLib.h>
#include <Library/NvVarsFileLib.h>
#include <Library/QemuFwCfgLib.h>
#include <Library/QemuFwCfgS3Lib.h>
#include <Library/QemuBootOrderLib.h>
#include <Protocol/Decompress.h>
#include <Protocol/PciIo.h>
#include <Protocol/FirmwareVolume2.h>
#include <Protocol/SimpleFileSystem.h>
#include <Protocol/PciRootBridgeIo.h>
#include <Protocol/S3SaveState.h>
#include <Protocol/DxeSmmReadyToLock.h>
#include <Protocol/LoadedImage.h>
#include <Guid/Acpi.h>
#include <Guid/SmBios.h>
#include <Guid/HobList.h>
#include <Guid/GlobalVariable.h>
#include <Guid/EventGroup.h>
#include <Guid/DebugAgentGuid.h>
#include <OvmfPlatforms.h>
Go to the source code of this file.
Data Structures | |
struct | PLATFORM_CONSOLE_CONNECT_ENTRY |
Macros | |
#define | PCI_DEVICE_PATH_NODE(Func, Dev) |
#define | PNPID_DEVICE_PATH_NODE(PnpId) |
#define | gPciIsaBridge PCI_DEVICE_PATH_NODE(0, 0x1f) |
#define | gP2PBridge PCI_DEVICE_PATH_NODE(0, 0x1e) |
#define | gPnpPs2Keyboard PNPID_DEVICE_PATH_NODE(0x0303) |
#define | gPnp16550ComPort PNPID_DEVICE_PATH_NODE(0x0501) |
#define | gUart |
#define | gVtUtf8Terminal |
#define | gEndEntire |
#define | PCI_CLASS_SCC 0x07 |
#define | PCI_SUBCLASS_SERIAL 0x00 |
#define | PCI_IF_16550 0x02 |
#define | IS_PCI_16550SERIAL(_p) IS_CLASS3 (_p, PCI_CLASS_SCC, PCI_SUBCLASS_SERIAL, PCI_IF_16550) |
#define | IS_PCI_ISA_PDECODE(_p) IS_CLASS3 (_p, PCI_CLASS_BRIDGE, PCI_CLASS_BRIDGE_ISA_PDECODE, 0) |
#define | CONSOLE_OUT BIT0 |
#define | CONSOLE_IN BIT1 |
#define | STD_ERROR BIT2 |
Functions | |
VOID | PlatformInitializeConsole (IN PLATFORM_CONSOLE_CONNECT_ENTRY *PlatformConsole) |
EFI_STATUS | TryRunningQemuKernel (VOID) |
Platform BDS customizations include file.
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Module Name:
BdsPlatform.h
Abstract:
Head file for BDS Platform specific code
Definition in file BdsPlatform.h.
#define CONSOLE_IN BIT1 |
Definition at line 164 of file BdsPlatform.h.
#define CONSOLE_OUT BIT0 |
Definition at line 163 of file BdsPlatform.h.
#define gEndEntire |
Definition at line 142 of file BdsPlatform.h.
#define gP2PBridge PCI_DEVICE_PATH_NODE(0, 0x1e) |
Definition at line 103 of file BdsPlatform.h.
#define gPciIsaBridge PCI_DEVICE_PATH_NODE(0, 0x1f) |
Definition at line 100 of file BdsPlatform.h.
#define gPnp16550ComPort PNPID_DEVICE_PATH_NODE(0x0501) |
Definition at line 109 of file BdsPlatform.h.
#define gPnpPs2Keyboard PNPID_DEVICE_PATH_NODE(0x0303) |
Definition at line 106 of file BdsPlatform.h.
#define gUart |
Definition at line 112 of file BdsPlatform.h.
#define gVtUtf8Terminal |
Definition at line 129 of file BdsPlatform.h.
#define IS_PCI_16550SERIAL | ( | _p | ) | IS_CLASS3 (_p, PCI_CLASS_SCC, PCI_SUBCLASS_SERIAL, PCI_IF_16550) |
Definition at line 155 of file BdsPlatform.h.
#define IS_PCI_ISA_PDECODE | ( | _p | ) | IS_CLASS3 (_p, PCI_CLASS_BRIDGE, PCI_CLASS_BRIDGE_ISA_PDECODE, 0) |
Definition at line 156 of file BdsPlatform.h.
#define PCI_CLASS_SCC 0x07 |
Definition at line 152 of file BdsPlatform.h.
#define PCI_DEVICE_PATH_NODE | ( | Func, | |
Dev | |||
) |
Definition at line 72 of file BdsPlatform.h.
#define PCI_IF_16550 0x02 |
Definition at line 154 of file BdsPlatform.h.
#define PCI_SUBCLASS_SERIAL 0x00 |
Definition at line 153 of file BdsPlatform.h.
#define PNPID_DEVICE_PATH_NODE | ( | PnpId | ) |
Definition at line 86 of file BdsPlatform.h.
#define STD_ERROR BIT2 |
Definition at line 165 of file BdsPlatform.h.
VOID PlatformInitializeConsole | ( | IN PLATFORM_CONSOLE_CONNECT_ENTRY * | PlatformConsole | ) |
Connect the predefined platform default console device.
Always try to find and enable PCI display devices.
[in] | PlatformConsole | Predefined platform default console device array. |
Definition at line 1272 of file BdsPlatform.c.
EFI_STATUS TryRunningQemuKernel | ( | VOID | ) |
Loads and boots UEFI Linux via the FwCfg interface.
EFI_NOT_FOUND | - The Linux kernel was not found |
Download the kernel, the initial ramdisk, and the kernel command line from QEMU's fw_cfg. Construct a minimal SimpleFileSystem that contains the two image files, and load and start the kernel from it.
The kernel will be instructed via its command line to load the initrd from the same Simple FileSystem.
EFI_NOT_FOUND | Kernel image was not found. |
EFI_OUT_OF_RESOURCES | Memory allocation failed. |
EFI_PROTOCOL_ERROR | Unterminated kernel command line. |
Definition at line 17 of file QemuKernel.c.
|
extern |
Definition at line 211 of file PlatformData.c.
|
extern |
Predefined platform default console device path
Definition at line 78 of file PlatformBmData.c.
|
extern |
Definition at line 48 of file PlatformData.c.
|
extern |
Definition at line 47 of file PlatformData.c.
|
extern |
Definition at line 50 of file PlatformData.c.
|
extern |
Definition at line 49 of file PlatformData.c.
|
extern |
Definition at line 197 of file PlatformData.c.