imxfb.h 646 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * This structure describes the machine which we are running on.
  3. */
  4. struct imxfb_mach_info {
  5. u_long pixclock;
  6. u_short xres;
  7. u_short yres;
  8. u_int nonstd;
  9. u_char bpp;
  10. u_char hsync_len;
  11. u_char left_margin;
  12. u_char right_margin;
  13. u_char vsync_len;
  14. u_char upper_margin;
  15. u_char lower_margin;
  16. u_char sync;
  17. u_int cmap_greyscale:1,
  18. cmap_inverse:1,
  19. cmap_static:1,
  20. unused:29;
  21. u_int pcr;
  22. u_int pwmr;
  23. u_int lscr1;
  24. u_int dmacr;
  25. u_char * fixed_screen_cpu;
  26. dma_addr_t fixed_screen_dma;
  27. void (*lcd_power)(int);
  28. void (*backlight_power)(int);
  29. };
  30. void set_imx_fb_info(struct imxfb_mach_info *hard_imx_fb_info);