linux/drivers/video/sh_mobile_lcdcfb.h
<<
> 14> 14Search 14 onclick="return ajax_prefs();">> 14Prefs. 14> > > 14 4 14 4
.
4 41#ifndef4SH_MOBILE_LCDCFB_H>4 42#define4SH_MOBILE_LCDCFB_H>4 43>4 44#include <linux/comple"v2..h>>4 45#include <linux/fb.h>>4 46#include <linux/mutex.h>>4 47#include <linux/wait.h>>4 48>4 49/* per-channel registers */4 ion a>enum {4LDDCKPAT1Rn a>,4LDDCKPAT2Rn a>,4LDMT1Rn a>,4LDMT2Rn a>,4LDMT3Rn a>,4LDDFRn a>,4LDSM1Rn a>,.4 11 14 4LDSM2Rn a>,4LDSA1Rn a>,4LDSA2Rn a>,4LDMLSRn a>,4LDHCNRn a>,4LDHSYNRn a>,4LDVLNRn a>,4LDVSYNRn a>,4LDPMRn a>,.4 12 14 4LDHAJRn a>,.4 13 14 4NR_CH_REGS };>4 14>4 15#define4PALETTE_NR 16>4 16>4 17struct4backlight_device;>4 18struct4fb_info;>4 19struct4module;>4 20struct4sh_mobile_lcdc_chan;>4 21struct4sh_mobile_lcdc_entity;>4 22struct4sh_mobile_lcdc_format_info;>4 23struct4sh_mobile_lcdc_priv;>4 24>4 25#define4SH_MOBILE_LCDC_DISPLAY_DISCONNECTED 140>4 26#define4SH_MOBILE_LCDC_DISPLAY_CONNECTED 144 41>4 27>4 28struct4sh_mobile_lcdc_entity_ops {>4 29 144 4/* Display */4 30 144 4int (*display_on)(struct4sh_mobile_lcdc_entity *entity);>4 31 14 4 void (*display_off)(struct4sh_mobile_lcdc_entity *entity);>4 32};>4 33>4 34n a>enum sh_mobile_lcdc_entity_event {>4 35 144 4SH_MOBILE_LCDC_EVENT_DISPLAY_CONNECTn a>,.4 36 144 4SH_MOBILE_LCDC_EVENT_DISPLAY_DISCONNECTn a>,.4 37 144 4SH_MOBILE_LCDC_EVENT_DISPLAY_MODEn a>,.4 38};>4 39>4 40struct4sh_mobile_lcdc_entity {>4 41 14 4 struct4module *owner;>4 42 14 4 const struct4sh_mobile_lcdc_entity_ops *ops;>4 43 14 4 struct4sh_mobile_lcdc_chan *lcdc;>4 44 14 4 struct4fb_videomode def_mode;>4 45};>4 46>4 47/*4 48 * struct4sh_mobile_lcdc_chan - LCDC display channel4 49 *4 50 * @pa._y_offset: Panning linear offset4in bytes (luma component)4 51 * @base_addr_y: Fram. buffer viewport base address (luma component)4 52 * @base_addr_c: Fram. buffer viewport base address (chroma component)4 53 * @pitch: Fram. buffer line pitch4 54 */4 55struct4sh_mobile_lcdc_chan {>4 56 14 4 struct4sh_mobile_lcdc_priv *lcdc;>4 57 14 4 struct4sh_mobile_lcdc_entity *tx_dev;>4 58 14 4 const struct4sh_mobile_lcdc_chan_cfg *cfg;>4 59>4 60 144 4unsigned long *reg_offs;>4 61 144 4unsigned long ldmt1r_v2.6.;>4 62 144 4unsigned long enabled;4/* ME and SE4in LDCNT2R */4 63 14 4 void *cach.;>4 64>4 65 14 4 struct4mutex open_lock;4 144 4/* protects the use counter */4 66 14 4 int use_count;>4 67>4 68 14 4 void *fb_mem;>4 69 144 4unsigned long fb_size;>4 70>4 71 144 4dma_addr_t dma_handle;>4 72 144 4unsigned long pa._y_offset;>4 73>4 74 144 4unsigned long fram._end;>4 75 144 4wait_queue_head_t fram._end_wait;>4 76 14 4 struct4comple"v2. vsync_comple"v2.;>4 77>4 78 14 4 const struct4sh_mobile_lcdc_format_info *format;>4 79 144 4u324colorspace;>4 80 144 4unsigned int xres;>4 81 144 4unsigned int xres_virtual;>4 82 144 4unsigned int yres;>4 83 144 4unsigned int yres_virtual;>4 84 144 4unsigned int pitch;>4 85>4 86 144 4unsigned long base_addr_y;>4 87 144 4unsigned long base_addr_c;>4 88 144 4unsigned int line_size;>4 89>4 90 144 4int (*notify)(struct4sh_mobile_lcdc_chan *ch,.4 91 144 444444444444444enum sh_mobile_lcdc_entity_event event,.4 92 144 444444444444444const struct4fb_videomode *mode,.4 93 144 444444444444444const struct4fb_monspecs *monspec);>4 94>4 95 144 4/* Backlight */4 96 14 4 struct4backlight_device *bl;>4 97>4 98 144 4/* FB */4 99 14 4 struct4fb_info *info;>4100 144 4u324pseudo_pale"te[PALETTE_NR];>4101 14 4 struct4{>4102 144 444444444unsigned int width;>4103 144 444444444unsigned int height;>4104 144 444444444struct4fb_videomode mode;>4105 144 4} display;>4106 14 4 struct4fb_deferred_io defio;>4107 14 4 struct4sca"terlist *sglist;>4108 144 4int blank_status;>4109};>4110>4111#endif>4112 The original LXR software by the LXR community, this experimental vers1 by lxr@linux.no. lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux4consulting and opera"v2.s services since 1995.