+++ /dev/null
-/** @file\r
-This file defines the QNC S3 support Protocol.\r
-\r
-Copyright (c) 2013-2015 Intel Corporation.\r
-\r
-SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-\r
-**/\r
-#ifndef _QNC_S3_SUPPORT_PROTOCOL_H_\r
-#define _QNC_S3_SUPPORT_PROTOCOL_H_\r
-\r
-//\r
-// Extern the GUID for protocol users.\r
-//\r
-extern EFI_GUID gEfiQncS3SupportProtocolGuid;\r
-\r
-//\r
-// Forward reference for ANSI C compatibility\r
-//\r
-typedef struct _EFI_QNC_S3_SUPPORT_PROTOCOL EFI_QNC_S3_SUPPORT_PROTOCOL;\r
-\r
-typedef enum {\r
- QncS3ItemTypeInitPcieRootPortDownstream,\r
- QncS3ItemTypeMax\r
-} EFI_QNC_S3_DISPATCH_ITEM_TYPE;\r
-\r
-//\r
-// It's better not to use pointer here because the size of pointer in DXE is 8, but it's 4 in PEI\r
-// plug 4 to ParameterSize in PEIM if you really need it\r
-//\r
-typedef struct {\r
- UINT32 Reserved;\r
-} EFI_QNC_S3_PARAMETER_INIT_PCIE_ROOT_PORT_DOWNSTREAM;\r
-\r
-typedef union {\r
- EFI_QNC_S3_PARAMETER_INIT_PCIE_ROOT_PORT_DOWNSTREAM PcieRootPortData;\r
-} EFI_DISPATCH_CONTEXT_UNION;\r
-\r
-typedef struct {\r
- EFI_QNC_S3_DISPATCH_ITEM_TYPE Type;\r
- VOID *Parameter;\r
-} EFI_QNC_S3_DISPATCH_ITEM;\r
-\r
-//\r
-// Member functions\r
-//\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_QNC_S3_SUPPORT_SET_S3_DISPATCH_ITEM) (\r
- IN EFI_QNC_S3_SUPPORT_PROTOCOL * This,\r
- IN EFI_QNC_S3_DISPATCH_ITEM * DispatchItem,\r
- OUT VOID **S3DispatchEntryPoint,\r
- OUT VOID **Context\r
- );\r
-\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Set an item to be dispatched at S3 resume time. At the same time, the entry point\r
- of the QNC S3 support image is returned to be used in subsequent boot script save\r
- call\r
-\r
-Arguments:\r
-\r
- This - Pointer to the protocol instance.\r
- DispatchItem - The item to be dispatched.\r
- S3DispatchEntryPoint - The entry point of the QNC S3 support image.\r
-\r
-Returns:\r
-\r
- EFI_STATUS\r
-\r
---*/\r
-\r
-//\r
-// Protocol definition\r
-//\r
-struct _EFI_QNC_S3_SUPPORT_PROTOCOL {\r
- EFI_QNC_S3_SUPPORT_SET_S3_DISPATCH_ITEM SetDispatchItem;\r
-};\r
-\r
-#endif\r