^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * cimax2.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * CIMax(R) SP2 driver in conjunction with NetUp Dual DVB-S2 CI card
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * Copyright (C) 2009 NetUP Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * Copyright (C) 2009 Igor M. Liplianin <liplianin@netup.ru>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * Copyright (C) 2009 Abylay Ospan <aospan@netup.ru>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #ifndef CIMAX2_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define CIMAX2_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <media/dvb_ca_en50221.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) extern int netup_ci_read_attribute_mem(struct dvb_ca_en50221 *en50221,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) int slot, int addr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) extern int netup_ci_write_attribute_mem(struct dvb_ca_en50221 *en50221,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) int slot, int addr, u8 data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) extern int netup_ci_read_cam_ctl(struct dvb_ca_en50221 *en50221,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) int slot, u8 addr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) extern int netup_ci_write_cam_ctl(struct dvb_ca_en50221 *en50221,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) int slot, u8 addr, u8 data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) extern int netup_ci_slot_reset(struct dvb_ca_en50221 *en50221, int slot);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) extern int netup_ci_slot_shutdown(struct dvb_ca_en50221 *en50221, int slot);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) extern int netup_ci_slot_ts_ctl(struct dvb_ca_en50221 *en50221, int slot);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) extern int netup_ci_slot_status(struct cx23885_dev *dev, u32 pci_status);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) extern int netup_poll_ci_slot_status(struct dvb_ca_en50221 *en50221,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) int slot, int open);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) extern int netup_ci_init(struct cx23885_tsport *port);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) extern void netup_ci_exit(struct cx23885_tsport *port);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #endif