- ProtocolNotifyEvent = EfiCreateProtocolNotifyEvent (\r
- &gEfiPciEnumerationCompleteProtocolGuid,\r
- TPL_CALLBACK,\r
- OnPciEnumerationComplete,\r
- NULL,\r
- &Registration\r
- );\r
- ASSERT (ProtocolNotifyEvent != NULL);\r
+ FspApiMask = PcdGet32 (PcdSkipFspApi);\r
+ if ((FspApiMask & FSP_API_NOTIFY_PHASE_AFTER_PCI_ENUMERATION) == 0) {\r
+ ProtocolNotifyEvent = EfiCreateProtocolNotifyEvent (\r
+ &gEfiPciEnumerationCompleteProtocolGuid,\r
+ TPL_CALLBACK,\r
+ OnPciEnumerationComplete,\r
+ NULL,\r
+ &Registration\r
+ );\r
+ ASSERT (ProtocolNotifyEvent != NULL);\r
+ }\r