MdeModulePkg/PciHostBridge: Move declaration of mIoMmu to header file
The change doesn't have functionality impact. It just renames the mIoMmuProtocol to mIoMmu and moves the declaration from PciRootBridgeIo.c to PciHostBridge.h. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Suggested-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
@@ -26,7 +26,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED CHAR16 *mPciResourceTypeStr[] = {
|
||||
L"I/O", L"Mem", L"PMem", L"Mem64", L"PMem64", L"Bus"
|
||||
};
|
||||
|
||||
EDKII_IOMMU_PROTOCOL *mIoMmuProtocol;
|
||||
EDKII_IOMMU_PROTOCOL *mIoMmu;
|
||||
EFI_EVENT mIoMmuEvent;
|
||||
VOID *mIoMmuRegistration;
|
||||
|
||||
@@ -363,7 +363,7 @@ IoMmuProtocolCallback (
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
|
||||
Status = gBS->LocateProtocol (&gEdkiiIoMmuProtocolGuid, NULL, (VOID **)&mIoMmuProtocol);
|
||||
Status = gBS->LocateProtocol (&gEdkiiIoMmuProtocolGuid, NULL, (VOID **)&mIoMmu);
|
||||
if (!EFI_ERROR(Status)) {
|
||||
gBS->CloseEvent (mIoMmuEvent);
|
||||
}
|
||||
|
Reference in New Issue
Block a user