si2168_priv.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Silicon Labs Si2168 DVB-T/T2/C demodulator driver
  3. *
  4. * Copyright (C) 2014 Antti Palosaari <crope@iki.fi>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. */
  16. #ifndef SI2168_PRIV_H
  17. #define SI2168_PRIV_H
  18. #include "si2168.h"
  19. #include "dvb_frontend.h"
  20. #include <linux/firmware.h>
  21. #include <linux/i2c-mux.h>
  22. #define SI2168_FIRMWARE "dvb-demod-si2168-02.fw"
  23. /* state struct */
  24. struct si2168 {
  25. struct i2c_client *client;
  26. struct i2c_adapter *adapter;
  27. struct mutex i2c_mutex;
  28. struct dvb_frontend fe;
  29. fe_delivery_system_t delivery_system;
  30. fe_status_t fe_status;
  31. bool active;
  32. };
  33. /* firmare command struct */
  34. #define SI2157_ARGLEN 30
  35. struct si2168_cmd {
  36. u8 args[SI2157_ARGLEN];
  37. unsigned wlen;
  38. unsigned rlen;
  39. };
  40. #endif