diff options
author | Alex Deucher <alex@botch2.(none)> | 2007-11-15 23:15:56 -0500 |
---|---|---|
committer | Alex Deucher <alex@botch2.(none)> | 2007-11-15 23:15:56 -0500 |
commit | e6db621c37ff615be286462f000d67a662c5c331 (patch) | |
tree | aee72d76726041e75dac20ac269ae9e63aad3513 /src/radeon_driver.c | |
parent | 52ba3fdd1ce05983fabedff234cfaf4c60fba38d (diff) |
fix INMC() and OUTMC() on !AVIVO chips
WR_EN is bit 8 so don't use OUTREG8.
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r-- | src/radeon_driver.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |