18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * mxl111sf-phy.h - driver for the MaxLinear MXL111SF 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2010-2014 Michael Krufky <mkrufky@linuxtv.org> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef _DVB_USB_MXL111SF_PHY_H_ 98c2ecf20Sopenharmony_ci#define _DVB_USB_MXL111SF_PHY_H_ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#include "mxl111sf.h" 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciint mxl1x1sf_soft_reset(struct mxl111sf_state *state); 148c2ecf20Sopenharmony_ciint mxl1x1sf_set_device_mode(struct mxl111sf_state *state, int mode); 158c2ecf20Sopenharmony_ciint mxl1x1sf_top_master_ctrl(struct mxl111sf_state *state, int onoff); 168c2ecf20Sopenharmony_ciint mxl111sf_disable_656_port(struct mxl111sf_state *state); 178c2ecf20Sopenharmony_ciint mxl111sf_init_tuner_demod(struct mxl111sf_state *state); 188c2ecf20Sopenharmony_ciint mxl111sf_enable_usb_output(struct mxl111sf_state *state); 198c2ecf20Sopenharmony_ciint mxl111sf_config_mpeg_in(struct mxl111sf_state *state, 208c2ecf20Sopenharmony_ci unsigned int parallel_serial, 218c2ecf20Sopenharmony_ci unsigned int msb_lsb_1st, 228c2ecf20Sopenharmony_ci unsigned int clock_phase, 238c2ecf20Sopenharmony_ci unsigned int mpeg_valid_pol, 248c2ecf20Sopenharmony_ci unsigned int mpeg_sync_pol); 258c2ecf20Sopenharmony_ciint mxl111sf_config_i2s(struct mxl111sf_state *state, 268c2ecf20Sopenharmony_ci u8 msb_start_pos, u8 data_width); 278c2ecf20Sopenharmony_ciint mxl111sf_init_i2s_port(struct mxl111sf_state *state, u8 sample_size); 288c2ecf20Sopenharmony_ciint mxl111sf_disable_i2s_port(struct mxl111sf_state *state); 298c2ecf20Sopenharmony_ciint mxl111sf_config_spi(struct mxl111sf_state *state, int onoff); 308c2ecf20Sopenharmony_ciint mxl111sf_idac_config(struct mxl111sf_state *state, 318c2ecf20Sopenharmony_ci u8 control_mode, u8 current_setting, 328c2ecf20Sopenharmony_ci u8 current_value, u8 hysteresis_value); 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#endif /* _DVB_USB_MXL111SF_PHY_H_ */ 35