sti_awg_utils.h 710 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (C) STMicroelectronics SA 2014
  3. * Author: Vincent Abriou <vincent.abriou@st.com> for STMicroelectronics.
  4. * License terms: GNU General Public License (GPL), version 2
  5. */
  6. #ifndef _STI_AWG_UTILS_H_
  7. #define _STI_AWG_UTILS_H_
  8. #include <drm/drmP.h>
  9. #define AWG_MAX_INST 64
  10. struct awg_code_generation_params {
  11. u32 *ram_code;
  12. u8 instruction_offset;
  13. };
  14. struct awg_timing {
  15. u32 total_lines;
  16. u32 active_lines;
  17. u32 blanking_lines;
  18. u32 trailing_lines;
  19. u32 total_pixels;
  20. u32 active_pixels;
  21. u32 blanking_pixels;
  22. u32 trailing_pixels;
  23. u32 blanking_level;
  24. };
  25. int sti_awg_generate_code_data_enable_mode(
  26. struct awg_code_generation_params *fw_gen_params,
  27. struct awg_timing *timing);
  28. #endif