+++ /dev/null
-/** @file
- I2c Bus byte read/write functions.
-
- Copyright (c) 2008, Intel Corporation
- All rights reserved. This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php
-
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/\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