cimax2.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * cimax2.h
  3. *
  4. * CIMax(R) SP2 driver in conjunction with NetUp Dual DVB-S2 CI card
  5. *
  6. * Copyright (C) 2009 NetUP Inc.
  7. * Copyright (C) 2009 Igor M. Liplianin <liplianin@netup.ru>
  8. * Copyright (C) 2009 Abylay Ospan <aospan@netup.ru>
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. *
  19. * GNU General Public License for more details.
  20. */
  21. #ifndef CIMAX2_H
  22. #define CIMAX2_H
  23. #include "dvb_ca_en50221.h"
  24. extern int netup_ci_read_attribute_mem(struct dvb_ca_en50221 *en50221,
  25. int slot, int addr);
  26. extern int netup_ci_write_attribute_mem(struct dvb_ca_en50221 *en50221,
  27. int slot, int addr, u8 data);
  28. extern int netup_ci_read_cam_ctl(struct dvb_ca_en50221 *en50221,
  29. int slot, u8 addr);
  30. extern int netup_ci_write_cam_ctl(struct dvb_ca_en50221 *en50221,
  31. int slot, u8 addr, u8 data);
  32. extern int netup_ci_slot_reset(struct dvb_ca_en50221 *en50221, int slot);
  33. extern int netup_ci_slot_shutdown(struct dvb_ca_en50221 *en50221, int slot);
  34. extern int netup_ci_slot_ts_ctl(struct dvb_ca_en50221 *en50221, int slot);
  35. extern int netup_ci_slot_status(struct cx23885_dev *dev, u32 pci_status);
  36. extern int netup_poll_ci_slot_status(struct dvb_ca_en50221 *en50221,
  37. int slot, int open);
  38. extern int netup_ci_init(struct cx23885_tsport *port);
  39. extern void netup_ci_exit(struct cx23885_tsport *port);
  40. #endif