diff options
author | Luc Verhaegen <libv@skynet.be> | 2005-10-31 12:33:12 +0000 |
---|---|---|
committer | Luc Verhaegen <libv@skynet.be> | 2005-10-31 12:33:12 +0000 |
commit | 7cf9c45b8ad08bf2460403258ff6e1f136368572 (patch) | |
tree | c0d51212c779415559c5067be85ab355ec92c17d | |
parent | e6ee9ee394f28d9acad16dba800f7945acf2bf7d (diff) |
[devel-remove_ViaDoubleCheckVT3122Revision] Remove
ViaDoubleCheckVT3122Revision. This uncovered nothing in more than a
year, and was thus completely useless.
-rw-r--r-- | src/via_driver.c | 3 | ||||
-rw-r--r-- | src/via_id.c | 26 | ||||
-rw-r--r-- | src/via_id.h | 1 |
3 files changed, 0 insertions, 30 deletions
diff --git a/src/via_driver.c b/src/via_driver.c index c31e856..3c5e0c1 100644 --- a/src/via_driver.c +++ b/src/via_driver.c @@ -1237,9 +1237,6 @@ static Bool VIAPreInit(ScrnInfoPtr pScrn, int flags) pVia->I2CScan = FALSE; #endif /* HAVE_DEBUG */ - if (pVia->Chipset == VT3122) - ViaDoubleCheckVT3122Revision(pScrn); - xf86DrvMsg(pScrn->scrnIndex, from, "Chipset Rev.: %d\n", pVia->ChipRev); ViaCheckCardId(pScrn); diff --git a/src/via_id.c b/src/via_id.c index ee43e82..8ede5f0 100644 --- a/src/via_id.c +++ b/src/via_id.c @@ -161,32 +161,6 @@ static struct ViaCardIdStruct ViaCardId[] = { }; /* - * Fancy little routine stolen from fb - * We don't do anything but warn really. - */ -void -ViaDoubleCheckVT3122Revision(ScrnInfoPtr pScrn) -{ - vgaHWPtr hwp = VGAHWPTR(pScrn); - VIAPtr pVia = VIAPTR(pScrn); - /* Crtc 0x4F is only defined in VT3122Cx */ - CARD8 tmp = hwp->readCrtc(hwp, 0x4F); - - hwp->writeCrtc(hwp, 0x4F, 0x55); - - if (hwp->readCrtc(hwp, 0x4F) == 0x55) { - if (VT3122_REV_IS_AX(pVia->ChipRev)) - xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "VT3122 Revision seems" - " to be Cx, yet %d was detected previously.\n", pVia->ChipRev); - } else { - if (VT3122_REV_IS_CX(pVia->ChipRev)) - xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "VT3122 Revision seems" - " to be Ax, yet %d was detected previously.\n", pVia->ChipRev); - } - hwp->writeCrtc(hwp, 0x4F, tmp); -} - -/* * */ void diff --git a/src/via_id.h b/src/via_id.h index 0356c0a..1680f66 100644 --- a/src/via_id.h +++ b/src/via_id.h @@ -88,7 +88,6 @@ struct ViaCardIdStruct { CARD8 Outputs; /* ORed list of VIA_DEVICE_CRT, VIA_DEVICE_LCD, VIA_DEVICE_TV */ }; -void ViaDoubleCheckVT3122Revision(ScrnInfoPtr pScrn); void ViaCheckCardId(ScrnInfoPtr pScrn); #endif /* _VIA_ID_H_ */ |