From 5fa77f2d122e7267911a15235338d8d3f9eece2e Mon Sep 17 00:00:00 2001 From: George Sapountzis Date: Wed, 27 Dec 2006 14:50:48 +0200 Subject: Drop probing for VGA, VGAWonder, 8514, Mach32. - ChipHasSUBSYS_CNTL - Coprocessor - SharedAccelerator - SharedVGA <=> (VGAAdapter != ATI_ADAPTER_NONE) --- src/atiprint.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/atiprint.c') diff --git a/src/atiprint.c b/src/atiprint.c index 11cf6b7..247252d 100644 --- a/src/atiprint.c +++ b/src/atiprint.c @@ -474,31 +474,6 @@ ATIPrintRegisters "ATI extended VGA", 0); } - if (pATI->ChipHasSUBSYS_CNTL) - { - xf86ErrorFVerb(4, "\n 8514/A register values:"); - for (Index = 0x02E8U; Index <= 0x0FEE8; Index += 0x0400U) - { - if (!((Index - 0x02E8U) & 0x0C00U)) - xf86ErrorFVerb(4, "\n 0x%04X: ", Index); - xf86ErrorFVerb(4, " %04X", inw(Index)); - } - - if (pATI->Adapter >= ATI_ADAPTER_MACH8) - { - xf86ErrorFVerb(4, "\n\n Mach8/Mach32 register values:"); - for (Index = 0x02EEU; Index <= 0x0FEEE; Index += 0x0400U) - { - if (!((Index - 0x02EEU) & 0x0C00U)) - xf86ErrorFVerb(4, "\n 0x%04X: ", Index); - xf86ErrorFVerb(4, " %04X", inw(Index)); - } - } - - xf86ErrorFVerb(4, "\n"); - } - else - #endif /* AVOID_CPIO */ if (pATI->Chip == ATI_CHIP_264LT) -- cgit v1.2.3 From 817b4b5338dba4d8eb862f1f79ef0edb75aad7f4 Mon Sep 17 00:00:00 2001 From: George Sapountzis Date: Wed, 27 Dec 2006 21:16:18 +0200 Subject: Keep PCI mach64 only, drop: - Chip < ATI_CHIP_88800GXC - Chipset != ATI_CHIPSET_ATI - Adapter != ATI_ADAPTER_MACH64 - depth < 8 --- src/atiprint.c | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'src/atiprint.c') diff --git a/src/atiprint.c b/src/atiprint.c index 247252d..1fc629d 100644 --- a/src/atiprint.c +++ b/src/atiprint.c @@ -365,7 +365,7 @@ ATIPrintRegisters #ifndef AVOID_CPIO - CARD8 genmo, seq1 = 0; + CARD8 genmo; crtc = ATI_CRTC_VGA; @@ -469,8 +469,7 @@ ATIPrintRegisters ATIPrintIndexedRegisters(SEQX, 0, 8, "Sequencer", 0); if (pATI->CPIO_VGAWonder) - ATIPrintIndexedRegisters(pATI->CPIO_VGAWonder, - xf86ServerIsOnlyProbing() ? 0x80U : pATI->VGAOffset, 0xC0U, + ATIPrintIndexedRegisters(pATI->CPIO_VGAWonder, 0x80U, 0xC0U, "ATI extended VGA", 0); } @@ -540,13 +539,6 @@ ATIPrintRegisters xf86ErrorFVerb(4, "\n"); } else - -#ifndef AVOID_CPIO - - if (pATI->Chip >= ATI_CHIP_88800GXC) - -#endif /* AVOID_CPIO */ - { #ifdef AVOID_CPIO @@ -609,14 +601,6 @@ ATIPrintRegisters ATISetDACIOPorts(pATI, crtc); - /* Temporarily turn off CLKDIV2 while reading DAC's LUT */ - if (pATI->Adapter == ATI_ADAPTER_NONISA) - { - seq1 = GetReg(SEQX, 0x01U); - if (seq1 & 0x08U) - PutReg(SEQX, 0x01U, seq1 & ~0x08U); - } - dac_read = inb(pATI->CPIO_DAC_READ); DACDelay; dac_write = inb(pATI->CPIO_DAC_WRITE); @@ -653,9 +637,6 @@ ATIPrintRegisters outb(pATI->CPIO_DAC_READ, dac_read); DACDelay; - if ((pATI->Adapter == ATI_ADAPTER_NONISA) && (seq1 & 0x08U)) - PutReg(SEQX, 0x01U, seq1); - #endif /* AVOID_CPIO */ if ((pVideo = pATI->PCIInfo)) -- cgit v1.2.3 From 0abcb2b2c84a50e64bb6aa9e94760659ecf33add Mon Sep 17 00:00:00 2001 From: George Sapountzis Date: Sun, 28 Jan 2007 00:19:15 +0200 Subject: Clean pATI->Adapter and pATI->VGAAdapter. - cull (pATI->Adapter != ATI_ADAPTER_MACH64) - treat pATI->VGAAdapter as Bool --- src/atiprint.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/atiprint.c') diff --git a/src/atiprint.c b/src/atiprint.c index 1fc629d..243dcf5 100644 --- a/src/atiprint.c +++ b/src/atiprint.c @@ -28,7 +28,6 @@ #include #include "ati.h" -#include "atiadapter.h" #include "atichip.h" #include "atidac.h" #include "atimach64io.h" @@ -369,7 +368,7 @@ ATIPrintRegisters crtc = ATI_CRTC_VGA; - if (pATI->VGAAdapter != ATI_ADAPTER_NONE) + if (pATI->VGAAdapter) { xf86ErrorFVerb(4, "\n Miscellaneous output register value: 0x%02X.\n", genmo = inb(R_GENMO)); -- cgit v1.2.3