xref: /linux/drivers/media/usb/dvb-usb-v2/mxl111sf-phy.h (revision 26fbb4c8c7c3ee9a4c3b4de555a8587b5a19154e)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  *  mxl111sf-phy.h - driver for the MaxLinear MXL111SF
4  *
5  *  Copyright (C) 2010-2014 Michael Krufky <mkrufky@linuxtv.org>
6  */
7 
8 #ifndef _DVB_USB_MXL111SF_PHY_H_
9 #define _DVB_USB_MXL111SF_PHY_H_
10 
11 #include "mxl111sf.h"
12 
13 int mxl1x1sf_soft_reset(struct mxl111sf_state *state);
14 int mxl1x1sf_set_device_mode(struct mxl111sf_state *state, int mode);
15 int mxl1x1sf_top_master_ctrl(struct mxl111sf_state *state, int onoff);
16 int mxl111sf_disable_656_port(struct mxl111sf_state *state);
17 int mxl111sf_init_tuner_demod(struct mxl111sf_state *state);
18 int mxl111sf_enable_usb_output(struct mxl111sf_state *state);
19 int mxl111sf_config_mpeg_in(struct mxl111sf_state *state,
20 			    unsigned int parallel_serial,
21 			    unsigned int msb_lsb_1st,
22 			    unsigned int clock_phase,
23 			    unsigned int mpeg_valid_pol,
24 			    unsigned int mpeg_sync_pol);
25 int mxl111sf_config_i2s(struct mxl111sf_state *state,
26 			u8 msb_start_pos, u8 data_width);
27 int mxl111sf_init_i2s_port(struct mxl111sf_state *state, u8 sample_size);
28 int mxl111sf_disable_i2s_port(struct mxl111sf_state *state);
29 int mxl111sf_config_spi(struct mxl111sf_state *state, int onoff);
30 int mxl111sf_idac_config(struct mxl111sf_state *state,
31 			 u8 control_mode, u8 current_setting,
32 			 u8 current_value, u8 hysteresis_value);
33 
34 #endif /* _DVB_USB_MXL111SF_PHY_H_ */
35