diff options
Diffstat (limited to 'drivers/media/isdbt/fc8150/fci_tun.h')
-rw-r--r-- | drivers/media/isdbt/fc8150/fci_tun.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/drivers/media/isdbt/fc8150/fci_tun.h b/drivers/media/isdbt/fc8150/fci_tun.h new file mode 100644 index 0000000..f81c522 --- /dev/null +++ b/drivers/media/isdbt/fc8150/fci_tun.h @@ -0,0 +1,46 @@ +/***************************************************************************** + Copyright(c) 2012 FCI Inc. All Rights Reserved + + File name : fci_tun.h + + Description : tuner control driver +*******************************************************************************/ + +#ifndef __FCI_TUN_H__ +#define __FCI_TUN_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "fci_types.h" + +enum i2c_type { + FCI_I2C_TYPE = 0, + FCI_BYPASS_TYPE = 1 +}; + +enum band_type { + ISDBT_1_SEG_TYPE = 2 +}; + +enum product_type { + FC8150_TUNER = 8150, + FC8151_TUNER = 8151 +}; + +extern int tuner_ctrl_select(HANDLE hDevice, enum i2c_type type); +extern int tuner_ctrl_deselect(HANDLE hDevice); +extern int tuner_select(HANDLE hDevice, u32 product, u32 band); +extern int tuner_deselect(HANDLE hDevice); + +extern int tuner_i2c_read(HANDLE hDevice, u8 addr, u8 alen, u8 *data, u8 len); +extern int tuner_i2c_write(HANDLE hDevice, u8 addr, u8 alen, u8 *data, u8 len); +extern int tuner_set_freq(HANDLE hDevice, u32 freq); +extern int tuner_get_rssi(HANDLE hDevice, s32 *rssi); + +#ifdef __cplusplus +} +#endif + +#endif |