1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17#ifndef SP2_H
18#define SP2_H
19
20#include <media/dvb_ca_en50221.h>
21
22
23
24
25
26
27struct sp2_config {
28
29 struct dvb_adapter *dvb_adap;
30
31
32 void *ci_control;
33
34
35 void *priv;
36};
37
38extern int sp2_ci_read_attribute_mem(struct dvb_ca_en50221 *en50221,
39 int slot, int addr);
40extern int sp2_ci_write_attribute_mem(struct dvb_ca_en50221 *en50221,
41 int slot, int addr, u8 data);
42extern int sp2_ci_read_cam_control(struct dvb_ca_en50221 *en50221,
43 int slot, u8 addr);
44extern int sp2_ci_write_cam_control(struct dvb_ca_en50221 *en50221,
45 int slot, u8 addr, u8 data);
46extern int sp2_ci_slot_reset(struct dvb_ca_en50221 *en50221, int slot);
47extern int sp2_ci_slot_shutdown(struct dvb_ca_en50221 *en50221, int slot);
48extern int sp2_ci_slot_ts_enable(struct dvb_ca_en50221 *en50221, int slot);
49extern int sp2_ci_poll_slot_status(struct dvb_ca_en50221 *en50221,
50 int slot, int open);
51
52#endif
53