brintos

brintos / linux-shallow public Read only

0
0
Text · 1.2 KiB · e4f2177 Raw
51 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3 * Panasonic MN88472 DVB-T/T2/C demodulator driver4 *5 * Copyright (C) 2013 Antti Palosaari <crope@iki.fi>6 */7 8#ifndef MN88472_H9#define MN88472_H10 11#include <linux/dvb/frontend.h>12 13/* Define old names for backward compatibility */14#define VARIABLE_TS_CLOCK   MN88472_TS_CLK_VARIABLE15#define FIXED_TS_CLOCK      MN88472_TS_CLK_FIXED16#define SERIAL_TS_MODE      MN88472_TS_MODE_SERIAL17#define PARALLEL_TS_MODE    MN88472_TS_MODE_PARALLEL18 19/**20 * struct mn88472_config - Platform data for the mn88472 driver21 * @xtal: Clock frequency.22 * @ts_mode: TS mode.23 * @ts_clock: TS clock config.24 * @i2c_wr_max: Max number of bytes driver writes to I2C at once.25 * @fe: pointer to a frontend pointer26 * @get_dvb_frontend: Get DVB frontend callback.27 */28struct mn88472_config {29	unsigned int xtal;30 31#define MN88472_TS_MODE_SERIAL      032#define MN88472_TS_MODE_PARALLEL    133	int ts_mode;34 35#define MN88472_TS_CLK_FIXED        036#define MN88472_TS_CLK_VARIABLE     137	int ts_clock;38 39	u16 i2c_wr_max;40 41	/* Everything after that is returned by the driver. */42 43	/*44	 * DVB frontend.45	 */46	struct dvb_frontend **fe;47	struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);48};49 50#endif51