: Updates to Intel 810/815 Framebuffer Driver
PATCH 1/1 : Updates to Intel 810/815 Framebuffer Driver
Hi,
The patch adds/fixes the following to i810fb:
1. Fix hardware cursor corruption.
2. Preliminary I2C/DDC support.
3. Rounds up xres and yres in i810fb_check_var() instead of rounding down. This allows bootsplash (www.bootsplash.org) to work with i810fb.
4. Added myself to MAINTAINERS file.
The diff is against linux-2.6.6. Please apply.
Tony
MAINTAINERS +6 -0
@@ -1044,6 +1044,12 @@ L: [email protected] S: Maintained +INTEL 810/815 FRAMEBUFFER DRIVER +P: Antonino Daplas +M: [email protected] +L: [email protected] +S: Maintained + INTEL APIC/IOAPIC, LOWLEVEL X86 SMP SUPPORT P: Ingo Molnar M: [email protected]
drivers/video/Kconfig +5 -0
@@ -441,6 +441,11 @@ If unsure, say N. +config FB_I810_I2C + bool "Enable DDC Support" + depends on FB_I810 && I2C + help + config FB_MATROX tristate "Matrox acceleration" depends on FB && PCI
drivers/video/fbmon.c +1 -1
@@ -786,7 +786,7 @@ {unsigned char *pedid =NULL ; -#if defined(CONFIG_EDID_FIRMWARE ) && defined(CONFIG_X86 ) +#if defined(CONFIG_X86 ) pedid = edid_info.dummy;if (!pedid)return NULL ;
drivers/video/i810/Makefile +1 -1
@@ -3,7 +3,7 @@ # obj-$(CONFIG_FB_I810) += i810fb.o - +obj-$(CONFIG_FB_I810_I2C) += i810-i2c.o i810fb-objs := i810_main.o i810_accel.o
drivers/video/i810/i810-i2c.c +243 -0
243 lines not on this page · raw message
drivers/video/i810/i810.h +13 -0
@@ -16,6 +16,9 @@#include <linux/list.h> #include <linux/agp_backend.h> #include <linux/fb.h> +#include <linux/i2c.h> +#include <linux/i2c-id.h> +#include <linux/i2c-algo-bit.h> #include <video/vga.h> /* Fence */
@@ -240,6 +243,14 @@u8 cr39, cr41, cr70, sr01, msr; }; +struct i810fb_par ; + +struct i810fb_i2c_chan { +struct i810fb_par *par; +struct i2c_adapter adapter; +struct i2c_algo_bit_data algo; +}; +struct i810fb_par {struct mode_registers regs;struct state_registers hw_state;
@@ -251,12 +262,14 @@struct heap_data iring;struct heap_data cursor_heap;struct vgastate state; +struct i810fb_i2c_chan chan[2 ];drm_agp_t *drm_agp;atomic_t use_count;u32 pseudo_palette[17 ];u32 pci_state[16 ];unsigned long mmio_start_phys;u8 *mmio_start_virtual; +u8 *edid;u32 pitch;u32 pixconf;u32 watermark;
drivers/video/i810/i810_dvt.c +7 -7
@@ -193,19 +193,19 @@void round_off_xres (u32 *xres) { -if (*xres <800 ) +if (*xres <=640 ) *xres =640 ; -if (*xres <1024 && *xres >=800 ) +else if (*xres <=800 ) *xres =800 ; -if (*xres <1152 && *xres >=1024 ) +else if (*xres <=1024 ) *xres =1024 ; -if (*xres <1280 && *xres >=1152 ) +else if (*xres <=1152 ) *xres =1152 ; -if (*xres <1600 && *xres >=1280 ) +else if (*xres <=1280 ) *xres =1280 ; -if (*xres >=1600 ) +else *xres =1600 ; -} +}inline void round_off_yres (u32 *xres,u32 *yres) {
drivers/video/i810/i810_main.c +61 -23
178 lines not on this page · raw message
drivers/video/i810/i810_main.h +6 -0
@@ -83,6 +83,12 @@extern void i810fb_init_ringbuffer (struct fb_info *info);extern void i810fb_load_front (u32 offset,struct fb_info *info); +/* I2C */ +extern int i810_probe_i2c_connector (struct i810fb_par *par,u8 **out_edid,int conn); +extern void i810_create_i2c_busses (struct i810fb_par *par); +extern void i810_delete_i2c_busses (struct i810fb_par *par); + +/* Conditionals */ #ifdef CONFIG_X86 inline void flush_cache (void )
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND