diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2007-02-05 19:16:51 +0200 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2007-02-05 19:16:51 +0200 |
commit | 9d77aabdff919360f0c9333105436c31f1f5749a (patch) | |
tree | fa0617724e538435cf2b04b7a63ef006fc73fe04 /src/atimach64.c | |
parent | ff8ea19fcdce099732f9359e53cd62b9a04bfa6d (diff) | |
parent | 57822be75740f339445f2375d44632560f4bbe57 (diff) |
Merge branch 'mach64-pci-1'
Diffstat (limited to 'src/atimach64.c')
-rw-r--r-- | src/atimach64.c | 41 |
1 files changed, 9 insertions, 32 deletions
diff --git a/src/atimach64.c b/src/atimach64.c index 38e0de24..98eb894d 100644 --- a/src/atimach64.c +++ b/src/atimach64.c @@ -84,16 +84,6 @@ ATIMach64PreInit { CARD32 bus_cntl, config_cntl; -#ifndef AVOID_CPIO - - if (pATI->depth <= 4) - { - pATIHW->crtc_off_pitch = SetBits(pATI->displayWidth >> 4, CRTC_PITCH); - } - else - -#endif /* AVOID_CPIO */ - { pATIHW->crtc_off_pitch = SetBits(pATI->displayWidth >> 3, CRTC_PITCH); } @@ -156,7 +146,7 @@ ATIMach64PreInit #ifndef AVOID_CPIO - if (pATI->UseSmallApertures) + if (pATI->VGAAdapter) { pATIHW->config_cntl |= CFG_MEM_VGA_AP_EN; } @@ -168,7 +158,7 @@ ATIMach64PreInit pATIHW->config_cntl &= ~CFG_MEM_VGA_AP_EN; } - if (pATI->LinearBase && (pATI->Chip < ATI_CHIP_264CT)) + if ((pATI->Chip < ATI_CHIP_264CT)) { /* Replace linear aperture size and address */ pATIHW->config_cntl &= ~(CFG_MEM_AP_LOC | CFG_MEM_AP_SIZE); @@ -656,15 +646,16 @@ ATIMach64Calculate { pMode->Flags &= ~(V_PHSYNC | V_NHSYNC | V_PVSYNC | V_NVSYNC); - if (pATI->OptionPanelDisplay && (pATI->LCDPanelID >= 0) -#ifdef TV_OUT - && !pATI->tvActive -#endif -) + if (pATI->OptionPanelDisplay && (pATI->LCDPanelID >= 0)) VDisplay = pATI->LCDVertical; else VDisplay = pMode->CrtcVDisplay; +#ifdef TV_OUT + if (pATI->tvActive) + VDisplay = pMode->CrtcVDisplay; +#endif + if (VDisplay < 400) pMode->Flags |= V_PHSYNC | V_NVSYNC; else if (VDisplay < 480) @@ -722,19 +713,6 @@ ATIMach64Calculate CRTC_EXT_DISP_EN | CRTC_EN | CRTC_VGA_LINEAR | CRTC_CNT_EN; switch (pATI->depth) { - -#ifndef AVOID_CPIO - - case 1: - pATIHW->crtc_gen_cntl |= SetBits(PIX_WIDTH_1BPP, CRTC_PIX_WIDTH); - break; - - case 4: - pATIHW->crtc_gen_cntl |= SetBits(PIX_WIDTH_4BPP, CRTC_PIX_WIDTH); - break; - -#endif /* AVOID_CPIO */ - case 8: pATIHW->crtc_gen_cntl |= SetBits(PIX_WIDTH_8BPP, CRTC_PIX_WIDTH); break; @@ -796,8 +774,7 @@ ATIMach64Set #endif /* AVOID_CPIO */ { - if ((pATIHW->FeedbackDivider > 0) && - (pATI->ProgrammableClock != ATI_CLOCK_NONE)) + if ((pATIHW->FeedbackDivider > 0)) ATIClockSet(pATI, pATIHW); /* Programme clock */ if (pATI->DAC == ATI_DAC_IBMRGB514) |