I2CLib.c 959 B

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