]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/video/sh_mobile_lcdcfb.h
6fcfc0ffe3f833b76448bccac5f70fd94a89b7ec
[mirror_ubuntu-artful-kernel.git] / drivers / video / sh_mobile_lcdcfb.h
1 #ifndef SH_MOBILE_LCDCFB_H
2 #define SH_MOBILE_LCDCFB_H
3
4 #include <linux/completion.h>
5 #include <linux/fb.h>
6 #include <linux/wait.h>
7
8 /* per-channel registers */
9 enum { LDDCKPAT1R, LDDCKPAT2R, LDMT1R, LDMT2R, LDMT3R, LDDFR, LDSM1R,
10 LDSM2R, LDSA1R, LDMLSR, LDHCNR, LDHSYNR, LDVLNR, LDVSYNR, LDPMR,
11 LDHAJR,
12 NR_CH_REGS };
13
14 #define PALETTE_NR 16
15
16 struct sh_mobile_lcdc_priv;
17 struct fb_info;
18
19 struct sh_mobile_lcdc_chan {
20 struct sh_mobile_lcdc_priv *lcdc;
21 unsigned long *reg_offs;
22 unsigned long ldmt1r_value;
23 unsigned long enabled; /* ME and SE in LDCNT2R */
24 struct sh_mobile_lcdc_chan_cfg cfg;
25 u32 pseudo_palette[PALETTE_NR];
26 unsigned long saved_ch_regs[NR_CH_REGS];
27 struct fb_info *info;
28 dma_addr_t dma_handle;
29 struct fb_deferred_io defio;
30 struct scatterlist *sglist;
31 unsigned long frame_end;
32 unsigned long pan_offset;
33 wait_queue_head_t frame_end_wait;
34 struct completion vsync_completion;
35 };
36
37 #endif