1 /***************************************************************************
5 * SiI9244 - MHL Transmitter Driver
9 * Copyright (C) (2011, Silicon Image Inc)
13 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation version 2.
21 * This program is distributed ¡°as is¡± WITHOUT ANY WARRANTY of any
23 * kind, whether express or implied; without even the implied warranty
25 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
31 *****************************************************************************/
33 /*===========================================================================
37 when who what, where, why
38 -------- --- ----------------------------------------------------------
39 2010/10/25 Daniel Lee(Philju) Initial version of file, SIMG Korea
40 ===========================================================================*/
41 #include "Common_Def.h"
43 #include <linux/types.h>
45 /*===========================================================================
47 ===========================================================================*/
50 void I2C_WriteByte(byte deviceID, byte offset, byte value);
51 byte I2C_ReadByte(byte deviceID, byte offset);
53 byte ReadByteTPI (byte Offset);
54 void WriteByteTPI (byte Offset, byte Data);
55 void WriteIndexedRegister (byte PageNum, byte Offset, byte Data);
56 void ReadModifyWriteIndexedRegister (byte PageNum, byte Offset, byte Mask, byte Data);
57 void ReadModifyWriteIndexedRegister (byte PageNum, byte Offset, byte Mask, byte Data);
58 void ReadModifyWriteTPI(byte Offset, byte Mask, byte Data);
59 void WriteByteCBUS(byte Offset, byte Data);
60 void ReadModifyWriteCBUS(byte Offset, byte Mask, byte Value) ;
61 byte ReadIndexedRegister (byte PageNum, byte Offset) ;
62 byte ReadByteCBUS (byte Offset) ;