Ruiyu Ni 56dee83a55 MdeModulePkg/ConPlatform: Support GOP created as PCI's grandson
The original logic assumes GOP hande is son of PCI handle but it
is not always true.
Below wordings are from UEFI Spec:
If a graphics device supports multiple frame buffers, then
handles for the frame buffers must be created first, and then the
handles for the video output devices can be created as children of
the frame buffer handles.

So the GOP handle could be grandson of the PCI handle.

EfiBootManagerGetGopDevicePath(VideoController) is used to fix
this bug.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
2017-03-17 12:25:14 +08:00

99 lines
3.8 KiB
INI

## @file
# Platform console driver manages console devices.
#
# Console Platfrom DXE Driver that specifies whether device can be used as console
# input/output device or error output device and update global variables accordingly.
#
# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
#
##
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = ConPlatformDxe
MODULE_UNI_FILE = ConPlatformDxe.uni
FILE_GUID = 51ccf399-4fdf-4e55-a45b-e123f84d456a
MODULE_TYPE = UEFI_DRIVER
VERSION_STRING = 1.0
ENTRY_POINT = InitializeConPlatform
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
#
# DRIVER_BINDING = gConPlatformTextInDriverBinding
# COMPONENT_NAME = gConPlatformComponentName
# COMPONENT_NAME2 = gConPlatformComponentName2
# DRIVER_BINDING = gConPlatformTextOutDriverBinding
# COMPONENT_NAME = gConPlatformComponentName
# COMPONENT_NAME2 = gConPlatformComponentName2
#
[Sources]
ComponentName.c
ConPlatform.h
ConPlatform.c
[Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
[LibraryClasses]
MemoryAllocationLib
DevicePathLib
UefiRuntimeServicesTableLib
UefiBootServicesTableLib
BaseMemoryLib
UefiLib
UefiDriverEntryPoint
DebugLib
UefiBootManagerLib
[Guids]
#
# This is the VendorGuid of all architecturally defined variables in UEFI spec.
#
## SOMETIMES_CONSUMES ## Variable:L"ConIn"
## SOMETIMES_CONSUMES ## Variable:L"ConOut"
## SOMETIMES_CONSUMES ## Variable:L"ErrOut"
## SOMETIMES_PRODUCES ## Variable:L"ConInDev"
## SOMETIMES_PRODUCES ## Variable:L"ConOutDev"
## SOMETIMES_PRODUCES ## Variable:L"ErrOutDev"
gEfiGlobalVariableGuid
#
# This GUID is used to specify the device is the standard error device.
# If the device is a standard error device, this GUID as the protocol GUID will be installed
# onto this device handle.
#
gEfiStandardErrorDeviceGuid ## SOMETIMES_PRODUCES ## UNDEFINED # protocol GUID installed on device handle
#
# This GUID is used to specify the device is the console output device.
# If the device is a console output device, this GUID as the protocol GUID will be installed
# onto this device handle.
#
gEfiConsoleOutDeviceGuid ## SOMETIMES_PRODUCES ## UNDEFINED # protocol GUID installed on device handle
#
# This GUID is used to specify the device is the console input device.
# If the device is a console input device, this GUID as the protocol GUID will be installed
# onto this device handle.
#
gEfiConsoleInDeviceGuid ## SOMETIMES_PRODUCES ## UNDEFINED # protocol GUID installed on device handle
[Protocols]
gEfiDevicePathProtocolGuid ## TO_START
gEfiSimpleTextInProtocolGuid ## TO_START
gEfiSimpleTextOutProtocolGuid ## TO_START
gEfiPciIoProtocolGuid ## SOMETIMES_CONSUMES
gEfiGraphicsOutputProtocolGuid ## SOMETIMES_CONSUMES
[UserExtensions.TianoCore."ExtraFiles"]
ConPlatformDxeExtra.uni