diff options
author | Marcin Wojtas <mw@semihalf.com> | 2018-11-10 07:01:24 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2018-11-20 13:46:57 +0800 |
commit | 49c995342543882b85e1278cb0098aa21fa52302 (patch) | |
tree | 9dcaac171e9d98ab0046c99146e81854d67d46c5 /MdeModulePkg/Include | |
parent | 115336ccaf0635c659996bc41a47914f9d837275 (diff) | |
download | edk2-49c995342543882b85e1278cb0098aa21fa52302.zip edk2-49c995342543882b85e1278cb0098aa21fa52302.tar.gz edk2-49c995342543882b85e1278cb0098aa21fa52302.tar.bz2 |
MdeModulePkg/SdMmcPciHcDxe: Add an optional parameter in NotifyPhase
In order to ensure bigger flexibility in the NotifyPhase
routine of the SdMmcOverride protocol, enable using an
optional phase-specific data. This will allow to exchange
more information between the protocol producer driver
and SdMmcPciHcDxe in the newly added callbacks.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Diffstat (limited to 'MdeModulePkg/Include')
-rw-r--r-- | MdeModulePkg/Include/Protocol/SdMmcOverride.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MdeModulePkg/Include/Protocol/SdMmcOverride.h b/MdeModulePkg/Include/Protocol/SdMmcOverride.h index 0766252..8a7669e 100644 --- a/MdeModulePkg/Include/Protocol/SdMmcOverride.h +++ b/MdeModulePkg/Include/Protocol/SdMmcOverride.h @@ -63,6 +63,7 @@ EFI_STATUS @param[in] PhaseType The type of operation and whether the
hook is invoked right before (pre) or
right after (post)
+ @param[in,out] PhaseData The pointer to a phase-specific data.
@retval EFI_SUCCESS The override function completed successfully.
@retval EFI_NOT_FOUND The specified controller or slot does not exist.
@@ -74,7 +75,8 @@ EFI_STATUS (EFIAPI * EDKII_SD_MMC_NOTIFY_PHASE) (
IN EFI_HANDLE ControllerHandle,
IN UINT8 Slot,
- IN EDKII_SD_MMC_PHASE_TYPE PhaseType
+ IN EDKII_SD_MMC_PHASE_TYPE PhaseType,
+ IN OUT VOID *PhaseData
);
struct _EDKII_SD_MMC_OVERRIDE {
|