audk/IntelFsp2Pkg/Library
Chasel, Chiu a2e61f341d IntelFsp2Pkg: Support FSP Dispatch mode
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1241

Add support for both API (original mode) and DISPATCH mode:
1. Add FspMode field from reserved byte of Global
   Data Structure to tell which mode is selected by boot
   loader. If boot loader invoking FSP-M API this field
   will remain as default 0 (API mode), otherwise platform
   FSP should set this field to 1 (Dispatch mode) when
   initializing Global Data Structure.
2. gFspInApiModePpiGuid will be instaled when FSP running in API
   mode and modules only for API mode should have this in depex.
3. If it is DISPATCH mode, FSP will return to PEI dispatcher,
   not directly return to boot loader.
4. DISPATCH mode supports DXE NotifyPhase drivers so FSP
   will not wait for PEI NotifyPhase callbacks, instead it
   will install gFspReadyForNotifyPhasePpiGuid PPI for
   platform to complete late initialization before transferring
   to DXE.

Test: Verified FSP API and DISPATCH modes on 2 internal
      platforms and both boot successfully.

Cc: Jiewen Yao <Jiewen.yao@intel.com>
Cc: Desimone Nathaniel L <nathaniel.l.desimone@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chasel Chiu <chasel.chiu@intel.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
2018-10-19 15:01:00 +08:00
..
BaseCacheAsRamLibNull IntelFsp2Pkg: Update Section Name in INF files 2017-10-10 18:10:23 +08:00
BaseCacheLib IntelFsp2Pkg: Update Section Name in INF files 2017-10-10 18:10:23 +08:00
BaseDebugDeviceLibNull Add IntelFsp2Pkg and IntelFsp2WrapperPkg. 2016-05-13 13:00:53 +08:00
BaseFspCommonLib IntelFsp2Pkg: Support FSP Dispatch mode 2018-10-19 15:01:00 +08:00
BaseFspDebugLibSerialPort IntelFsp2Pkg BaseFspDebugLibSerialPort: Remove MASM/GAS files 2016-07-11 13:53:51 +08:00
BaseFspPlatformLib IntelFsp2Pkg: Support FSP Dispatch mode 2018-10-19 15:01:00 +08:00
BaseFspSwitchStackLib IntelFsp2Pkg/BaseFspSwitchStackLib: Remove unused PCDs 2018-09-28 10:54:52 +08:00
SecFspSecPlatformLibNull IntelFsp2Pkg: Clean up source files 2018-06-28 11:19:43 +08:00