audk/ArmVirtPkg/Library
Laszlo Ersek e3fe3c0ff9 ArmVirtPkg/PlatformBootManagerLib: follow PlatformBootManagerLib interfaces
"IntelFrameworkModulePkg/Include/Library/PlatformBdsLib.h" declares the
following interfaces:

- PlatformBdsInit
- PlatformBdsPolicyBehavior
- PlatformBdsBootFail
- PlatformBdsBootSuccess
- PlatformBdsLockNonUpdatableFlash
- LockKeyboards

From these, we've been using PlatformBdsInit() and
PlatformBdsPolicyBehavior().

"MdeModulePkg/Include/Library/PlatformBootManagerLib.h" declares the three
interfaces below:

- PlatformBootManagerBeforeConsole
- PlatformBootManagerAfterConsole
- PlatformBootManagerWaitCallback

Comparing the BdsEntry() functions between
- "IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c" and
- "MdeModulePkg/Universal/BdsDxe/BdsEntry.c",
we can establish the following mapping:

IntelFrameworkModulePkg              MdeModulePkg
  BdsEntry()                           BdsEntry()
    PlatformBdsInit()   <--------------> PlatformBootManagerBeforeConsole()
    dispatch Driver#### <--------------> dispatch Driver####
                                         connect consoles
    PlatformBdsPolicyBehavior() <------> PlatformBootManagerAfterConsole()

The difference in connecting the consoles will be addressed in a later
patch, now we just rename the functions according to the mapping above,
and copy the call site comments from MdeModulePkg's BdsEntry().

For the third interface, PlatformBootManagerWaitCallback(), add an empty
implementation (and copy the comment from the library class header).
Platform BDS can use this callback to draw a progress bar, for example.

This patch parallels OvmfPkg commit a7566234e9.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Ruiyu Ni <ruiyu.ni@Intel.com>
2016-05-06 10:04:49 +02:00
..
ArmQemuRelocatablePlatformLib ArmVirtPkg/RelocatableVirtHelper: use correct FindMemNode argument order 2016-04-13 15:35:01 +02:00
ArmVirtDxeHobLib Renamed ArmPlatformPkg/ArmVirtualizationPkg into ArmVirtPkg 2015-05-29 13:50:43 +00:00
ArmVirtGicArchLib ArmVirtPkg/ArmGicArchLib: move to FdtClient protocol 2016-04-11 18:12:21 +02:00
ArmVirtMemoryInitPeiLib ArmVirtPkg/ArmVirtMemoryInitPeiLib: handle memory above 4 GB on 32-bit ARM 2015-09-09 14:48:33 +00:00
ArmVirtPL031FdtClientLib ArmVirtPkg: implement ArmVirtPL031FdtClientLib 2016-04-13 16:55:24 +02:00
ArmVirtPlatformLib ArmVirtPkg: ArmVirtPlatformLib: find the lowest memory node 2015-12-04 16:17:12 +00:00
ArmVirtPsciResetSystemLib ArmVirtPkg/ArmVirtPsciResetSystemLib: move to FDT client protocol 2016-04-11 18:12:21 +02:00
ArmVirtTimerFdtClientLib ArmVirtPkg: implement ArmVirtTimerFdtClientLib 2016-04-11 18:12:22 +02:00
ArmXenRelocatablePlatformLib ArmVirtPkg/RelocatableVirtHelper: use correct FindMemNode argument order 2016-04-13 15:35:01 +02:00
BaseCachingPciExpressLib ArmVirtPkg/BaseCachingPciExpressLib: depend on PciPcdProducerLib 2016-04-12 16:57:20 +02:00
FdtPL011SerialPortLib ArmVirtPkg/EarlyFdtPL011: allow patchable PCD for initial DT base address 2016-02-05 16:58:31 +01:00
FdtPciPcdProducerLib ArmVirtPkg: implement FdtPciPcdProducerLib 2016-04-12 16:26:46 +02:00
NorFlashQemuLib Renamed ArmPlatformPkg/ArmVirtualizationPkg into ArmVirtPkg 2015-05-29 13:50:43 +00:00
PlatformBootManagerLib ArmVirtPkg/PlatformBootManagerLib: follow PlatformBootManagerLib interfaces 2016-05-06 10:04:49 +02:00
PlatformIntelBdsLib ArmVirtPkg: PlatformIntelBdsLib: signal gRootBridgesConnectedEventGroupGuid 2016-03-23 17:39:32 +01:00
PlatformPeiLib Renamed ArmPlatformPkg/ArmVirtualizationPkg into ArmVirtPkg 2015-05-29 13:50:43 +00:00
QemuFwCfgLib ArmVirtPkg/QemuFwCfgLib: move to FDT client protocol 2016-04-12 11:07:35 +02:00
XenRealTimeClockLib ArmVirtPkg: XenRealTimeClockLib: fixup typo in Linaro copyright notice 2015-06-08 22:00:32 +00:00