2 This file defines the QNC S3 support Protocol.
4 Copyright (c) 2013-2015 Intel Corporation.
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef _QNC_S3_SUPPORT_PROTOCOL_H_
11 #define _QNC_S3_SUPPORT_PROTOCOL_H_
14 // Extern the GUID for protocol users.
16 extern EFI_GUID gEfiQncS3SupportProtocolGuid
;
19 // Forward reference for ANSI C compatibility
21 typedef struct _EFI_QNC_S3_SUPPORT_PROTOCOL EFI_QNC_S3_SUPPORT_PROTOCOL
;
24 QncS3ItemTypeInitPcieRootPortDownstream
,
26 } EFI_QNC_S3_DISPATCH_ITEM_TYPE
;
29 // It's better not to use pointer here because the size of pointer in DXE is 8, but it's 4 in PEI
30 // plug 4 to ParameterSize in PEIM if you really need it
34 } EFI_QNC_S3_PARAMETER_INIT_PCIE_ROOT_PORT_DOWNSTREAM
;
37 EFI_QNC_S3_PARAMETER_INIT_PCIE_ROOT_PORT_DOWNSTREAM PcieRootPortData
;
38 } EFI_DISPATCH_CONTEXT_UNION
;
41 EFI_QNC_S3_DISPATCH_ITEM_TYPE Type
;
43 } EFI_QNC_S3_DISPATCH_ITEM
;
50 (EFIAPI
*EFI_QNC_S3_SUPPORT_SET_S3_DISPATCH_ITEM
) (
51 IN EFI_QNC_S3_SUPPORT_PROTOCOL
* This
,
52 IN EFI_QNC_S3_DISPATCH_ITEM
* DispatchItem
,
53 OUT VOID
**S3DispatchEntryPoint
,
61 Set an item to be dispatched at S3 resume time. At the same time, the entry point
62 of the QNC S3 support image is returned to be used in subsequent boot script save
67 This - Pointer to the protocol instance.
68 DispatchItem - The item to be dispatched.
69 S3DispatchEntryPoint - The entry point of the QNC S3 support image.
78 // Protocol definition
80 struct _EFI_QNC_S3_SUPPORT_PROTOCOL
{
81 EFI_QNC_S3_SUPPORT_SET_S3_DISPATCH_ITEM SetDispatchItem
;