Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / drivers / media / dvb-frontends / mn88472.h
blob8cd5ef61903b986b477eaea36a74d45e782d0655
1 /*
2 * Panasonic MN88472 DVB-T/T2/C demodulator driver
4 * Copyright (C) 2013 Antti Palosaari <crope@iki.fi>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
17 #ifndef MN88472_H
18 #define MN88472_H
20 #include <linux/dvb/frontend.h>
22 /* Define old names for backward compatibility */
23 #define VARIABLE_TS_CLOCK MN88472_TS_CLK_VARIABLE
24 #define FIXED_TS_CLOCK MN88472_TS_CLK_FIXED
25 #define SERIAL_TS_MODE MN88472_TS_MODE_SERIAL
26 #define PARALLEL_TS_MODE MN88472_TS_MODE_PARALLEL
28 /**
29 * struct mn88472_config - Platform data for the mn88472 driver
30 * @xtal: Clock frequency.
31 * @ts_mode: TS mode.
32 * @ts_clock: TS clock config.
33 * @i2c_wr_max: Max number of bytes driver writes to I2C at once.
34 * @fe: pointer to a frontend pointer
35 * @get_dvb_frontend: Get DVB frontend callback.
37 struct mn88472_config {
38 unsigned int xtal;
40 #define MN88472_TS_MODE_SERIAL 0
41 #define MN88472_TS_MODE_PARALLEL 1
42 int ts_mode;
44 #define MN88472_TS_CLK_FIXED 0
45 #define MN88472_TS_CLK_VARIABLE 1
46 int ts_clock;
48 u16 i2c_wr_max;
50 /* Everything after that is returned by the driver. */
53 * DVB frontend.
55 struct dvb_frontend **fe;
56 struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
59 #endif