MdeModulePkg: introduce helper library to register non-discoverable devices

Non-discoverable devices need to be registered explicitly by the platform.
Introduce a helper library that takes care of this.

This implementation currently only supports registering devices that are
covered by one or more MMIO resources. The underlying protocol allows for
more flexibility than that, but this is currently sufficient for the use
cases that we know about.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Tested-by: Marcin Wojtas <mw@semihalf.com>
This commit is contained in:
Ard Biesheuvel
2016-10-31 14:58:18 +00:00
parent 9598cdc292
commit 1652dc2158
5 changed files with 318 additions and 0 deletions

View File

@@ -161,6 +161,10 @@
#
FmpAuthenticationLib|Include/Library/FmpAuthenticationLib.h
## @libraryclass Provides a service to register non-discoverable device
##
NonDiscoverableDeviceRegistrationLib|Include/Library/NonDiscoverableDeviceRegistrationLib.h
[Guids]
## MdeModule package token space guid
# Include/Guid/MdeModulePkgTokenSpace.h