Antti Palosaari | 845f350 | 2014-04-10 22:00:50 -0300 | [diff] [blame^] | 1 | #ifndef SI2168_PRIV_H |
| 2 | #define SI2168_PRIV_H |
| 3 | |
| 4 | #include "si2168.h" |
| 5 | #include "dvb_frontend.h" |
| 6 | #include <linux/firmware.h> |
| 7 | #include <linux/i2c-mux.h> |
| 8 | |
| 9 | #define SI2168_FIRMWARE "dvb-demod-si2168-01.fw" |
| 10 | |
| 11 | /* state struct */ |
| 12 | struct si2168 { |
| 13 | struct i2c_client *client; |
| 14 | struct i2c_adapter *adapter; |
| 15 | struct mutex i2c_mutex; |
| 16 | struct dvb_frontend fe; |
| 17 | fe_delivery_system_t delivery_system; |
| 18 | fe_status_t fe_status; |
| 19 | bool active; |
| 20 | }; |
| 21 | |
| 22 | /* firmare command struct */ |
| 23 | #define SI2157_ARGLEN 30 |
| 24 | struct si2168_cmd { |
| 25 | u8 args[SI2157_ARGLEN]; |
| 26 | unsigned wlen; |
| 27 | unsigned rlen; |
| 28 | }; |
| 29 | |
| 30 | #endif |