From dce4cc26a8e2bf53805ec63763243f3ff6b4a6d3 Mon Sep 17 00:00:00 2001 From: George Sapountzis Date: Thu, 7 Feb 2008 18:02:17 +0200 Subject: mach64: consolidate refclk #1 --- src/atipreinit.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/atipreinit.c') diff --git a/src/atipreinit.c b/src/atipreinit.c index 65c84eb..f6b0ce4 100644 --- a/src/atipreinit.c +++ b/src/atipreinit.c @@ -148,7 +148,9 @@ ati_bios_clock { pATI->ProgrammableClock = BIOSByte(ClockTable); pATI->ClockNumberToProgramme = BIOSByte(ClockTable + 0x06U); - switch (BIOSWord(ClockTable + 0x08U) / 10) + pATI->refclk = BIOSWord(ClockTable + 0x08U); + pATI->refclk *= 10000; + switch (pATI->refclk / 100000) { case 143: pATI->ReferenceNumerator = 157500; @@ -161,8 +163,7 @@ ati_bios_clock break; default: - pATI->ReferenceNumerator = - BIOSWord(ClockTable + 0x08U) * 10; + pATI->ReferenceNumerator = pATI->refclk / 1000; pATI->ReferenceDenominator = 1; break; } -- cgit v1.2.3