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 This program and the accompanying materials
9 are licensed and made available under the terms and conditions of the BSD License
10 which accompanies this distribution. The full text of the license may be found at
11 http://opensource.org/licenses/bsd-license.php
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #include "CommonHeader.h"
20 UINT32 mS3ParameterRootPortDownstream
= 0;
21 EFI_QNC_S3_DISPATCH_ITEM mS3DispatchItem
= {
22 QncS3ItemTypeInitPcieRootPortDownstream
,
23 &mS3ParameterRootPortDownstream
33 Perform Initialization of the Downstream Root Ports
39 EFI_SUCCESS The function completed successfully
44 EFI_QNC_S3_SUPPORT_PROTOCOL
*QncS3Support
;
46 VOID
*S3DispatchEntryPoint
;
48 Status
= PciExpressInit ();
49 ASSERT_EFI_ERROR (Status
);
52 // Get the QNC S3 Support Protocol
54 Status
= gBS
->LocateProtocol (
55 &gEfiQncS3SupportProtocolGuid
,
57 (VOID
**) &QncS3Support
59 ASSERT_EFI_ERROR (Status
);
60 if (EFI_ERROR (Status
)) {
65 // Get the QNC S3 Support Protocol
67 Status
= QncS3Support
->SetDispatchItem (
70 &S3DispatchEntryPoint
,
73 ASSERT_EFI_ERROR (Status
);
76 // Save the script dispatch item in the Boot Script
78 Status
= S3BootScriptSaveDispatch2 (S3DispatchEntryPoint
, Context
);
79 ASSERT_EFI_ERROR (Status
);