1 /*++
2 
3 Copyright (c)  1999  - 2014, Intel Corporation. All rights reserved
4 
5 
6   This program and the accompanying materials are licensed and made available under
7 
8   the terms and conditions of the BSD License that accompanies this distribution.
9 
10   The full text of the license may be found at
11 
12   http://opensource.org/licenses/bsd-license.php.
13 
14 
15 
16   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
17 
18   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 
20 
21 
22 
23 
24 Module Name:
25 
26   I2CLib.c
27 
28 
29 
30 --*/
31 #ifdef ECP_FLAG
32 #include "EdkIIGlueDxe.h"
33 #else
34 #include <Library/DebugLib.h>
35 #include <Library/TimerLib.h>
36 #endif
37 #include <PchRegs/PchRegsPcu.h>
38 #include <PchRegs.h>
39 #include <PlatformBaseAddresses.h>
40 #include <PchRegs/PchRegsLpss.h>
41 #ifdef ECP_FLAG
ByteReadI2C(IN UINT8 BusNo,IN UINT8 SlaveAddress,IN UINT8 Offset,IN UINTN ReadBytes,OUT UINT8 * ReadBuffer)42 #include "I2CLib.h"
43 #else
44 #include <Library/I2CLib.h>
45 #endif
46 #include <Protocol/GlobalNvsArea.h>
47 #ifndef ECP_FLAG
48 #include <Library/UefiBootServicesTableLib.h>
49 #endif
50 
51 EFI_STATUS ByteReadI2C(
52   IN  UINT8 BusNo,
53   IN  UINT8 SlaveAddress,
54   IN  UINT8 Offset,
55   IN  UINTN ReadBytes,
56   OUT UINT8 *ReadBuffer
57   )
58 {
59   return EFI_SUCCESS;
60 }
61