imxfb.h 630 B

123456789101112131415161718192021222324252627282930313233343536
  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_char bpp;
  9. u_char hsync_len;
  10. u_char left_margin;
  11. u_char right_margin;
  12. u_char vsync_len;
  13. u_char upper_margin;
  14. u_char lower_margin;
  15. u_char sync;
  16. u_int cmap_greyscale:1,
  17. cmap_inverse:1,
  18. cmap_static:1,
  19. unused:29;
  20. u_int pcr;
  21. u_int pwmr;
  22. u_int lscr1;
  23. u_int dmacr;
  24. u_char * fixed_screen_cpu;
  25. dma_addr_t fixed_screen_dma;
  26. void (*lcd_power)(int);
  27. void (*backlight_power)(int);
  28. };
  29. void set_imx_fb_info(struct imxfb_mach_info *hard_imx_fb_info);