2 PciHostBridge driver module, part of QNC module.
4 Provides the basic interfaces to abstract a PCI Host Bridge Resource Allocation.
6 Copyright (c) 2013-2015 Intel Corporation.
8 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #include "CommonHeader.h"
14 UINT32 mS3ParameterRootPortDownstream
= 0;
15 EFI_QNC_S3_DISPATCH_ITEM mS3DispatchItem
= {
16 QncS3ItemTypeInitPcieRootPortDownstream
,
17 &mS3ParameterRootPortDownstream
27 Perform Initialization of the Downstream Root Ports
33 EFI_SUCCESS The function completed successfully
38 EFI_QNC_S3_SUPPORT_PROTOCOL
*QncS3Support
;
40 VOID
*S3DispatchEntryPoint
;
42 Status
= PciExpressInit ();
43 ASSERT_EFI_ERROR (Status
);
46 // Get the QNC S3 Support Protocol
48 Status
= gBS
->LocateProtocol (
49 &gEfiQncS3SupportProtocolGuid
,
51 (VOID
**) &QncS3Support
53 ASSERT_EFI_ERROR (Status
);
54 if (EFI_ERROR (Status
)) {
59 // Get the QNC S3 Support Protocol
61 Status
= QncS3Support
->SetDispatchItem (
64 &S3DispatchEntryPoint
,
67 ASSERT_EFI_ERROR (Status
);
70 // Save the script dispatch item in the Boot Script
72 Status
= S3BootScriptSaveDispatch2 (S3DispatchEntryPoint
, Context
);
73 ASSERT_EFI_ERROR (Status
);