1 /*
2  *  mxl111sf-phy.h - driver for the MaxLinear MXL111SF
3  *
4  *  Copyright (C) 2010-2014 Michael Krufky <mkrufky@linuxtv.org>
5  *
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.
10  *
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.
15  */
16 
17 #ifndef _DVB_USB_MXL111SF_PHY_H_
18 #define _DVB_USB_MXL111SF_PHY_H_
19 
20 #include "mxl111sf.h"
21 
22 int mxl1x1sf_soft_reset(struct mxl111sf_state *state);
23 int mxl1x1sf_set_device_mode(struct mxl111sf_state *state, int mode);
24 int mxl1x1sf_top_master_ctrl(struct mxl111sf_state *state, int onoff);
25 int mxl111sf_disable_656_port(struct mxl111sf_state *state);
26 int mxl111sf_init_tuner_demod(struct mxl111sf_state *state);
27 int mxl111sf_enable_usb_output(struct mxl111sf_state *state);
28 int mxl111sf_config_mpeg_in(struct mxl111sf_state *state,
29 			    unsigned int parallel_serial,
30 			    unsigned int msb_lsb_1st,
31 			    unsigned int clock_phase,
32 			    unsigned int mpeg_valid_pol,
33 			    unsigned int mpeg_sync_pol);
34 int mxl111sf_config_i2s(struct mxl111sf_state *state,
35 			u8 msb_start_pos, u8 data_width);
36 int mxl111sf_init_i2s_port(struct mxl111sf_state *state, u8 sample_size);
37 int mxl111sf_disable_i2s_port(struct mxl111sf_state *state);
38 int mxl111sf_config_spi(struct mxl111sf_state *state, int onoff);
39 int mxl111sf_idac_config(struct mxl111sf_state *state,
40 			 u8 control_mode, u8 current_setting,
41 			 u8 current_value, u8 hysteresis_value);
42 
43 #endif /* _DVB_USB_MXL111SF_PHY_H_ */
44