18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * cimax2.h
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * CIMax(R) SP2 driver in conjunction with NetUp Dual DVB-S2 CI card
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Copyright (C) 2009 NetUP Inc.
88c2ecf20Sopenharmony_ci * Copyright (C) 2009 Igor M. Liplianin <liplianin@netup.ru>
98c2ecf20Sopenharmony_ci * Copyright (C) 2009 Abylay Ospan <aospan@netup.ru>
108c2ecf20Sopenharmony_ci */
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#ifndef CIMAX2_H
138c2ecf20Sopenharmony_ci#define CIMAX2_H
148c2ecf20Sopenharmony_ci#include <media/dvb_ca_en50221.h>
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciextern int netup_ci_read_attribute_mem(struct dvb_ca_en50221 *en50221,
178c2ecf20Sopenharmony_ci						int slot, int addr);
188c2ecf20Sopenharmony_ciextern int netup_ci_write_attribute_mem(struct dvb_ca_en50221 *en50221,
198c2ecf20Sopenharmony_ci						int slot, int addr, u8 data);
208c2ecf20Sopenharmony_ciextern int netup_ci_read_cam_ctl(struct dvb_ca_en50221 *en50221,
218c2ecf20Sopenharmony_ci						int slot, u8 addr);
228c2ecf20Sopenharmony_ciextern int netup_ci_write_cam_ctl(struct dvb_ca_en50221 *en50221,
238c2ecf20Sopenharmony_ci						int slot, u8 addr, u8 data);
248c2ecf20Sopenharmony_ciextern int netup_ci_slot_reset(struct dvb_ca_en50221 *en50221, int slot);
258c2ecf20Sopenharmony_ciextern int netup_ci_slot_shutdown(struct dvb_ca_en50221 *en50221, int slot);
268c2ecf20Sopenharmony_ciextern int netup_ci_slot_ts_ctl(struct dvb_ca_en50221 *en50221, int slot);
278c2ecf20Sopenharmony_ciextern int netup_ci_slot_status(struct cx23885_dev *dev, u32 pci_status);
288c2ecf20Sopenharmony_ciextern int netup_poll_ci_slot_status(struct dvb_ca_en50221 *en50221,
298c2ecf20Sopenharmony_ci						int slot, int open);
308c2ecf20Sopenharmony_ciextern int netup_ci_init(struct cx23885_tsport *port);
318c2ecf20Sopenharmony_ciextern void netup_ci_exit(struct cx23885_tsport *port);
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci#endif
34