upload tizen1.0 source
[kernel/linux-2.6.36.git] / drivers / media / video / s5p-tv / mhl_v1 / SiI9234_I2C_master.h
1 /***************************************************************************
2
3
4
5 *   SiI9244 - MHL Transmitter Driver
6
7 *
8
9 * Copyright (C) (2011, Silicon Image Inc)
10
11 *
12
13 * This program is free software; you can redistribute it and/or modify
14
15 * it under the terms of the GNU General Public License as published by
16
17 * the Free Software Foundation version 2.
18
19 *
20
21 * This program is distributed ¡°as is¡± WITHOUT ANY WARRANTY of any
22
23 * kind, whether express or implied; without even the implied warranty
24
25 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26
27 * GNU General Public License for more details.
28
29 *
30
31 *****************************************************************************/
32
33 /*===========================================================================
34
35                       EDIT HISTORY FOR FILE
36
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"
42
43 #include <linux/types.h>
44
45 /*===========================================================================
46
47 ===========================================================================*/
48
49
50 void I2C_WriteByte(byte deviceID, byte offset, byte value);
51 byte I2C_ReadByte(byte deviceID, byte offset);
52
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) ;
63
64
65
66