si_8348_drv.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. SiI8348 Linux Driver
  3. Copyright (C) 2013 Silicon Image, Inc.
  4. This program is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License as
  6. published by the Free Software Foundation version 2.
  7. This program is distributed AS-IS WITHOUT ANY WARRANTY of any
  8. kind, whether express or implied; INCLUDING without the implied warranty
  9. of MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE or NON-INFRINGEMENT. See
  10. the GNU General Public License for more details at http://www.gnu.org/licenses/gpl-2.0.html.
  11. */
  12. #if !defined(SI_8348_DRV_H)
  13. #define SI_8348_DRV_H
  14. #define LOW 0
  15. #define HIGH 1
  16. #define AUDIO_IF_SIZE 14 // 13 bytes Audio IF + 1 checksum
  17. struct drv_hw_context {
  18. struct interrupt_info *intr_info;
  19. uint8_t chip_rev_id;
  20. uint16_t chip_device_id;
  21. uint8_t cbus_status;
  22. uint8_t gen2_write_burst;
  23. uint8_t ready_for_mdt;
  24. uint8_t video_path;
  25. uint8_t video_ready;
  26. uint8_t audio_poll_enabled;
  27. uint8_t current_edid_block_data [4*EDID_BLOCK_SIZE];
  28. uint8_t current_edid_request_block;
  29. uint8_t current_edid_request_block_batch;
  30. uint8_t edid_fifo_block_number;
  31. uint8_t saved_reg_mhltx_ctl2;
  32. //uint8_t valid_audio_if;
  33. uint8_t valid_vsif;
  34. //uint8_t valid_avif;
  35. uint8_t valid_3d;
  36. #ifdef CONFIG_MTK_HDMI_3D_SUPPORT
  37. uint8_t valid_3d_fs;
  38. #endif
  39. struct workqueue_struct *demo_loop_wq;
  40. struct delayed_work demo_loop_work;
  41. //int current_audio_configure;
  42. //uint8_t current_audio_info_frame[AUDIO_IF_SIZE];
  43. avi_info_frame_t current_avi_info_frame;
  44. vendor_specific_info_frame_t current_vs_info_frame;
  45. hw_avi_payload_t outgoingAviPayLoad;
  46. uint8_t write_burst_data[MHL_SCRATCHPAD_SIZE];
  47. };
  48. void si_mhl_tx_set_pp_link(struct mhl_dev_context *dev_context, uint8_t value);
  49. #endif /* if !defined(SI_8348_DRV_H) */