]>
git.proxmox.com Git - mirror_edk2.git/blob - OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430I2c.h
2 I2c Bus byte read/write functions.
4 Copyright (c) 2008 - 2009, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef _CIRRUS_LOGIC_I2C_H_
10 #define _CIRRUS_LOGIC_I2C_H_
12 #include <Protocol/PciIo.h>
15 Read one byte data on I2C Bus.
17 Read one byte data from the slave device connectet to I2C Bus.
18 If Data is NULL, then ASSERT().
20 @param PciIo The pointer to PCI_IO_PROTOCOL.
21 @param DeviceAddress Slave device's address.
22 @param RegisterAddress The register address on slave device.
23 @param Data The pointer to returned data if EFI_SUCCESS returned.
25 @retval EFI_DEVICE_ERROR
32 EFI_PCI_IO_PROTOCOL
*PciIo
,
34 UINT8 RegisterAddress
,
39 Write one byte data onto I2C Bus.
41 Write one byte data to the slave device connectet to I2C Bus.
42 If Data is NULL, then ASSERT().
44 @param PciIo The pointer to PCI_IO_PROTOCOL.
45 @param DeviceAddress Slave device's address.
46 @param RegisterAddress The register address on slave device.
47 @param Data The pointer to write data.
49 @retval EFI_DEVICE_ERROR
56 EFI_PCI_IO_PROTOCOL
*PciIo
,
58 UINT8 RegisterAddress
,