Vlv2DeviceRefCodePkg/ValleyView2Soc: Remove the unused code
[mirror_edk2.git] / Vlv2DeviceRefCodePkg / ValleyView2Soc / SouthCluster / Include / Library / PchPlatformLib.h
CommitLineData
3cbfba02
DW
1/**\r
2**/\r
3/**\r
4\r
5Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved\r
6\r
7 This program and the accompanying materials are licensed and made available under\r
8 the terms and conditions of the BSD License that accompanies this distribution.\r
9 The full text of the license may be found at\r
10 http://opensource.org/licenses/bsd-license.php.\r
11\r
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14\r
15\r
16 @file\r
17 PchPlatformLib.h\r
18\r
19 @brief\r
20 Header file for PchPlatform Lib.\r
21\r
22**/\r
23#ifndef _PCH_PLATFORM_LIB_H_\r
24#define _PCH_PLATFORM_LIB_H_\r
25\r
26///\r
27/// Timeout value used when Sending / Receiving messages.\r
28/// NOTE: this must cover the longest possible wait time\r
29/// between message being sent and response being available.\r
30/// e.g. Virtual function readiness might take some time.\r
31///\r
32VOID\r
33EFIAPI\r
34PchPmTimerStall (\r
35 IN UINTN Microseconds\r
36 )\r
37/**\r
38\r
39 @brief\r
40 Delay for at least the request number of microseconds.\r
41 This function would be called by runtime driver, please do not use any MMIO marco here.\r
42\r
43 @param[in] Microseconds Number of microseconds to delay.\r
44\r
45 @retval NONE\r
46\r
47**/\r
48;\r
49\r
50BOOLEAN\r
51EFIAPI\r
52PchIsSpiDescriptorMode (\r
53 IN UINTN SpiBase\r
54 )\r
55/**\r
56\r
57 @brief\r
58 Check whether SPI is in descriptor mode\r
59\r
60 @param[in] SpiBase The PCH Spi Base Address\r
61\r
62 @retval TRUE SPI is in descriptor mode\r
63 @retval FALSE SPI is not in descriptor mode\r
64\r
65**/\r
66;\r
67\r
68PCH_STEPPING\r
69EFIAPI\r
70PchStepping (\r
71 VOID\r
72 )\r
73/**\r
74\r
75 @brief\r
76 Return Pch stepping type\r
77\r
78 @param[in] None\r
79\r
80 @retval PCH_STEPPING Pch stepping type\r
81\r
82**/\r
83;\r
84\r
85BOOLEAN\r
86IsPchSupported (\r
87 VOID\r
88 )\r
89/**\r
90\r
91 @brief\r
92 Determine if PCH is supported\r
93\r
94 @param[in] None\r
95\r
96 @retval TRUE PCH is supported\r
97 @retval FALSE PCH is not supported\r
98\r
99**/\r
100;\r
101\r
102VOID\r
103EFIAPI\r
104PchAlternateAccessMode (\r
105 IN UINTN IlbBase,\r
106 IN BOOLEAN AmeCtrl\r
107 )\r
108/**\r
109\r
110 This function can be called to enable/disable Alternate Access Mode\r
111\r
112 @param[in] IlbBase The PCH ILB Base Address\r
113 @param[in] AmeCtrl If TRUE, enable Alternate Access Mode.\r
114 If FALSE, disable Alternate Access Mode.\r
115\r
116 @retval NONE\r
117\r
118**/\r
119;\r
120\r
121#endif\r