mxl111sf-phy.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #ifndef _DVB_USB_MXL111SF_PHY_H_
  21. #define _DVB_USB_MXL111SF_PHY_H_
  22. #include "mxl111sf.h"
  23. int mxl1x1sf_soft_reset(struct mxl111sf_state *state);
  24. int mxl1x1sf_set_device_mode(struct mxl111sf_state *state, int mode);
  25. int mxl1x1sf_top_master_ctrl(struct mxl111sf_state *state, int onoff);
  26. int mxl111sf_disable_656_port(struct mxl111sf_state *state);
  27. int mxl111sf_init_tuner_demod(struct mxl111sf_state *state);
  28. int mxl111sf_enable_usb_output(struct mxl111sf_state *state);
  29. int mxl111sf_config_mpeg_in(struct mxl111sf_state *state,
  30. unsigned int parallel_serial,
  31. unsigned int msb_lsb_1st,
  32. unsigned int clock_phase,
  33. unsigned int mpeg_valid_pol,
  34. unsigned int mpeg_sync_pol);
  35. int mxl111sf_config_i2s(struct mxl111sf_state *state,
  36. u8 msb_start_pos, u8 data_width);
  37. int mxl111sf_init_i2s_port(struct mxl111sf_state *state, u8 sample_size);
  38. int mxl111sf_disable_i2s_port(struct mxl111sf_state *state);
  39. int mxl111sf_config_spi(struct mxl111sf_state *state, int onoff);
  40. int mxl111sf_idac_config(struct mxl111sf_state *state,
  41. u8 control_mode, u8 current_setting,
  42. u8 current_value, u8 hysteresis_value);
  43. #endif /* _DVB_USB_MXL111SF_PHY_H_ */