diff options
author | Jerome Glisse <glisse@freedesktop.org> | 2007-06-23 18:32:03 +0200 |
---|---|---|
committer | Jerome Glisse <glisse@freedesktop.org> | 2007-06-23 18:32:03 +0200 |
commit | 9f40535f75b3dfb08efb6121294377e758070e56 (patch) | |
tree | bb03f12fb53c4844a1078a44660a7d4eb97b877e /xorg | |
parent | 9decf97be5f1aa5ae2001160fcc726236b398104 (diff) |
avivo: increase driver verbosity.
Diffstat (limited to 'xorg')
-rw-r--r-- | xorg/avivo.c | 29 | ||||
-rw-r--r-- | xorg/avivo_output.c | 17 |
2 files changed, 33 insertions, 13 deletions
diff --git a/xorg/avivo.c b/xorg/avivo.c index f4dac5d..b73e8a7 100644 --- a/xorg/avivo.c +++ b/xorg/avivo.c @@ -388,8 +388,11 @@ avivo_preinit(ScrnInfoPtr screen_info, int flags) } #endif xf86DrvMsg(screen_info->scrnIndex, X_INFO, - "Control memory at %p, fb at %p\n", avivo->ctrl_addr, - avivo->fb_addr); + "Control memory at %p[size = %d, 0x%08X]\n", + avivo->ctrl_addr, avivo->ctrl_size, avivo->ctrl_size); + xf86DrvMsg(screen_info->scrnIndex, X_INFO, + "Frame buffer memory at %p[size = %d, 0x%08X]\n", + avivo->fb_addr, avivo->fb_size, avivo->fb_size); avivo_get_chipset(avivo); screen_info->chipset = "avivo"; @@ -451,12 +454,11 @@ avivo_preinit(ScrnInfoPtr screen_info, int flags) #ifdef WITH_VGAHW xf86LoadSubModule(screen_info, "vgahw"); - vgaHWGetHWRec (screen_info); vgaHWGetIOBase(VGAHWPTR(screen_info)); #endif - - xf86DrvMsg(screen_info->scrnIndex, X_INFO, "[ScreenPreInit OK]\n"); + xf86DrvMsg(screen_info->scrnIndex, X_INFO, + "pre-initialization successfull\n"); return TRUE; } @@ -532,7 +534,8 @@ avivo_screen_init(int index, ScreenPtr screen, int argc, char **argv) (avivo->fb_addr >> 16) & AVIVO_MC_MEMORY_MAP_BASE_MASK); OUTREG(AVIVO_VGA_FB_START, avivo->fb_addr); avivo_wait_idle(avivo); - + xf86DrvMsg(screen_info->scrnIndex, X_INFO, + "setup GPU memory mapping\n"); /* fb memory box */ #if 0 memset(&avivo->fb_memory_box, 0, sizeof(avivo->fb_memory_box)); @@ -546,13 +549,14 @@ avivo_screen_init(int index, ScreenPtr screen, int argc, char **argv) return FALSE; } #endif - + /* display width is the higher resolution from width & height */ if (screen_info->virtualX > screen_info->displayWidth) screen_info->displayWidth = screen_info->virtualX; - + /* display width * bpp need to be a multiple of 256 */ screen_info->displayWidth = ceil(screen_info->displayWidth * avivo->bpp / 256.0) * 256 / avivo->bpp; - + xf86DrvMsg(screen_info->scrnIndex, X_INFO, + "padded display width %d\n", screen_info->displayWidth); /* mi layer */ miClearVisualTypes(); if (!xf86SetDefaultVisual(screen_info, -1)) { @@ -571,9 +575,8 @@ avivo_screen_init(int index, ScreenPtr screen, int argc, char **argv) "Couldn't set pixmap depth\n"); return FALSE; } - ErrorF("scrninitparam: vx %d, vy %d, dw %d\n", - screen_info->virtualX, screen_info->virtualY, - screen_info->displayWidth); + ErrorF("VirtualX,Y %d, %d\n", + screen_info->virtualX, screen_info->virtualY); if (!fbScreenInit(screen, avivo->fb_base + screen_info->fbOffset, screen_info->virtualX, screen_info->virtualY, screen_info->xDpi, screen_info->yDpi, @@ -644,7 +647,7 @@ avivo_screen_init(int index, ScreenPtr screen, int argc, char **argv) return FALSE; } - xf86DrvMsg(screen_info->scrnIndex, X_INFO, "[ScreenInit OK]\n"); + xf86DrvMsg(screen_info->scrnIndex, X_INFO, "initialization successfull\n"); return TRUE; } diff --git a/xorg/avivo_output.c b/xorg/avivo_output.c index 6196d8c..fe9171a 100644 --- a/xorg/avivo_output.c +++ b/xorg/avivo_output.c @@ -63,6 +63,7 @@ avivo_i2c_put_bits(I2CBusPtr b, int Clock, int data) static void avivo_output_dpms(xf86OutputPtr output, int mode) { + ScrnInfoPtr screen_info = output->scrn; struct avivo_output_private *avivo_output = output->driver_private; struct avivo_info *avivo = avivo_get_info(output->scrn); int crtc = 0; @@ -85,6 +86,10 @@ avivo_output_dpms(xf86OutputPtr output, int mode) value1 = 0; value2 = 0; value3 = AVIVO_DAC_EN; + if (!avivo_output->output_offset) + xf86DrvMsg(screen_info->scrnIndex, X_INFO, "enable DAC1\n"); + else + xf86DrvMsg(screen_info->scrnIndex, X_INFO, "enable DAC2\n"); break; case DPMSModeStandby: case DPMSModeSuspend: @@ -92,6 +97,10 @@ avivo_output_dpms(xf86OutputPtr output, int mode) value1 = AVIVO_DAC_MYSTERY1_DIS; value2 = AVIVO_DAC_MYSTERY2_DIS; value3 = 0; + if (!avivo_output->output_offset) + xf86DrvMsg(screen_info->scrnIndex, X_INFO, "disable DAC1\n"); + else + xf86DrvMsg(screen_info->scrnIndex, X_INFO, "disable DAC2\n"); break; } if (output->crtc) { @@ -119,6 +128,10 @@ avivo_output_dpms(xf86OutputPtr output, int mode) if (avivo_output->number == 2) value4 |= 0x00000020; value5 |= AVIVO_TMDS_EN; + if (!avivo_output->output_offset) + xf86DrvMsg(screen_info->scrnIndex, X_INFO, "enable TMDS1\n"); + else + xf86DrvMsg(screen_info->scrnIndex, X_INFO, "enable TMDS2\n"); break; case DPMSModeStandby: case DPMSModeSuspend: @@ -126,6 +139,10 @@ avivo_output_dpms(xf86OutputPtr output, int mode) value1 = 0x04000000; value2 = 0; value4 = 0x00060000; + if (!avivo_output->output_offset) + xf86DrvMsg(screen_info->scrnIndex, X_INFO, "disable TMDS1\n"); + else + xf86DrvMsg(screen_info->scrnIndex, X_INFO, "disable TMDS2\n"); break; } if (output->crtc) { |