via_modesetting.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
  4. * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved.
  5. * Copyright 2010 Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
  6. */
  7. /*
  8. * basic modesetting functions
  9. */
  10. #ifndef __VIA_MODESETTING_H__
  11. #define __VIA_MODESETTING_H__
  12. #include <linux/types.h>
  13. #define VIA_PITCH_SIZE (1<<3)
  14. #define VIA_PITCH_MAX 0x3FF8
  15. struct via_display_timing {
  16. u16 hor_total;
  17. u16 hor_addr;
  18. u16 hor_blank_start;
  19. u16 hor_blank_end;
  20. u16 hor_sync_start;
  21. u16 hor_sync_end;
  22. u16 ver_total;
  23. u16 ver_addr;
  24. u16 ver_blank_start;
  25. u16 ver_blank_end;
  26. u16 ver_sync_start;
  27. u16 ver_sync_end;
  28. };
  29. void via_set_primary_timing(const struct via_display_timing *timing);
  30. void via_set_secondary_timing(const struct via_display_timing *timing);
  31. void via_set_primary_address(u32 addr);
  32. void via_set_secondary_address(u32 addr);
  33. void via_set_primary_pitch(u32 pitch);
  34. void via_set_secondary_pitch(u32 pitch);
  35. void via_set_primary_color_depth(u8 depth);
  36. void via_set_secondary_color_depth(u8 depth);
  37. #endif /* __VIA_MODESETTING_H__ */