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