: i810fb fixes
PATCH 4/5 : i810fb fixes
Attached is a patch (linux-2.5.61 + James' fbdev.diff) to update i810fb:
1. added suspend/resume hooks to pci_driver. This is needed to save/recover GART mappings during suspends/resumes. These are also necessary for swsusp (software suspend) to work.
2. Fix compilation warnings.
Tony
drivers/video/i810/i810.h +2 -0
@@ -256,6 +256,7 @@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;u32 cursor_reset;
@@ -273,6 +274,7 @@u32 depth;u32 blit_bpp;u32 ovract; +u32 cur_state;int mtrr_reg;u16 bltcntl;u8 interlace;
drivers/video/i810/i810_accel.c +44 -42
166 lines not on this page · raw message
drivers/video/i810/i810_main.c +83 -11
128 lines not on this page · raw message
drivers/video/i810/i810_main.h +9 -3
@@ -43,12 +43,16 @@static int __init i810fb_init_pci (struct pci_dev *dev,const struct pci_device_id *entry); static void __exit i810fb_remove_pci(struct pci_dev *dev); +static int i810fb_resume (struct pci_dev *dev); +static int i810fb_suspend (struct pci_dev *dev,u32 state);static struct pci_driver i810fb_driver = { .name ="i810fb" , .id_table = i810fb_pci_tbl, .probe = i810fb_init_pci, .remove =__exit_p (i810fb_remove_pci), + .suspend = i810fb_suspend, + .resume = i810fb_resume, };static int i810_init__initdata =0 ;
@@ -121,9 +125,11 @@extern void i810fb_fill_var_timings (struct fb_var_screeninfo *var);/* Accelerated Functions */ -extern void i810fb_fillrect (struct fb_info *p,const struct fb_fillrect *rect); -extern void i810fb_copyarea (struct fb_info *p,struct fb_copyarea *region); -extern void i810fb_imageblit (struct fb_info *p,struct fb_image *image); +extern void i810fb_fillrect (struct fb_info *p, +const struct fb_fillrect *rect); +extern void i810fb_copyarea (struct fb_info *p, +const struct fb_copyarea *region); +extern void i810fb_imageblit (struct fb_info *p,const struct fb_image *image);extern int i810fb_sync (struct fb_info *p);extern void i810fb_init_ringbuffer (struct i810fb_par *par);
James Simmons
AppliedQuoted 8 lines
Attached is a patch (linux-2.5.61 + James' fbdev.diff) to update i810fb:
1. added suspend/resume hooks to
pci_driver. This is needed to save/recover GART mappings during suspends/resumes. These are also necessary for swsusp (software suspend) to work.2. Fix compilation warnings.
Applied.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf