Implementation of driver entry point and driver binding protocol.\r
\r
Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) Microsoft Corporation.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
// the IO BAR. Save the index of the BAR into the adapter info structure.\r
// for regular 32bit BARs, 0 is memory mapped, 1 is io mapped\r
//\r
- Snp->MemoryBarIndex = 0;\r
- Snp->IoBarIndex = 1;\r
+ Snp->MemoryBarIndex = PCI_MAX_BAR;\r
+ Snp->IoBarIndex = PCI_MAX_BAR;\r
FoundMemoryBar = FALSE;\r
FoundIoBar = FALSE;\r
for (BarIndex = 0; BarIndex < PCI_MAX_BAR; BarIndex++) {\r
//\r
Status = gBS->CreateEventEx (\r
EVT_NOTIFY_SIGNAL,\r
- TPL_NOTIFY,\r
+ TPL_CALLBACK,\r
SnpNotifyExitBootServices,\r
Snp,\r
&gEfiEventExitBootServicesGuid,\r