mxl111sf-phy.h 1.8 KB

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