1711615dfSAntti Palosaari /* 2711615dfSAntti Palosaari * Silicon Labs Si2168 DVB-T/T2/C demodulator driver 3711615dfSAntti Palosaari * 4711615dfSAntti Palosaari * Copyright (C) 2014 Antti Palosaari <crope@iki.fi> 5711615dfSAntti Palosaari * 6711615dfSAntti Palosaari * This program is free software; you can redistribute it and/or modify 7711615dfSAntti Palosaari * it under the terms of the GNU General Public License as published by 8711615dfSAntti Palosaari * the Free Software Foundation; either version 2 of the License, or 9711615dfSAntti Palosaari * (at your option) any later version. 10711615dfSAntti Palosaari * 11711615dfSAntti Palosaari * This program is distributed in the hope that it will be useful, 12711615dfSAntti Palosaari * but WITHOUT ANY WARRANTY; without even the implied warranty of 13711615dfSAntti Palosaari * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14711615dfSAntti Palosaari * GNU General Public License for more details. 15711615dfSAntti Palosaari */ 16711615dfSAntti Palosaari 17845f3505SAntti Palosaari #ifndef SI2168_PRIV_H 18845f3505SAntti Palosaari #define SI2168_PRIV_H 19845f3505SAntti Palosaari 20845f3505SAntti Palosaari #include "si2168.h" 21845f3505SAntti Palosaari #include "dvb_frontend.h" 22845f3505SAntti Palosaari #include <linux/firmware.h> 23845f3505SAntti Palosaari #include <linux/i2c-mux.h> 24845f3505SAntti Palosaari 25845f3505SAntti Palosaari #define SI2168_FIRMWARE "dvb-demod-si2168-01.fw" 26845f3505SAntti Palosaari 27845f3505SAntti Palosaari /* state struct */ 28845f3505SAntti Palosaari struct si2168 { 29845f3505SAntti Palosaari struct i2c_client *client; 30845f3505SAntti Palosaari struct i2c_adapter *adapter; 31845f3505SAntti Palosaari struct mutex i2c_mutex; 32845f3505SAntti Palosaari struct dvb_frontend fe; 33845f3505SAntti Palosaari fe_delivery_system_t delivery_system; 34845f3505SAntti Palosaari fe_status_t fe_status; 35845f3505SAntti Palosaari bool active; 36845f3505SAntti Palosaari }; 37845f3505SAntti Palosaari 38845f3505SAntti Palosaari /* firmare command struct */ 39*b02db9e1SOlli Salonen #define SI2168_ARGLEN 30 40845f3505SAntti Palosaari struct si2168_cmd { 41*b02db9e1SOlli Salonen u8 args[SI2168_ARGLEN]; 42845f3505SAntti Palosaari unsigned wlen; 43845f3505SAntti Palosaari unsigned rlen; 44845f3505SAntti Palosaari }; 45845f3505SAntti Palosaari 46845f3505SAntti Palosaari #endif 47