Attached is a patch for XFree86 4.0.1 to let the tseng driver work with
my card.  It still has some slight font drawing problems, but it is a
definite improvement over what you have now.

I emailed the patch in a different letter to an XFree86 mailing list for
inclusion in their next release.

-Randy

------
Randy McCaskill
[EMAIL PROTECTED]
--- xc-4.0.1/programs/Xserver/hw/xfree86/drivers/tseng/tseng_driver.c   Mon Apr 17 
12:30:09 2000
+++ work/programs/Xserver/hw/xfree86/drivers/tseng/tseng_driver.c       Sat Sep 23 
+11:51:59 2000
@@ -1055,7 +1055,7 @@
     TsengPtr pTseng = TsengPTR(pScrn);
 
     if (pTseng->UseLinMem && pTseng->Linmem_1meg) {
-       TsengDoMemLimit(pScrn, ram, 1024, "in linear mode on this VGA board/bus 
configuration");
+       ram = TsengDoMemLimit(pScrn, ram, 1024, "in linear mode on this VGA board/bus 
+configuration");
     }
     if (pTseng->UseAccel && pTseng->UseLinMem) {
        if (Is_W32_any) {
@@ -1065,19 +1065,19 @@
             *   2*1MB via apertures MBP0 and MBP1
             */
            if (Is_W32p_cd)
-               TsengDoMemLimit(pScrn, ram, 2048, "in linear + accelerated mode on 
W32p rev c and d");
+               ram = TsengDoMemLimit(pScrn, ram, 2048, "in linear + accelerated mode 
+on W32p rev c and d");
 
-           TsengDoMemLimit(pScrn, ram, 2048 + 1024, "in linear + accelerated mode on 
W32/W32i/W32p");
+           ram = TsengDoMemLimit(pScrn, ram, 2048 + 1024, "in linear + accelerated 
+mode on W32/W32i/W32p");
 
            /* upper 516kb of 4MB linear map used for "externally mapped registers" */
-           TsengDoMemLimit(pScrn, ram, 4096 - 516, "in linear + accelerated mode on 
W32/W32i/W32p");
+           ram = TsengDoMemLimit(pScrn, ram, 4096 - 516, "in linear + accelerated 
+mode on W32/W32i/W32p");
        }
        if (Is_ET6K) {
            /* upper 8kb used for externally mapped and memory mapped registers */
-           TsengDoMemLimit(pScrn, ram, 4096 - 8, "in linear + accelerated mode on 
ET6000/6100");
+           ram = TsengDoMemLimit(pScrn, ram, 4096 - 8, "in linear + accelerated mode 
+on ET6000/6100");
        }
     }
-    TsengDoMemLimit(pScrn, ram, 4096, "on any Tseng card");
+    ram = TsengDoMemLimit(pScrn, ram, 4096, "on any Tseng card");
     return ram;
 }
 

Reply via email to