FBDEV: rivafb + save/restore state
PATCH 3/3 FBDEV: rivafb + save/restore state
Hi,
Attached is a patch against linux-2.5.50 + James Simmons fbdev.diff.
Added support to save and restore vgacon's text mode. Can also restore VGA graphics mode.
Tony
drivers/video/Makefile +2 -1
@@ -69,7 +69,8 @@ obj-$(CONFIG_FB_TX3912) += tx3912fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_MATROX) += matrox/ -obj-$(CONFIG_FB_RIVA) += riva/ cfbfillrect.o cfbcopyarea.o cfbimgblt.o +obj-$(CONFIG_FB_RIVA) += riva/ cfbfillrect.o cfbcopyarea.o \ + cfbimgblt.o vgastate.o obj-$(CONFIG_FB_SIS) += sis/ obj-$(CONFIG_FB_ATY) += aty/ cfbimgblt.o
drivers/video/riva/fbdev.c +171 -32
291 lines not on this page · raw message
drivers/video/riva/rivafb.h +2 -1
@@ -34,7 +34,8 @@struct riva_regs initial_state;/* initial startup video mode */ struct riva_regs current_state; - +struct fb_vgastate state; +atomic_t ref_count;riva_cfb8_cmap_t cmap[256 ];/* VGA DAC palette cache */ u32 riva_palette[16 ];u32 cursor_data[32 *32 /4 ];