as102_fe.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Abilis Systems Single DVB-T Receiver
  3. * Copyright (C) 2014 Mauro Carvalho Chehab <m.chehab@samsung.com>
  4. *
  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, or (at your option)
  8. * any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #include "as102_fe_types.h"
  16. struct as102_fe_ops {
  17. int (*set_tune)(void *priv, struct as10x_tune_args *tune_args);
  18. int (*get_tps)(void *priv, struct as10x_tps *tps);
  19. int (*get_status)(void *priv, struct as10x_tune_status *tstate);
  20. int (*get_stats)(void *priv, struct as10x_demod_stats *demod_stats);
  21. int (*stream_ctrl)(void *priv, int acquire, uint32_t elna_cfg);
  22. };
  23. struct dvb_frontend *as102_attach(const char *name,
  24. const struct as102_fe_ops *ops,
  25. void *priv,
  26. uint8_t elna_cfg);