sh_mobile_lcdcfb.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef SH_MOBILE_LCDCFB_H
  2. #define SH_MOBILE_LCDCFB_H
  3. #include <linux/completion.h>
  4. #include <linux/fb.h>
  5. #include <linux/mutex.h>
  6. #include <linux/wait.h>
  7. /* per-channel registers */
  8. enum { LDDCKPAT1R, LDDCKPAT2R, LDMT1R, LDMT2R, LDMT3R, LDDFR, LDSM1R,
  9. LDSM2R, LDSA1R, LDSA2R, LDMLSR, LDHCNR, LDHSYNR, LDVLNR, LDVSYNR, LDPMR,
  10. LDHAJR,
  11. NR_CH_REGS };
  12. #define PALETTE_NR 16
  13. struct sh_mobile_lcdc_priv;
  14. struct fb_info;
  15. struct backlight_device;
  16. struct sh_mobile_lcdc_chan {
  17. struct sh_mobile_lcdc_priv *lcdc;
  18. unsigned long *reg_offs;
  19. unsigned long ldmt1r_value;
  20. unsigned long enabled; /* ME and SE in LDCNT2R */
  21. struct sh_mobile_lcdc_chan_cfg cfg;
  22. u32 pseudo_palette[PALETTE_NR];
  23. unsigned long saved_ch_regs[NR_CH_REGS];
  24. struct fb_info *info;
  25. struct backlight_device *bl;
  26. dma_addr_t dma_handle;
  27. struct fb_deferred_io defio;
  28. struct scatterlist *sglist;
  29. unsigned long frame_end;
  30. unsigned long pan_offset;
  31. wait_queue_head_t frame_end_wait;
  32. struct completion vsync_completion;
  33. struct fb_var_screeninfo display_var;
  34. int use_count;
  35. int blank_status;
  36. struct mutex open_lock; /* protects the use counter */
  37. int meram_enabled;
  38. };
  39. #endif