summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-10-29 17:12:58 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-10-29 17:12:58 -0700
commitc539e59ba332fba669e025f8d0d680d2a2b1c9ff (patch)
tree214dfbbea303327e17eb4bb622b8801c403c5b9d
parent0aaa00ac0d0304737e0a3fd79695537c6e3a07d4 (diff)
Disable PC98 code on newer servers.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--src/glint_driver.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/glint_driver.c b/src/glint_driver.c
index ebe5c25..abb8e47 100644
--- a/src/glint_driver.c
+++ b/src/glint_driver.c
@@ -2619,8 +2619,10 @@ GLINTModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
break;
}
+#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12
if (xf86IsPc98())
outb(0xfac, 0x01);
+#endif
return TRUE;
}
@@ -3260,8 +3262,10 @@ GLINTLeaveVT(int scrnIndex, int flags)
pGlint->STATE = TRUE;
GLINTRestore(pScrn);
+#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12
if (xf86IsPc98())
outb(0xfac, 0x00);
+#endif
TRACE_EXIT("GLINTLeaveVT");
}
@@ -3308,9 +3312,11 @@ GLINTCloseScreen(int scrnIndex, ScreenPtr pScreen)
free(pGlint->DGAModes);
free(pGlint->ScratchBuffer);
pScrn->vtSema = FALSE;
-
+
+#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12
if (xf86IsPc98())
outb(0xfac, 0x00);
+#endif
if(pGlint->BlockHandler)
pScreen->BlockHandler = pGlint->BlockHandler;