display.h 966 B

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