]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/Library/I2CLib/I2CLib.c
Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to
[mirror_edk2.git] / Vlv2TbltDevicePkg / Library / I2CLib / I2CLib.c
1 /*++
2
3 Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
4
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.
9
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.
12
13
14
15 Module Name:
16
17 I2CLib.c
18
19
20
21 --*/
22 #ifdef ECP_FLAG
23 #include "EdkIIGlueDxe.h"
24 #else
25 #include <Library/DebugLib.h>
26 #include <Library/TimerLib.h>
27 #endif
28 #include <PchRegs/PchRegsPcu.h>
29 #include <PchRegs.h>
30 #include <PlatformBaseAddresses.h>
31 #include <PchRegs/PchRegsLpss.h>
32 #ifdef ECP_FLAG
33 #include "I2CLib.h"
34 #else
35 #include <Library/I2CLib.h>
36 #endif
37 #include <Protocol/GlobalNvsArea.h>
38 #ifndef ECP_FLAG
39 #include <Library/UefiBootServicesTableLib.h>
40 #endif
41
42 EFI_STATUS ByteReadI2C(
43 IN UINT8 BusNo,
44 IN UINT8 SlaveAddress,
45 IN UINT8 Offset,
46 IN UINTN ReadBytes,
47 OUT UINT8 *ReadBuffer
48 )
49 {
50 return EFI_SUCCESS;
51 }