[Openchrome-devel] xf86-video-openchrome: src/via_ums.c

Kevin Brace kevinbrace at kemper.freedesktop.org
Sat Apr 9 04:39:05 UTC 2016


 src/via_ums.c |   38 ++++++++++++++++++++++----------------
 1 file changed, 22 insertions(+), 16 deletions(-)

New commits:
commit dc8f9b17614a377b6ab565031d05d72027a1e17f
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Fri Apr 8 21:36:31 2016 -0700

    Code clean up of viaDisableVQ
    
    This function is located inside via_ums.c.
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/src/via_ums.c b/src/via_ums.c
index 0d0046d..dd8df86 100644
--- a/src/via_ums.c
+++ b/src/via_ums.c
@@ -443,24 +443,30 @@ viaDisableVQ(ScrnInfoPtr pScrn)
 {
     VIAPtr pVia = VIAPTR(pScrn);
 
+    DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                        "Entered viaDisableVQ.\n"));
+
     switch (pVia->Chipset) {
-        case VIA_K8M890:
-        case VIA_P4M900:
-        case VIA_VX800:
-        case VIA_VX855:
-        case VIA_VX900:
-            VIASETREG(0x41c, 0x00100000);
-            VIASETREG(0x420, 0x74301000);
-            break;
-        default:
-            VIASETREG(VIA_REG_TRANSET, 0x00fe0000);
-            VIASETREG(VIA_REG_TRANSPACE, 0x00000004);
-            VIASETREG(VIA_REG_TRANSPACE, 0x40008c0f);
-            VIASETREG(VIA_REG_TRANSPACE, 0x44000000);
-            VIASETREG(VIA_REG_TRANSPACE, 0x45080c04);
-            VIASETREG(VIA_REG_TRANSPACE, 0x46800408);
-            break;
+    case VIA_K8M890:
+    case VIA_P4M900:
+    case VIA_VX800:
+    case VIA_VX855:
+    case VIA_VX900:
+        VIASETREG(0x41c, 0x00100000);
+        VIASETREG(0x420, 0x74301000);
+        break;
+    default:
+        VIASETREG(VIA_REG_TRANSET, 0x00fe0000);
+        VIASETREG(VIA_REG_TRANSPACE, 0x00000004);
+        VIASETREG(VIA_REG_TRANSPACE, 0x40008c0f);
+        VIASETREG(VIA_REG_TRANSPACE, 0x44000000);
+        VIASETREG(VIA_REG_TRANSPACE, 0x45080c04);
+        VIASETREG(VIA_REG_TRANSPACE, 0x46800408);
+        break;
     }
+
+    DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+                        "Exiting viaDisableVQ.\n"));
 }
 
 /*


More information about the Openchrome-devel mailing list