0001
0002
0003
0004
0005
0006
0007
0008 #ifndef SP2_PRIV_H
0009 #define SP2_PRIV_H
0010
0011 #include "sp2.h"
0012 #include <media/dvb_frontend.h>
0013
0014
0015 struct sp2 {
0016 int status;
0017 struct i2c_client *client;
0018 struct dvb_adapter *dvb_adap;
0019 struct dvb_ca_en50221 ca;
0020 int module_access_type;
0021 unsigned long next_status_checked_time;
0022 void *priv;
0023 void *ci_control;
0024 };
0025
0026 #define SP2_CI_ATTR_ACS 0x00
0027 #define SP2_CI_IO_ACS 0x04
0028 #define SP2_CI_WR 0
0029 #define SP2_CI_RD 1
0030
0031
0032 #define SP2_MOD_CTL_DET 0x01
0033 #define SP2_MOD_CTL_AUTO 0x02
0034 #define SP2_MOD_CTL_ACS0 0x04
0035 #define SP2_MOD_CTL_ACS1 0x08
0036 #define SP2_MOD_CTL_HAD 0x10
0037 #define SP2_MOD_CTL_TSIEN 0x20
0038 #define SP2_MOD_CTL_TSOEN 0x40
0039 #define SP2_MOD_CTL_RST 0x80
0040
0041 #endif