]>
git.proxmox.com Git - mirror_edk2.git/blob - Vlv2DeviceRefCodePkg/ValleyView2Soc/SouthCluster/Include/Library/PchPlatformLib.h
5 Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved
7 This program and the accompanying materials are licensed and made available under
8 the terms and conditions of the BSD License that accompanies this distribution.
9 The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php.
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 Header file for PchPlatform Lib.
23 #ifndef _PCH_PLATFORM_LIB_H_
24 #define _PCH_PLATFORM_LIB_H_
27 /// Timeout value used when Sending / Receiving messages.
28 /// NOTE: this must cover the longest possible wait time
29 /// between message being sent and response being available.
30 /// e.g. Virtual function readiness might take some time.
40 Delay for at least the request number of microseconds.
41 This function would be called by runtime driver, please do not use any MMIO marco here.
43 @param[in] Microseconds Number of microseconds to delay.
52 PchIsSpiDescriptorMode (
58 Check whether SPI is in descriptor mode
60 @param[in] SpiBase The PCH Spi Base Address
62 @retval TRUE SPI is in descriptor mode
63 @retval FALSE SPI is not in descriptor mode
76 Return Pch stepping type
80 @retval PCH_STEPPING Pch stepping type
92 Determine if PCH is supported
96 @retval TRUE PCH is supported
97 @retval FALSE PCH is not supported
104 PchAlternateAccessMode (
110 This function can be called to enable/disable Alternate Access Mode
112 @param[in] IlbBase The PCH ILB Base Address
113 @param[in] AmeCtrl If TRUE, enable Alternate Access Mode.
114 If FALSE, disable Alternate Access Mode.