Initial commit
[kernel/linux-3.0.git] / drivers / media / isdbt / fc8150 / fc8150_spib.h
1 /*****************************************************************************
2  Copyright(c) 2012 FCI Inc. All Rights Reserved
3
4  File name : fc8150_spib.c
5
6  Description : API of 1-SEG baseband module
7
8 *******************************************************************************/
9
10 #ifndef __FC8150_SPIB__
11 #define __FC8150_SPIB__
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 extern int fc8150_spib_init(HANDLE hDevice, u16 param1, u16 param2);
18 extern int fc8150_spib_byteread(HANDLE hDevice, u16 addr, u8 *data);
19 extern int fc8150_spib_wordread(HANDLE hDevice, u16 addr, u16 *data);
20 extern int fc8150_spib_longread(HANDLE hDevice, u16 addr, u32 *data);
21 extern int fc8150_spib_bulkread(HANDLE hDevice, u16 addr, u8 *data, u16 length);
22 extern int fc8150_spib_bytewrite(HANDLE hDevice, u16 addr, u8 data);
23 extern int fc8150_spib_wordwrite(HANDLE hDevice, u16 addr, u16 data);
24 extern int fc8150_spib_longwrite(HANDLE hDevice, u16 addr, u32 data);
25 extern int fc8150_spib_bulkwrite(HANDLE hDevice, u16 addr, u8 *data, \
26         u16 length);
27 extern int fc8150_spib_dataread(HANDLE hDevice, u16 addr, u8 *data, \
28         u32 length);
29 extern int fc8150_spib_deinit(HANDLE hDevice);
30
31 #ifdef __cplusplus
32 }
33 #endif
34
35 #endif /* __FC8150_SPIB__*/