From 29612720709bef2f416b417b227afdab8c686563 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 5 Jul 2006 16:23:12 +1000 Subject: Add support for dumping i2c registers --- src/i830_driver.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/i830_driver.c b/src/i830_driver.c index 75e5b65f..1583d399 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -320,6 +320,8 @@ I830DumpModeDebugInfo(ScrnInfoPtr pScrn) CARD32 temp, planeA, planeB; planeA = INREG(DSPACNTR); planeB = INREG(DSPBCNTR); + int i; + #if 1 DR(ADPA); @@ -467,16 +469,14 @@ I830DumpModeDebugInfo(ScrnInfoPtr pScrn) DR(0x240c); -#if 0 - if (pI830->sdvo && pI830->sdvo->found) { - I830SDVOWriteCommand10(pI830->sdvo); - I830SDVOWriteCommand18(pI830->sdvo); - I830SDVOWriteCommand10(pI830->sdvo); - I830SDVOWriteCommand19(pI830->sdvo); - I830SDVOWriteCommand10(pI830->sdvo); + for (i=0; inum_outputs; i++) { + if (pI830->output[i].type == I830_OUTPUT_DVO && + pI830->output[i].i2c_drv != NULL) + { + pI830->output[i].i2c_drv->vid_rec->PrintRegs(pI830->output[i].i2c_drv->devpriv); + } } #endif -#endif } /* XXX Check if this is still needed. */ -- cgit v1.2.3