patch-2.3.29 linux/drivers/video/matroxfb.c
Next file: linux/drivers/video/tgafb.c
Previous file: linux/drivers/video/fbmon.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Fri Nov 19 11:38:21 1999
- Orig file:
v2.3.28/linux/drivers/video/matroxfb.c
- Orig date:
Fri Sep 10 23:57:36 1999
diff -u --recursive --new-file v2.3.28/linux/drivers/video/matroxfb.c linux/drivers/video/matroxfb.c
@@ -587,7 +587,6 @@
int text_type_aux;
int video64bits;
unsigned int vgastep;
- unsigned int vgastepdisp;
unsigned int textmode;
unsigned int textstep;
unsigned int textvram; /* character cells */
@@ -5490,10 +5489,11 @@
#define DEVF_DMA 0x80
#define DEVF_SUPPORT32MB 0x100
#define DEVF_ANY_VXRES 0x200
+#define DEVF_TEXT16B 0x400
#define DEVF_G100 (DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB | DEVF_DDC_8_2) /* no doc, no vxres... */
#define DEVF_G200 (DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB | DEVF_DDC_8_2 | DEVF_ANY_VXRES)
-#define DEVF_G400 (DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB | DEVF_DDC_8_2 | DEVF_ANY_VXRES | DEVF_SUPPORT32MB)
+#define DEVF_G400 (DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB | DEVF_DDC_8_2 | DEVF_ANY_VXRES | DEVF_SUPPORT32MB | DEVF_TEXT16B)
static struct board {
unsigned short vendor, device, rev, svid, sid;
@@ -5666,12 +5666,14 @@
if (b->flags & DEVF_TEXT4B) {
ACCESS_FBINFO(devflags.vgastep) = 4;
ACCESS_FBINFO(devflags.textmode) = 4;
- ACCESS_FBINFO(devflags.vgastepdisp) = 16;
+ ACCESS_FBINFO(devflags.text_type_aux) = FB_AUX_TEXT_MGA_STEP16;
+ } else if (b->flags & DEVF_TEXT16B) {
+ ACCESS_FBINFO(devflags.vgastep) = 16;
+ ACCESS_FBINFO(devflags.textmode) = 1;
ACCESS_FBINFO(devflags.text_type_aux) = FB_AUX_TEXT_MGA_STEP16;
} else {
ACCESS_FBINFO(devflags.vgastep) = 8;
ACCESS_FBINFO(devflags.textmode) = 1;
- ACCESS_FBINFO(devflags.vgastepdisp) = 64;
ACCESS_FBINFO(devflags.text_type_aux) = FB_AUX_TEXT_MGA_STEP8;
}
#ifdef CONFIG_FB_MATROX_32MB
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)