From 9d5873a9e77a3ceb310556db3e3e5b1fcd0cb2e8 Mon Sep 17 00:00:00 2001 From: Kevin Brace Date: Sun, 29 Nov 2015 06:32:56 -0800 Subject: [PATCH 03/10] Made improvements to ViaMMIODisable and ViaMMIOEnable functions inside via_ums.c. In particular, made sure that UniChrome Pro or later graphics will all run through a certain code path within the function. Previously, some chipsets with UniChrome Pro or later graphics were going through the code path meant for UniChrome graphics. The compiled device driver was tested on the following computer. - Epic 1314 laptop (MSI VR321 laptop equivalent, VN896 chipset) with Lubuntu 12.04 i386 --- src/via_ums.c | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/src/via_ums.c b/src/via_ums.c index addb3db..54c3d24 100644 --- a/src/via_ums.c +++ b/src/via_ums.c @@ -39,16 +39,20 @@ ViaMMIODisable(ScrnInfoPtr pScrn) vgaHWPtr hwp = VGAHWPTR(pScrn); switch (pVia->Chipset) { - case VIA_K8M890: + case VIA_K8M800: + case VIA_PM800: + case VIA_P4M800PRO: case VIA_CX700: + case VIA_P4M890: + case VIA_K8M890: case VIA_P4M900: case VIA_VX800: case VIA_VX855: case VIA_VX900: - ViaSeqMask(hwp, 0x1A, 0x00, 0x08); + ViaSeqMask(hwp, 0x1a, 0x00, 0x08); break; default: - ViaSeqMask(hwp, 0x1A, 0x00, 0x60); + ViaSeqMask(hwp, 0x1a, 0x00, 0x60); break; } } @@ -96,19 +100,23 @@ ViaMMIOEnable(ScrnInfoPtr pScrn) vgaHWPtr hwp = VGAHWPTR(pScrn); switch (pVia->Chipset) { - case VIA_K8M890: + case VIA_K8M800: + case VIA_PM800: + case VIA_P4M800PRO: case VIA_CX700: + case VIA_P4M890: + case VIA_K8M890: case VIA_P4M900: case VIA_VX800: case VIA_VX855: case VIA_VX900: - ViaSeqMask(hwp, 0x1A, 0x08, 0x08); + ViaSeqMask(hwp, 0x1a, 0x08, 0x08); break; default: if (pVia->IsSecondary) - ViaSeqMask(hwp, 0x1A, 0x38, 0x38); + ViaSeqMask(hwp, 0x1a, 0x38, 0x38); else - ViaSeqMask(hwp, 0x1A, 0x68, 0x68); + ViaSeqMask(hwp, 0x1a, 0x68, 0x68); break; } } -- 1.7.9.5