From 8b9a4ec8af90b2f9f0d0a3a7f6627061df7e01b3 Mon Sep 17 00:00:00 2001 From: George Sapountzis Date: Sat, 24 Feb 2007 21:22:49 +0200 Subject: [mach64] Consolidate adjustments of mode timings, part 2. Factor out to seperate function. --- src/atimach64.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'src/atimach64.c') diff --git a/src/atimach64.c b/src/atimach64.c index dee82c45..e7400035 100644 --- a/src/atimach64.c +++ b/src/atimach64.c @@ -580,12 +580,12 @@ ATIMach64Save } /* - * ATIMach64Calculate -- + * ATIMach64ModeAdjust -- * - * This function is called to fill in the Mach64 portion of an ATIHWRec. + * This function is called to adjust horizontal and vertical timings. */ -void -ATIMach64Calculate +static void +ATIMach64ModeAdjust ( ATIPtr pATI, ATIHWPtr pATIHW, @@ -711,6 +711,22 @@ ATIMach64Calculate (int)MaxBits(CRTC_V_SYNC_WID)) pMode->CrtcVSyncEnd = pMode->CrtcVSyncStart + MaxBits(CRTC_V_SYNC_WID); pMode->CrtcVAdjusted = TRUE; /* Redundant */ +} + +/* + * ATIMach64Calculate -- + * + * This function is called to fill in the Mach64 portion of an ATIHWRec. + */ +void +ATIMach64Calculate +( + ATIPtr pATI, + ATIHWPtr pATIHW, + DisplayModePtr pMode +) +{ + ATIMach64ModeAdjust(pATI, pATIHW, pMode); /* Build register contents */ pATIHW->crtc_h_total_disp = -- cgit v1.2.3