display.h 966 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2010
  4. * NVIDIA Corporation <www.nvidia.com>
  5. */
  6. #ifndef __ASM_ARCH_TEGRA_DISPLAY_H
  7. #define __ASM_ARCH_TEGRA_DISPLAY_H
  8. #include <asm/arch-tegra/dc.h>
  9. /* This holds information about a window which can be displayed */
  10. struct disp_ctl_win {
  11. enum win_color_depth_id fmt; /* Color depth/format */
  12. unsigned bpp; /* Bits per pixel */
  13. phys_addr_t phys_addr; /* Physical address in memory */
  14. unsigned x; /* Horizontal address offset (bytes) */
  15. unsigned y; /* Veritical address offset (bytes) */
  16. unsigned w; /* Width of source window */
  17. unsigned h; /* Height of source window */
  18. unsigned stride; /* Number of bytes per line */
  19. unsigned out_x; /* Left edge of output window (col) */
  20. unsigned out_y; /* Top edge of output window (row) */
  21. unsigned out_w; /* Width of output window in pixels */
  22. unsigned out_h; /* Height of output window in pixels */
  23. };
  24. #endif /*__ASM_ARCH_TEGRA_DISPLAY_H*/