From 05480382c508bd27c1755405518ce9c339f0f80e Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Fri, 13 Mar 2009 21:19:16 +0100 Subject: Fix direct access to IO space on chipsets with no IOBase mapping. Signed-off-by: Francisco Jerez --- src/smilynx_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smilynx_output.c b/src/smilynx_output.c index fefa8c5..6f34c3f 100644 --- a/src/smilynx_output.c +++ b/src/smilynx_output.c @@ -220,7 +220,7 @@ SMILynx_OutputDetect_crt(xf86OutputPtr output) while (!(hwp->readST01(hwp) & 0x8)) ; while (hwp->readST01(hwp) & 0x8) ; - status = MMIO_IN8(pSmi->IOBase, 0x3C2) & 0x10; + status = VGAIN8(pSmi, 0x3C2) & 0x10; /* Restore previous state */ VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x21, mode->SR21); -- cgit v1.2.3