+++ /dev/null
-/** @file\r
- I2c Bus byte read/write functions.\r
-\r
- Copyright (c) 2008 - 2009, Intel Corporation. All rights reserved.<BR>\r
- SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-**/\r
-\r
-#ifndef _CIRRUS_LOGIC_I2C_H_\r
-#define _CIRRUS_LOGIC_I2C_H_\r
-\r
-#include <Protocol/PciIo.h>\r
-\r
-/**\r
- Read one byte data on I2C Bus.\r
-\r
- Read one byte data from the slave device connectet to I2C Bus.\r
- If Data is NULL, then ASSERT().\r
-\r
- @param PciIo The pointer to PCI_IO_PROTOCOL.\r
- @param DeviceAddress Slave device's address.\r
- @param RegisterAddress The register address on slave device.\r
- @param Data The pointer to returned data if EFI_SUCCESS returned.\r
-\r
- @retval EFI_DEVICE_ERROR\r
- @retval EFI_SUCCESS\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-I2cReadByte (\r
- EFI_PCI_IO_PROTOCOL *PciIo,\r
- UINT8 DeviceAddress,\r
- UINT8 RegisterAddress,\r
- UINT8 *Data\r
- );\r
-\r
-/**\r
- Write one byte data onto I2C Bus.\r
-\r
- Write one byte data to the slave device connectet to I2C Bus.\r
- If Data is NULL, then ASSERT().\r
-\r
- @param PciIo The pointer to PCI_IO_PROTOCOL.\r
- @param DeviceAddress Slave device's address.\r
- @param RegisterAddress The register address on slave device.\r
- @param Data The pointer to write data.\r
-\r
- @retval EFI_DEVICE_ERROR\r
- @retval EFI_SUCCESS\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-I2cWriteByte (\r
- EFI_PCI_IO_PROTOCOL *PciIo,\r
- UINT8 DeviceAddress,\r
- UINT8 RegisterAddress,\r
- UINT8 *Data\r
- );\r
-\r
-#endif\r