2 Header file for QNC S3 Support driver
4 This file includes package header files, library classes and protocol, PPI & GUID definitions.
6 Copyright (c) 2013-2015 Intel Corporation.
8 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #ifndef _QNC_S3_SUPPORT_H_
12 #define _QNC_S3_SUPPORT_H_
15 // External include files do NOT need to be explicitly specified in real EDKII
19 // Driver Consumed Protocol Prototypes
21 #include <Protocol/FirmwareVolume2.h>
22 #include <Library/UefiLib.h>
23 #include <Library/IoLib.h>
24 #include <Library/DebugLib.h>
25 #include <Library/DxeServicesLib.h>
26 #include <Library/S3BootScriptLib.h>
27 #include <Library/BaseMemoryLib.h>
28 #include <Library/PeCoffLib.h>
29 #include <Library/LockBoxLib.h>
30 #include <Library/UefiDriverEntryPoint.h>
31 #include <Library/UefiBootServicesTableLib.h>
32 #include <Library/UefiRuntimeServicesTableLib.h>
34 // Driver Produced Protocol Prototypes
36 #include <Protocol/LoadedImage.h>
37 #include <Protocol/QncS3Support.h>
39 #include <Library/CacheMaintenanceLib.h>
40 #include <Library/IntelQNCLib.h>
42 // Define the header of the context region.
47 EFI_DISPATCH_CONTEXT_UNION Contexts
[1];
48 } QNC_S3_PARAMETER_HEADER
;
50 // Function prototypes
54 QncS3SetDispatchItem (
55 IN EFI_QNC_S3_SUPPORT_PROTOCOL
*This
,
56 IN EFI_QNC_S3_DISPATCH_ITEM
*DispatchItem
,
57 OUT VOID
**S3DispatchEntryPoint
,
64 Set an item to be dispatched at S3 resume time. At the same time, the entry point
65 of the QNC S3 support image is returned to be used in subsequent boot script save
70 This - Pointer to the protocol instance.
71 DispatchItem - The item to be dispatched.
72 S3DispatchEntryPoint - The entry point of the QNC S3 support image.
76 EFI_STATUS - Successfully completed.
77 EFI_OUT_OF_RESOURCES - Out of resources.
84 IN EFI_SYSTEM_TABLE
*SystemTable
90 Load the QNC S3 Image into Efi Reserved Memory below 4G.
94 ImageEntryPoint the ImageEntryPoint after success loading
104 QncS3InitPcieRootPortDownstream (
105 IN EFI_HANDLE ImageHandle
,