]> git.proxmox.com Git - mirror_edk2.git/blame - QuarkSocPkg/QuarkNorthCluster/Include/Protocol/QncS3Support.h
QuarkSocPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / QuarkSocPkg / QuarkNorthCluster / Include / Protocol / QncS3Support.h
CommitLineData
9b6bbcdb
MK
1/** @file\r
2This file defines the QNC S3 support Protocol.\r
3\r
4Copyright (c) 2013-2015 Intel Corporation.\r
5\r
c9f231d0 6SPDX-License-Identifier: BSD-2-Clause-Patent\r
9b6bbcdb
MK
7\r
8\r
9**/\r
10#ifndef _QNC_S3_SUPPORT_PROTOCOL_H_\r
11#define _QNC_S3_SUPPORT_PROTOCOL_H_\r
12\r
13//\r
14// Extern the GUID for protocol users.\r
15//\r
16extern EFI_GUID gEfiQncS3SupportProtocolGuid;\r
17\r
18//\r
19// Forward reference for ANSI C compatibility\r
20//\r
21typedef struct _EFI_QNC_S3_SUPPORT_PROTOCOL EFI_QNC_S3_SUPPORT_PROTOCOL;\r
22\r
23typedef enum {\r
24 QncS3ItemTypeInitPcieRootPortDownstream,\r
25 QncS3ItemTypeMax\r
26} EFI_QNC_S3_DISPATCH_ITEM_TYPE;\r
27\r
28//\r
29// It's better not to use pointer here because the size of pointer in DXE is 8, but it's 4 in PEI\r
30// plug 4 to ParameterSize in PEIM if you really need it\r
31//\r
32typedef struct {\r
33 UINT32 Reserved;\r
34} EFI_QNC_S3_PARAMETER_INIT_PCIE_ROOT_PORT_DOWNSTREAM;\r
35\r
36typedef union {\r
37 EFI_QNC_S3_PARAMETER_INIT_PCIE_ROOT_PORT_DOWNSTREAM PcieRootPortData;\r
38} EFI_DISPATCH_CONTEXT_UNION;\r
39\r
40typedef struct {\r
41 EFI_QNC_S3_DISPATCH_ITEM_TYPE Type;\r
42 VOID *Parameter;\r
43} EFI_QNC_S3_DISPATCH_ITEM;\r
44\r
45//\r
46// Member functions\r
47//\r
48typedef\r
49EFI_STATUS\r
50(EFIAPI *EFI_QNC_S3_SUPPORT_SET_S3_DISPATCH_ITEM) (\r
51 IN EFI_QNC_S3_SUPPORT_PROTOCOL * This,\r
52 IN EFI_QNC_S3_DISPATCH_ITEM * DispatchItem,\r
53 OUT VOID **S3DispatchEntryPoint,\r
54 OUT VOID **Context\r
55 );\r
56\r
57/*++\r
58\r
59Routine Description:\r
60\r
61 Set an item to be dispatched at S3 resume time. At the same time, the entry point\r
62 of the QNC S3 support image is returned to be used in subsequent boot script save\r
63 call\r
64\r
65Arguments:\r
66\r
67 This - Pointer to the protocol instance.\r
68 DispatchItem - The item to be dispatched.\r
69 S3DispatchEntryPoint - The entry point of the QNC S3 support image.\r
70\r
71Returns:\r
72\r
73 EFI_STATUS\r
74\r
75--*/\r
76\r
77//\r
78// Protocol definition\r
79//\r
80struct _EFI_QNC_S3_SUPPORT_PROTOCOL {\r
81 EFI_QNC_S3_SUPPORT_SET_S3_DISPATCH_ITEM SetDispatchItem;\r
82};\r
83\r
84#endif\r