si2165_priv.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. Driver for Silicon Labs SI2165 DVB-C/-T Demodulator
  3. Copyright (C) 2013-2014 Matthias Schwarzott <zzam@gentoo.org>
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. */
  13. #ifndef _DVB_SI2165_PRIV
  14. #define _DVB_SI2165_PRIV
  15. #define SI2165_FIRMWARE_REV_D "dvb-demod-si2165.fw"
  16. struct si2165_config {
  17. /* i2c addr
  18. * possible values: 0x64,0x65,0x66,0x67 */
  19. u8 i2c_addr;
  20. /* external clock or XTAL */
  21. u8 chip_mode;
  22. /* frequency of external clock or xtal in Hz
  23. * possible values: 4000000, 16000000, 20000000, 240000000, 27000000
  24. */
  25. u32 ref_freq_Hz;
  26. /* invert the spectrum */
  27. bool inversion;
  28. };
  29. #endif /* _DVB_SI2165_PRIV */