From e6db621c37ff615be286462f000d67a662c5c331 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Thu, 15 Nov 2007 23:15:56 -0500 Subject: fix INMC() and OUTMC() on !AVIVO chips WR_EN is bit 8 so don't use OUTREG8. --- src/radeon_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/radeon_driver.c') diff --git a/src/radeon_driver.c b/src/radeon_driver.c index e49ad423..02e38bd2 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -736,7 +736,7 @@ unsigned RADEONINMC(ScrnInfoPtr pScrn, int addr) OUTREG(AVIVO_MC_INDEX, 0); (void)INREG(AVIVO_MC_INDEX); } else { - OUTREG8(R300_MC_IND_INDEX, addr & 0x3f); + OUTREG(R300_MC_IND_INDEX, addr & 0x3f); (void)INREG(R300_MC_IND_INDEX); data = INREG(R300_MC_IND_DATA); @@ -760,8 +760,8 @@ void RADEONOUTMC(ScrnInfoPtr pScrn, int addr, CARD32 data) OUTREG(AVIVO_MC_INDEX, 0); (void)INREG(AVIVO_MC_INDEX); } else { - OUTREG8(R300_MC_IND_INDEX, (((addr) & 0x3f) | - R300_MC_IND_WR_EN)); + OUTREG(R300_MC_IND_INDEX, (((addr) & 0x3f) | + R300_MC_IND_WR_EN)); (void)INREG(R300_MC_IND_INDEX); OUTREG(R300_MC_IND_DATA, data); OUTREG(R300_MC_IND_INDEX, 0); -- cgit v1.2.3