Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
auo_k190xfb.h
Go to the documentation of this file.
1 /*
2  * Definitions for AUO-K190X framebuffer drivers
3  *
4  * Copyright (C) 2012 Heiko Stuebner <[email protected]>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10 
11 #ifndef _LINUX_VIDEO_AUO_K190XFB_H_
12 #define _LINUX_VIDEO_AUO_K190XFB_H_
13 
14 /* Controller standby command needs a param */
15 #define AUOK190X_QUIRK_STANDBYPARAM (1 << 0)
16 
17 /* Controller standby is completely broken */
18 #define AUOK190X_QUIRK_STANDBYBROKEN (1 << 1)
19 
20 /*
21  * Resolutions for the displays
22  */
23 #define AUOK190X_RESOLUTION_800_600 0
24 #define AUOK190X_RESOLUTION_1024_768 1
25 
26 /*
27  * struct used by auok190x. board specific stuff comes from *board
28  */
30  struct fb_info *info;
32 
34 
35  struct mutex io_lock;
39  int rotation;
42 
43  /* panel and controller informations */
44  int epd_type;
50 
51  /* individual controller callbacks */
52  void (*update_partial)(struct auok190xfb_par *par, u16 y1, u16 y2);
53  void (*update_all)(struct auok190xfb_par *par);
54  bool (*need_refresh)(struct auok190xfb_par *par);
55  void (*init)(struct auok190xfb_par *par);
56  void (*recover)(struct auok190xfb_par *par);
57 
58  int update_mode; /* mode to use for updates */
59  int last_mode; /* update mode last used */
60  int flash;
61 
62  /* power management */
64  bool standby;
66 };
67 
86  int (*init)(struct auok190xfb_par *);
87  void (*cleanup)(struct auok190xfb_par *);
89 
90  void (*set_ctl)(struct auok190xfb_par *, unsigned char, u8);
91  void (*set_hdb)(struct auok190xfb_par *, u16);
92  u16 (*get_hdb)(struct auok190xfb_par *);
93 
94  int (*setup_irq)(struct fb_info *);
95 
97  int gpio_nrst;
99 
101  int rotation;
102  int quirks;
103  int fps;
104 };
105 
106 #endif