]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2DeviceRefCodePkg/ValleyView2Soc/SouthCluster/Include/Protocol/PchExtendedReset.h
Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to
[mirror_edk2.git] / Vlv2DeviceRefCodePkg / ValleyView2Soc / SouthCluster / Include / Protocol / PchExtendedReset.h
CommitLineData
3cbfba02
DW
1/*++\r
2\r
3Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved\r
4\r
5 This program and the accompanying materials are licensed and made available under\r
6 the terms and conditions of the BSD License that accompanies this distribution.\r
7 The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php.\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13\r
14\r
15Module Name:\r
16\r
17 PchExtendedReset.h\r
18\r
19Abstract:\r
20\r
21 PCH Extended Reset Protocol\r
22\r
23--*/\r
24#ifndef _EFI_PCH_EXTENDED_RESET_H_\r
25#define _EFI_PCH_EXTENDED_RESET_H_\r
26\r
27\r
28\r
29//\r
30#define EFI_PCH_EXTENDED_RESET_PROTOCOL_GUID \\r
31 { \\r
32 0xf0bbfca0, 0x684e, 0x48b3, 0xba, 0xe2, 0x6c, 0x84, 0xb8, 0x9e, 0x53, 0x39 \\r
33 }\r
34extern EFI_GUID gEfiPchExtendedResetProtocolGuid;\r
35\r
36//\r
37// Forward reference for ANSI C compatibility\r
38//\r
39typedef struct _EFI_PCH_EXTENDED_RESET_PROTOCOL EFI_PCH_EXTENDED_RESET_PROTOCOL;\r
40\r
41//\r
42// Related Definitions\r
43//\r
44//\r
45// PCH Extended Reset Types\r
46//\r
47typedef struct {\r
48 UINT8 PowerCycle : 1; // 0: Disabled*; 1: Enabled\r
49 UINT8 GlobalReset : 1; // 0: Disabled*; 1: Enabled\r
50 UINT8 SusPwrDnAck : 1; // 0: Do Nothing;\r
51 // 1: GPIO[30](SUS_PWR_DN_ACK) level is set low prior to Global Reset(for systems with an embedded controller)\r
52 UINT8 RsvdBits : 5; // Reserved fields for future expansion w/o protocol change\r
53} PCH_EXTENDED_RESET_TYPES;\r
54\r
55//\r
56// Member functions\r
57//\r
58typedef\r
59EFI_STATUS\r
60(EFIAPI *EFI_PCH_EXTENDED_RESET) (\r
61 IN EFI_PCH_EXTENDED_RESET_PROTOCOL * This,\r
62 IN PCH_EXTENDED_RESET_TYPES PchExtendedResetTypes\r
63 );\r
64\r
65/*++\r
66\r
67Routine Description:\r
68\r
69 Execute Pch Extended Reset from the host controller.\r
70\r
71Arguments:\r
72\r
73 This - Pointer to the EFI_PCH_EXTENDED_RESET_PROTOCOL instance.\r
74 PchExtendedResetTypes - Pch Extended Reset Types which includes PowerCycle, Globalreset.\r
75\r
76Returns:\r
77\r
78 Does not return if the reset takes place.\r
79 EFI_INVALID_PARAMETER - If ResetType is invalid.\r
80\r
81--*/\r
82\r
83//\r
84// Interface structure for the Pch Extended Reset Protocol\r
85//\r
86struct _EFI_PCH_EXTENDED_RESET_PROTOCOL {\r
87 EFI_PCH_EXTENDED_RESET Reset;\r
88};\r
89\r
90#endif\r