tc90522.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Toshiba TC90522 Demodulator
  3. *
  4. * Copyright (C) 2014 Akihiro Tsukada <tskd08@gmail.com>
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation version 2.
  9. *
  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. /*
  17. * The demod has 4 input (2xISDB-T and 2xISDB-S),
  18. * and provides independent sub modules for each input.
  19. * As the sub modules work in parallel and have the separate i2c addr's,
  20. * this driver treats each sub module as one demod device.
  21. */
  22. #ifndef TC90522_H
  23. #define TC90522_H
  24. #include <linux/i2c.h>
  25. #include "dvb_frontend.h"
  26. /* I2C device types */
  27. #define TC90522_I2C_DEV_SAT "tc90522sat"
  28. #define TC90522_I2C_DEV_TER "tc90522ter"
  29. struct tc90522_config {
  30. /* [OUT] frontend returned by driver */
  31. struct dvb_frontend *fe;
  32. /* [OUT] tuner I2C adapter returned by driver */
  33. struct i2c_adapter *tuner_i2c;
  34. };
  35. #endif /* TC90522_H */