aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/i810/i810.h
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2005-09-09 16:10:04 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 17:03:41 -0400
commit74f6ae84b2315c2fa8a4110b09a1c0f3dca92674 (patch)
tree47b3bae44b4c57a699d2c130510ff0fbe110fa97 /drivers/video/i810/i810.h
parent829e79b680210c4f4de435af6e1f90451922fc7d (diff)
[PATCH] i810fb: Add i2c/DDC support
Add ddc/i2c support for i810fb. This will allow the driver to get display information, especially for monitors with fickle timings. The i2c support depends on CONFIG_FB_I810_GTF. Changed __init* to __devinit* Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Alexander Nyberg <alexn@telia.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/i810/i810.h')
-rw-r--r--drivers/video/i810/i810.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/video/i810/i810.h b/drivers/video/i810/i810.h
index f59af3335ccf..d48949ceaacc 100644
--- a/drivers/video/i810/i810.h
+++ b/drivers/video/i810/i810.h
@@ -16,6 +16,9 @@
16#include <linux/list.h> 16#include <linux/list.h>
17#include <linux/agp_backend.h> 17#include <linux/agp_backend.h>
18#include <linux/fb.h> 18#include <linux/fb.h>
19#include <linux/i2c.h>
20#include <linux/i2c-id.h>
21#include <linux/i2c-algo-bit.h>
19#include <video/vga.h> 22#include <video/vga.h>
20 23
21/* Fence */ 24/* Fence */
@@ -240,6 +243,14 @@ struct state_registers {
240 u8 cr39, cr41, cr70, sr01, msr; 243 u8 cr39, cr41, cr70, sr01, msr;
241}; 244};
242 245
246struct i810fb_par;
247
248struct i810fb_i2c_chan {
249 struct i810fb_par *par;
250 struct i2c_adapter adapter;
251 struct i2c_algo_bit_data algo;
252};
253
243struct i810fb_par { 254struct i810fb_par {
244 struct mode_registers regs; 255 struct mode_registers regs;
245 struct state_registers hw_state; 256 struct state_registers hw_state;
@@ -251,10 +262,12 @@ struct i810fb_par {
251 struct heap_data iring; 262 struct heap_data iring;
252 struct heap_data cursor_heap; 263 struct heap_data cursor_heap;
253 struct vgastate state; 264 struct vgastate state;
265 struct i810fb_i2c_chan chan[2];
254 atomic_t use_count; 266 atomic_t use_count;
255 u32 pseudo_palette[17]; 267 u32 pseudo_palette[17];
256 unsigned long mmio_start_phys; 268 unsigned long mmio_start_phys;
257 u8 __iomem *mmio_start_virtual; 269 u8 __iomem *mmio_start_virtual;
270 u8 *edid;
258 u32 pitch; 271 u32 pitch;
259 u32 pixconf; 272 u32 pixconf;
260 u32 watermark; 273 u32 watermark;