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 *  You should have received a copy of the GNU General Public License
17 *  along with this program; if not, write to the Free Software
18 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21#ifndef _DVB_USB_MXL111SF_PHY_H_
22#define _DVB_USB_MXL111SF_PHY_H_
23
24#include "mxl111sf.h"
25
26int mxl1x1sf_soft_reset(struct mxl111sf_state *state);
27int mxl1x1sf_set_device_mode(struct mxl111sf_state *state, int mode);
28int mxl1x1sf_top_master_ctrl(struct mxl111sf_state *state, int onoff);
29int mxl111sf_disable_656_port(struct mxl111sf_state *state);
30int mxl111sf_init_tuner_demod(struct mxl111sf_state *state);
31int mxl111sf_enable_usb_output(struct mxl111sf_state *state);
32int mxl111sf_config_mpeg_in(struct mxl111sf_state *state,
33			    unsigned int parallel_serial,
34			    unsigned int msb_lsb_1st,
35			    unsigned int clock_phase,
36			    unsigned int mpeg_valid_pol,
37			    unsigned int mpeg_sync_pol);
38int mxl111sf_config_i2s(struct mxl111sf_state *state,
39			u8 msb_start_pos, u8 data_width);
40int mxl111sf_init_i2s_port(struct mxl111sf_state *state, u8 sample_size);
41int mxl111sf_disable_i2s_port(struct mxl111sf_state *state);
42int mxl111sf_config_spi(struct mxl111sf_state *state, int onoff);
43int mxl111sf_idac_config(struct mxl111sf_state *state,
44			 u8 control_mode, u8 current_setting,
45			 u8 current_value, u8 hysteresis_value);
46
47#endif /* _DVB_USB_MXL111SF_PHY_H_ */
48