]>
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 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _CIRRUS_LOGIC_I2C_H_
16 #define _CIRRUS_LOGIC_I2C_H_
18 #include <Protocol/PciIo.h>
21 Read one byte data on I2C Bus.
23 Read one byte data from the slave device connectet to I2C Bus.
24 If Data is NULL, then ASSERT().
26 @param PciIo The pointer to PCI_IO_PROTOCOL.
27 @param DeviceAddress Slave device's address.
28 @param RegisterAddress The register address on slave device.
29 @param Data The pointer to returned data if EFI_SUCCESS returned.
31 @retval EFI_DEVICE_ERROR
38 EFI_PCI_IO_PROTOCOL
*PciIo
,
40 UINT8 RegisterAddress
,
45 Write one byte data onto I2C Bus.
47 Write one byte data to the slave device connectet to I2C Bus.
48 If Data is NULL, then ASSERT().
50 @param PciIo The pointer to PCI_IO_PROTOCOL.
51 @param DeviceAddress Slave device's address.
52 @param RegisterAddress The register address on slave device.
53 @param Data The pointer to write data.
55 @retval EFI_DEVICE_ERROR
62 EFI_PCI_IO_PROTOCOL
*PciIo
,
64 UINT8 RegisterAddress
,