fci_tun.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*****************************************************************************
  2. Copyright(c) 2013 FCI Inc. All Rights Reserved
  3. File name : fci_tun.h
  4. Description : header of tuner control driver
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. History :
  17. ----------------------------------------------------------------------
  18. *******************************************************************************/
  19. #ifndef __FCI_TUN_H__
  20. #define __FCI_TUN_H__
  21. #define CENTER_SUBCH_NUM 0x16
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. enum I2C_TYPE {
  26. FCI_HPI_TYPE = 3
  27. };
  28. enum PRODUCT_TYPE {
  29. FC8300_TUNER = 8300
  30. };
  31. extern s32 tuner_ctrl_select(HANDLE handle, DEVICEID devid,
  32. enum I2C_TYPE type);
  33. extern s32 tuner_ctrl_deselect(HANDLE handle, DEVICEID devid);
  34. extern s32 tuner_select(HANDLE handle, DEVICEID devid,
  35. enum PRODUCT_TYPE product, enum BROADCAST_TYPE broadcast);
  36. extern s32 tuner_deselect(HANDLE handle, DEVICEID devid);
  37. extern s32 tuner_i2c_read(HANDLE handle, DEVICEID devid,
  38. u8 addr, u8 alen, u8 *data, u8 len);
  39. extern s32 tuner_i2c_write(HANDLE handle, DEVICEID devid,
  40. u8 addr, u8 alen, u8 *data, u8 len);
  41. extern s32 tuner_set_freq(HANDLE handle, DEVICEID devid, u32 freq, u8 subch);
  42. extern s32 tuner_get_rssi(HANDLE handle, DEVICEID devid, s32 *rssi);
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46. #endif /* __FCI_TUN_H__ */