VGA support in 2.5.31-bk...
PATCH 1/1 VGA support in 2.5.31-bk...
Hello,
I have strange VGA driver which supports also 360x480 in 256 colors by using 4 planes,
and which supports native text mode. I updated it to the new fbdev API. If you are really using vga16fb, please tell me whether you are interested in this code or not. If you are interested, please verify whether it works correctly on your hardware (especially non-ia32), and persuade me to send it to Linus. Otherwise I'll drop it and will forget about crappy VGA hardware.
For working driver you also need patch to generic drivers/video/* files I sent
few minutes ago.
Best regards,
Petr Vandrovec [email protected]
drivers/video/Makefile +2 -2
@@ -8,7 +8,7 @@ export-objs := fbmem.o fbcmap.o fbcon.o fbmon.o modedb.o \ fbcon-afb.o fbcon-ilbm.o fbcon-accel.o \ fbcon-vga.o fbcon-iplan2p2.o fbcon-iplan2p4.o \ - fbcon-iplan2p8.o fbcon-vga-planes.o fbcon-cfb16.o \ + fbcon-iplan2p8.o fbcon-vga-planes.o fbcon-vga8-planes.o fbcon-cfb16.o \ fbcon-cfb2.o fbcon-cfb24.o fbcon-cfb32.o fbcon-cfb4.o \ fbcon-cfb8.o fbcon-mfb.o fbcon-hga.o \ cyber2000fb.o sa1100fb.o fbgen.o
@@ -68,7 +68,7 @@ obj-$(CONFIG_FB_S3TRIO) += S3triofb.o obj-$(CONFIG_FB_TGA) += tgafb.o obj-$(CONFIG_FB_VESA) += vesafb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o -obj-$(CONFIG_FB_VGA16) += vga16fb.o fbcon-vga-planes.o +obj-$(CONFIG_FB_VGA16) += vga16fb.o fbcon-vga-planes.o fbcon-vga8-planes.o obj-$(CONFIG_FB_VIRGE) += virgefb.o obj-$(CONFIG_FB_G364) += g364fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_FM2) += fm2fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
drivers/video/fbcon-vga8-planes.c +382 -0
382 lines not on this page · raw message
drivers/video/vga16fb.c +403 -224
897 lines not on this page · raw message
drivers/video/vgacon.c +7 -0
@@ -180,6 +180,13 @@#endif } +/* VGA16 modes are not handled by VGACON */ +if ((ORIG_VIDEO_MODE ==0x0D ) ||/* 320x200/4 */ + (ORIG_VIDEO_MODE ==0x0E ) ||/* 640x200/4 */ + (ORIG_VIDEO_MODE ==0x10 ) ||/* 640x350/4 */ + (ORIG_VIDEO_MODE ==0x12 ) ||/* 640x480/4 */ + (ORIG_VIDEO_MODE ==0x6A ))/* 800x600/4, 0x6A is very common */ + goto no_vga; vga_video_num_lines =ORIG_VIDEO_LINES ; vga_video_num_columns =ORIG_VIDEO_COLS ;
include/video/fbcon-vga-planes.h +1 -0
@@ -18,6 +18,7 @@#endif extern struct display_switch fbcon_vga_planes; +extern struct display_switch fbcon_vga8_planes;extern struct display_switch fbcon_ega_planes;extern void fbcon_vga_planes_setup (struct display *p); extern void fbcon_vga_planes_bmove(struct display *p, int sy, int sx, int dy, int dx,