diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2007-02-24 21:22:49 +0200 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2007-02-25 11:38:44 +0200 |
commit | 8b9a4ec8af90b2f9f0d0a3a7f6627061df7e01b3 (patch) | |
tree | cb01f921631b485aad85212031eaf6dc4bb3b7fb /src/atimach64.c | |
parent | bb226c9e7218d2a65c056fe74cb7eece0550670f (diff) |
[mach64] Consolidate adjustments of mode timings, part 2.
Factor out to seperate function.
Diffstat (limited to 'src/atimach64.c')
-rw-r--r-- | src/atimach64.c | 24 |
1 files changed, 20 insertions, 4 deletions
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 = |