2010-02-24 01:21:16 +01:00
## @file
2009-04-24 09:02:52 +02:00
# This driver produces UEFI PLATFORM_DRIVER_OVERRIDE_PROTOCOL if this protocol doesn't exist.
# It doesn't install again if this protocol exists.
# It only implements one interface GetDriver of PLATFORM_DRIVER_OVERRIDE_PROTOCOL protocol
# and doesn't support other two interfaces GetDriverPath, DriverLoaded.
2008-12-25 10:13:53 +01:00
#
2009-04-24 09:02:52 +02:00
# This driver also offers an UI interface in device manager to let user configure
# platform override protocol to override the default algorithm for matching
# drivers to controllers.
#
# The main flow:
# 1. It dynamicly locate all controller device path.
# 2. It dynamicly locate all drivers which support binding protocol.
# 3. It export and dynamicly update two menu to let user select the
# mapping between drivers to controllers.
# 4. It save all the mapping info in NV variables for the following boot,
# which will be consumed by GetDriver API of the produced the platform override protocol.
#
2014-03-17 08:24:15 +01:00
# Caution: This module is a sample implementation for the test purpose.
#
# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
2008-04-09 04:09:51 +02:00
#
2010-04-24 11:33:45 +02:00
# This program and the accompanying materials
2008-04-09 04:09:51 +02:00
# 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.
#
2010-02-24 01:21:16 +01:00
##
2008-04-09 04:09:51 +02:00
[Defines]
INF_VERSION = 0x00010005
2009-04-24 09:02:52 +02:00
BASE_NAME = PlatDriOverrideDxe
2014-08-28 08:34:06 +02:00
MODULE_UNI_FILE = PlatDriOverrideDxe.uni
2008-04-09 04:09:51 +02:00
FILE_GUID = 35034CE2-A6E5-4fb4-BABE-A0156E9B2549
2009-04-24 09:02:52 +02:00
MODULE_TYPE = DXE_DRIVER
2008-04-09 04:09:51 +02:00
VERSION_STRING = 1.0
2009-04-24 09:02:52 +02:00
ENTRY_POINT = PlatDriOverrideDxeInit
UNLOAD_IMAGE = PlatDriOverrideDxeUnload
2008-04-09 04:09:51 +02:00
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
#
2010-02-24 01:21:16 +01:00
[Sources]
2009-04-24 09:02:52 +02:00
VfrStrings.uni
Vfr.vfr
PlatDriOverrideDxe.c
PlatOverMngr.h
PlatDriOverrideLib.c
InternalPlatDriOverrideDxe.h
2008-04-09 04:09:51 +02:00
[Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
[LibraryClasses]
BaseLib
DebugLib
2009-04-24 09:02:52 +02:00
UefiLib
UefiDriverEntryPoint
2008-12-25 10:13:53 +01:00
UefiBootServicesTableLib
2009-04-24 09:02:52 +02:00
HiiLib
BaseMemoryLib
MemoryAllocationLib
DevicePathLib
DxeServicesTableLib
UefiRuntimeServicesTableLib
PrintLib
[Guids]
2014-08-28 08:34:06 +02:00
#
# This GUID C Name is not required for build since it is from UefiLib and not directly used by this module source.
# gEfiGlobalVariableGuid ## SOMETIMES_CONSUMES ## Variable:L"PlatformLang" # this variable specifies the platform supported language string (RFC 4646 format)
# gEfiGlobalVariableGuid ## SOMETIMES_CONSUMES ## Variable:L"Lang" # this variable specifies the platform supported language string (ISO 639-2 format)
#
2009-04-24 09:02:52 +02:00
# There could be more than one variables, from PlatDriOver, PlatDriOver1, PlatDriOver2,...
2014-08-28 08:34:06 +02:00
# gEfiCallerIdGuid ## Private ## Variable:L"PlatDriOver"
2009-04-24 09:02:52 +02:00
#
2014-08-28 08:34:06 +02:00
gEfiIfrTianoGuid ## SOMETIMES_PRODUCES ## UNDEFINED
## SOMETIMES_CONSUMES ## GUID # HiiIsConfigHdrMatch Data
## SOMETIMES_PRODUCES ## GUID # HiiGetBrowserData Data
## SOMETIMES_CONSUMES ## GUID # HiiSetBrowserData Data
## SOMETIMES_PRODUCES ## GUID # HiiConstructConfigHdr Data
## CONSUMES ## HII
gPlatformOverridesManagerGuid
2008-04-09 04:09:51 +02:00
2008-12-25 10:13:53 +01:00
[Protocols]
2014-08-28 08:34:06 +02:00
gEfiComponentName2ProtocolGuid ## SOMETIMES_CONSUMES # Get Driver Name if ComponentName2Protocol exists
gEfiComponentNameProtocolGuid ## SOMETIMES_CONSUMES # Get Driver Name if ComponentNameProtocol exists and ComponentName2Protocol doesn't exist
gEfiFirmwareVolume2ProtocolGuid ## SOMETIMES_CONSUMES # Get Driver Name from EFI UI section if ComponentName2Protocol and ComponentNameProtocol don't exist
gEfiPciIoProtocolGuid ## SOMETIMES_CONSUMES # Find the PCI device if PciIo protocol is installed
gEfiBusSpecificDriverOverrideProtocolGuid ## SOMETIMES_CONSUMES # Check whether the PCI device contains one or more efi drivers in its option rom by this protocol
2009-04-24 09:02:52 +02:00
2014-08-28 08:34:06 +02:00
gEfiDriverBindingProtocolGuid ## SOMETIMES_CONSUMES
gEfiLoadedImageProtocolGuid ## SOMETIMES_CONSUMES
gEfiLoadedImageDevicePathProtocolGuid ## SOMETIMES_CONSUMES # Show the drivers in the second page that support DriverBindingProtocol, LoadedImageProtocol and LoadedImageDevicePathProtocol
2009-04-24 09:02:52 +02:00
2014-08-28 08:34:06 +02:00
gEfiFormBrowser2ProtocolGuid ## CONSUMES
gEfiHiiConfigRoutingProtocolGuid ## CONSUMES
gEfiHiiConfigAccessProtocolGuid ## PRODUCES
gEfiPlatformDriverOverrideProtocolGuid ## PRODUCES
## PRODUCES
## SOMETIMES_CONSUMES # Show the controller device in the first page that support DevicePathProtocol
gEfiDevicePathProtocolGuid
2009-08-10 09:34:02 +02:00
[Depex]
2014-08-28 08:34:06 +02:00
gEfiFormBrowser2ProtocolGuid AND gEfiHiiConfigRoutingProtocolGuid
[UserExtensions.TianoCore."ExtraFiles"]
PlatDriOverrideDxeExtra.uni