]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2DeviceRefCodePkg/ValleyView2Soc/SouthCluster/Include/Ppi/PchInit.h
Vlv2DeviceRefCodePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / Vlv2DeviceRefCodePkg / ValleyView2Soc / SouthCluster / Include / Ppi / PchInit.h
CommitLineData
3cbfba02
DW
1/**\r
2**/\r
3/**\r
4\r
5Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved\r
6\r
7ede8060 7 SPDX-License-Identifier: BSD-2-Clause-Patent\r
3cbfba02
DW
8\r
9\r
10\r
11 @file\r
12 PchInit.h\r
13\r
14 @brief\r
15 This file defines the PCH Init PPI\r
16\r
17**/\r
18#ifndef _PCH_INIT_H_\r
19#define _PCH_INIT_H_\r
20\r
21//\r
22// Define the PCH Init PPI GUID\r
23//\r
24\r
25\r
26#include <Protocol/PchPlatformPolicy.h>\r
27#define PCH_INIT_PPI_GUID \\r
28 { \\r
29 0x9ea894a, 0xbe0d, 0x4230, 0xa0, 0x3, 0xed, 0xc6, 0x93, 0xb4, 0x8e, 0x95 \\r
30 }\r
31extern EFI_GUID gPchInitPpiGuid;\r
32\r
33///\r
34/// Forward reference for ANSI C compatibility\r
35///\r
36typedef struct _PCH_INIT_PPI PCH_INIT_PPI;\r
37\r
38///\r
39/// Data structure definitions\r
40///\r
41typedef enum _CPU_STRAP_OPERATION {\r
42 GetCpuStrapSetData,\r
43 SetCpuStrapSetData,\r
44 LockCpuStrapSetData\r
45} CPU_STRAP_OPERATION;\r
46\r
47typedef\r
48EFI_STATUS\r
49(EFIAPI *PCH_USB_INIT) (\r
50 IN EFI_PEI_SERVICES **PeiServices\r
51 )\r
52/**\r
53\r
54 @brief\r
55 The function performing USB init in PEI phase. This could be used by USB recovery\r
56 or debug features that need USB initialization during PEI phase.\r
57 Note: Before executing this function, please be sure that PCH_INIT_PPI.Initialize\r
58 has been done and PchUsbPolicyPpi has been installed.\r
59\r
60 @param[in] PeiServices General purpose services available to every PEIM\r
61\r
62 @retval EFI_SUCCESS The function completed successfully\r
63 @retval Others All other error conditions encountered result in an ASSERT.\r
64\r
65**/\r
66;\r
67\r
68///\r
69/// PCH_INIT_PPI Structure Definition\r
70///\r
71struct _PCH_INIT_PPI {\r
72 PCH_USB_INIT UsbInit;\r
73};\r
74\r
75#endif\r