TianoCore EDK2 master
|
Go to the source code of this file.
Macros | |
#define | PCI_DEVICE_PATH_NODE(Func, Dev) |
#define | PNPID_DEVICE_PATH_NODE(PnpId) |
#define | gPnp16550ComPort PNPID_DEVICE_PATH_NODE(0x0501) |
#define | gPnpPs2Keyboard PNPID_DEVICE_PATH_NODE(0x0303) |
#define | gPcAnsiTerminal |
Functions | |
EFI_STATUS | PrepareLpcBridgeDevicePath (IN EFI_HANDLE DeviceHandle) |
EFI_STATUS | GetGopDevicePath (IN EFI_DEVICE_PATH_PROTOCOL *PciDevicePath, OUT EFI_DEVICE_PATH_PROTOCOL **GopDevicePath) |
EFI_STATUS | PreparePciVgaDevicePath (IN EFI_HANDLE DeviceHandle) |
EFI_STATUS EFIAPI | VisitAllInstancesOfProtocol (IN EFI_GUID *Id, IN SIMPLE_PROTOCOL_INSTANCE_CALLBACK CallBackFunction) |
EFI_STATUS EFIAPI | DetectAndPreparePlatformPciDevicePath (IN EFI_HANDLE Handle, IN VOID *Instance) |
EFI_STATUS EFIAPI | AddDevicePathForOneSerialIoInstance (IN EFI_HANDLE Handle, IN VOID *Instance) |
EFI_STATUS | DetectAndPreparePlatformPciDevicePaths (BOOLEAN DetectDisplayOnly) |
EFI_STATUS EFIAPI | ConnectOneRootBridge (IN EFI_HANDLE Handle, IN VOID *Instance) |
VOID EFIAPI | PlatformConsoleInit (VOID) |
Variables | |
ACPI_HID_DEVICE_PATH | gPnpPs2KeyboardDeviceNode = gPnpPs2Keyboard |
ACPI_HID_DEVICE_PATH | gPnp16550ComPortDeviceNode = gPnp16550ComPort |
VENDOR_DEVICE_PATH | gTerminalTypeDeviceNode = gPcAnsiTerminal |
BOOLEAN | mDetectDisplayOnly |
This file include all platform action which can be customized by IBV/OEM.
Copyright (c) 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PlatformConsole.c.
#define gPcAnsiTerminal |
Definition at line 47 of file PlatformConsole.c.
#define gPnp16550ComPort PNPID_DEVICE_PATH_NODE(0x0501) |
Definition at line 41 of file PlatformConsole.c.
#define gPnpPs2Keyboard PNPID_DEVICE_PATH_NODE(0x0303) |
Definition at line 44 of file PlatformConsole.c.
#define PCI_DEVICE_PATH_NODE | ( | Func, | |
Dev | |||
) |
Definition at line 13 of file PlatformConsole.c.
#define PNPID_DEVICE_PATH_NODE | ( | PnpId | ) |
Definition at line 27 of file PlatformConsole.c.
EFI_STATUS EFIAPI AddDevicePathForOneSerialIoInstance | ( | IN EFI_HANDLE | Handle, |
IN VOID * | Instance | ||
) |
For every Serial Io instance, add it to ConOut, ConIn, ErrOut.
[in] | Handle | - The Serial Io device handle |
[in] | Instance | - The instance of the SerialIo protocol |
EFI_STATUS | - Callback function failed. |
Definition at line 375 of file PlatformConsole.c.
EFI_STATUS EFIAPI ConnectOneRootBridge | ( | IN EFI_HANDLE | Handle, |
IN VOID * | Instance | ||
) |
The function will connect one root bridge
[in] | Handle | - The root bridge handle |
[in] | Instance | - The instance of the root bridge |
Definition at line 444 of file PlatformConsole.c.
EFI_STATUS EFIAPI DetectAndPreparePlatformPciDevicePath | ( | IN EFI_HANDLE | Handle, |
IN VOID * | Instance | ||
) |
Do platform specific PCI Device check and add them to ConOut, ConIn, ErrOut.
[in] | Handle | - Handle of PCI device instance |
[in] | Instance | - The instance of PCI device |
EFI_SUCCESS | - PCI Device check and Console variable update successfully. |
EFI_STATUS | - PCI Device check or Console variable update fail. |
Definition at line 296 of file PlatformConsole.c.
EFI_STATUS DetectAndPreparePlatformPciDevicePaths | ( | BOOLEAN | DetectDisplayOnly | ) |
Do platform specific PCI Device check and add them to ConOut, ConIn, ErrOut
[in] | DetectDisplayOnly | - Only detect display device if it's TRUE. |
EFI_SUCCESS | - PCI Device check and Console variable update successfully. |
EFI_STATUS | - PCI Device check or Console variable update fail. |
Definition at line 407 of file PlatformConsole.c.
EFI_STATUS GetGopDevicePath | ( | IN EFI_DEVICE_PATH_PROTOCOL * | PciDevicePath, |
OUT EFI_DEVICE_PATH_PROTOCOL ** | GopDevicePath | ||
) |
Return the GOP device path in the platform.
[in] | PciDevicePath | - Device path for the PCI graphics device. |
[out] | GopDevicePath | - Return the device path with GOP installed. |
EFI_SUCCESS | - PCI VGA is added to ConOut. |
EFI_INVALID_PARAMETER | - The device path parameter is invalid. |
EFI_STATUS | - No GOP device found. |
Definition at line 112 of file PlatformConsole.c.
VOID EFIAPI PlatformConsoleInit | ( | VOID | ) |
Platform console init. Include the platform firmware vendor, revision and so crc check.
Definition at line 466 of file PlatformConsole.c.
EFI_STATUS PrepareLpcBridgeDevicePath | ( | IN EFI_HANDLE | DeviceHandle | ) |
Add IsaKeyboard to ConIn.
[in] | DeviceHandle | Handle of the LPC Bridge device. |
EFI_SUCCESS | IsaKeyboard on the LPC bridge have been added to ConIn. |
Definition at line 76 of file PlatformConsole.c.
EFI_STATUS PreparePciVgaDevicePath | ( | IN EFI_HANDLE | DeviceHandle | ) |
Add PCI VGA to ConOut, ConIn, ErrOut.
[in] | DeviceHandle | - Handle of PciIo protocol. |
EFI_SUCCESS | - PCI VGA is added to ConOut. |
EFI_STATUS | - No PCI VGA device is added. |
Definition at line 202 of file PlatformConsole.c.
EFI_STATUS EFIAPI VisitAllInstancesOfProtocol | ( | IN EFI_GUID * | Id, |
IN SIMPLE_PROTOCOL_INSTANCE_CALLBACK | CallBackFunction | ||
) |
For every PCI instance execute a callback function.
[in] | Id | - The protocol GUID for callback |
[in] | CallBackFunction | - The callback function |
EFI_STATUS | - Callback function failed. |
Definition at line 239 of file PlatformConsole.c.
ACPI_HID_DEVICE_PATH gPnp16550ComPortDeviceNode = gPnp16550ComPort |
Definition at line 61 of file PlatformConsole.c.
ACPI_HID_DEVICE_PATH gPnpPs2KeyboardDeviceNode = gPnpPs2Keyboard |
Definition at line 60 of file PlatformConsole.c.
VENDOR_DEVICE_PATH gTerminalTypeDeviceNode = gPcAnsiTerminal |
Definition at line 62 of file PlatformConsole.c.
BOOLEAN mDetectDisplayOnly |
Definition at line 64 of file PlatformConsole.c.