0001
0002
0003
0004
0005
0006
0007
0008 #ifndef SI2168_PRIV_H
0009 #define SI2168_PRIV_H
0010
0011 #include "si2168.h"
0012 #include <media/dvb_frontend.h>
0013 #include <linux/firmware.h>
0014 #include <linux/i2c-mux.h>
0015 #include <linux/kernel.h>
0016
0017 #define SI2168_A20_FIRMWARE "dvb-demod-si2168-a20-01.fw"
0018 #define SI2168_A30_FIRMWARE "dvb-demod-si2168-a30-01.fw"
0019 #define SI2168_B40_FIRMWARE "dvb-demod-si2168-b40-01.fw"
0020 #define SI2168_D60_FIRMWARE "dvb-demod-si2168-d60-01.fw"
0021
0022
0023 struct si2168_dev {
0024 struct mutex i2c_mutex;
0025 struct i2c_mux_core *muxc;
0026 struct dvb_frontend fe;
0027 enum fe_delivery_system delivery_system;
0028 enum fe_status fe_status;
0029 #define SI2168_CHIP_ID_A20 ('A' << 24 | 68 << 16 | '2' << 8 | '0' << 0)
0030 #define SI2168_CHIP_ID_A30 ('A' << 24 | 68 << 16 | '3' << 8 | '0' << 0)
0031 #define SI2168_CHIP_ID_B40 ('B' << 24 | 68 << 16 | '4' << 8 | '0' << 0)
0032 #define SI2168_CHIP_ID_D60 ('D' << 24 | 68 << 16 | '6' << 8 | '0' << 0)
0033 unsigned int chip_id;
0034 unsigned int version;
0035 const char *firmware_name;
0036 u8 ts_mode;
0037 unsigned int active:1;
0038 unsigned int warm:1;
0039 unsigned int initialized:1;
0040 unsigned int ts_clock_inv:1;
0041 unsigned int ts_clock_gapped:1;
0042 unsigned int spectral_inversion:1;
0043 };
0044
0045
0046 #define SI2168_ARGLEN 30
0047 struct si2168_cmd {
0048 u8 args[SI2168_ARGLEN];
0049 unsigned wlen;
0050 unsigned rlen;
0051 };
0052
0053 #endif