2 * mxl111sf-phy.h - driver for the MaxLinear MXL111SF
4 * Copyright (C) 2010 Michael Krufky <mkrufky@kernellabs.com>
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.
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.
21 #ifndef _DVB_USB_MXL111SF_PHY_H_
22 #define _DVB_USB_MXL111SF_PHY_H_
26 int mxl1x1sf_soft_reset(struct mxl111sf_state
*state
);
27 int mxl1x1sf_set_device_mode(struct mxl111sf_state
*state
, int mode
);
28 int mxl1x1sf_top_master_ctrl(struct mxl111sf_state
*state
, int onoff
);
29 int mxl111sf_disable_656_port(struct mxl111sf_state
*state
);
30 int mxl111sf_init_tuner_demod(struct mxl111sf_state
*state
);
31 int mxl111sf_enable_usb_output(struct mxl111sf_state
*state
);
32 int 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
);
38 int mxl111sf_config_i2s(struct mxl111sf_state
*state
,
39 u8 msb_start_pos
, u8 data_width
);
40 int mxl111sf_init_i2s_port(struct mxl111sf_state
*state
, u8 sample_size
);
41 int mxl111sf_disable_i2s_port(struct mxl111sf_state
*state
);
42 int mxl111sf_config_spi(struct mxl111sf_state
*state
, int onoff
);
43 int mxl111sf_idac_config(struct mxl111sf_state
*state
,
44 u8 control_mode
, u8 current_setting
,
45 u8 current_value
, u8 hysteresis_value
);
47 #endif /* _DVB_USB_MXL111SF_PHY_H_ */