]>
git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/Library/I2CLib/I2CLib.c
3 Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
23 #include "EdkIIGlueDxe.h"
25 #include <Library/DebugLib.h>
26 #include <Library/TimerLib.h>
28 #include <PchRegs/PchRegsPcu.h>
30 #include <PlatformBaseAddresses.h>
31 #include <PchRegs/PchRegsLpss.h>
35 #include <Library/I2CLib.h>
37 #include <Protocol/GlobalNvsArea.h>
39 #include <Library/UefiBootServicesTableLib.h>
42 EFI_STATUS
ByteReadI2C(
44 IN UINT8 SlaveAddress
,