diff options
author | Eric Anholt <anholt@freebsd.org> | 2004-06-16 09:23:11 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2004-06-16 09:23:11 +0000 |
commit | 3c801e7a9267a9f3aae9ea8adaee9f27acd6e745 (patch) | |
tree | a37b4a647d530a1c5a4d58fc6755c7eb4264406d | |
parent | d31917c34e40d9d462bd355e44d77549a331ff1c (diff) |
DRI XFree86-4_3_99_12-merge importDRI-trunk-20040721DRI-trunk-20040613DRI-XFree86-4_3_99_12-merge
-rw-r--r-- | man/i128.man | 8 | ||||
-rw-r--r-- | src/IBMRGB.h | 2 | ||||
-rw-r--r-- | src/Ti302X.h | 2 | ||||
-rw-r--r-- | src/i128.h | 2 | ||||
-rw-r--r-- | src/i128IBMDAC.c | 10 | ||||
-rw-r--r-- | src/i128_driver.c | 423 | ||||
-rw-r--r-- | src/i128accel.c | 2 | ||||
-rw-r--r-- | src/i128dga.c | 2 | ||||
-rw-r--r-- | src/i128init.c | 6 | ||||
-rw-r--r-- | src/i128reg.h | 2 |
10 files changed, 210 insertions, 249 deletions
diff --git a/man/i128.man b/man/i128.man index c4a1f71..4ba8b9b 100644 --- a/man/i128.man +++ b/man/i128.man @@ -1,4 +1,4 @@ -.\" $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/i128.man,v 1.1 2001/01/24 00:06:19 dawes Exp $ +.\" $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/i128.man,v 1.2 2001/01/27 18:20:48 dawes Exp $ .\" shorthand for double quote that works everywhere. .ds q \N'34' .TH I128 __drivermansuffix__ __vendorversion__ @@ -14,7 +14,7 @@ i128 \- Number 9 I128 video driver .fi .SH DESCRIPTION .B i128 -is an __xservername__ driver for Number 9 I128 video cards. The driver is +is an XFree86 driver for Number 9 I128 video cards. The driver is accelerated and provides support for all versions of the I128 chip family, including the SGI flatpanel configuration. Multi-head configurations are supported. @@ -34,7 +34,7 @@ Ticket 2 Ride .B I128-T2R4 Ticket 2 Ride IV .SH CONFIGURATION DETAILS -Please refer to __xconfigfile__(__filemansuffix__) for general configuration +Please refer to XF86Config(__filemansuffix__) for general configuration details. This section only covers configuration details specific to this driver. .PP @@ -65,6 +65,6 @@ Default: false. This turns on verbose debug information from the driver. Default: off. .SH "SEE ALSO" -__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__), xorgconfig(__appmansuffix__), Xserver(__appmansuffix__), X(__miscmansuffix__) +XFree86(1), XF86Config(__filemansuffix__), xf86config(1), Xserver(1), X(__miscmansuffix__) .SH AUTHORS Authors include: Robin Cutshaw (driver), Galen Brooks (flatpanel support). diff --git a/src/IBMRGB.h b/src/IBMRGB.h index 1eecbcb..9a36565 100644 --- a/src/IBMRGB.h +++ b/src/IBMRGB.h @@ -1,4 +1,4 @@ -/* $XFree86: $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/IBMRGB.h,v 1.1 2000/10/04 23:34:58 robin Exp $ */ diff --git a/src/Ti302X.h b/src/Ti302X.h index a03aa19..a03835a 100644 --- a/src/Ti302X.h +++ b/src/Ti302X.h @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/Ti302X.h,v 1.1 2000/10/04 23:34:58 robin Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/Ti302X.h,v 1.2 2001/03/03 22:26:11 tsi Exp $ */ /* * Copyright 1994-2000 by Robin Cutshaw <robin@XFree86.Org> * @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/i128.h,v 1.5 2001/04/01 14:00:11 tsi Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/i128.h,v 1.6 2001/05/04 19:05:39 dawes Exp $ */ /* * Number Nine I128 functions * diff --git a/src/i128IBMDAC.c b/src/i128IBMDAC.c index f47ae0f..385bb76 100644 --- a/src/i128IBMDAC.c +++ b/src/i128IBMDAC.c @@ -21,7 +21,7 @@ * */ -/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/i128IBMDAC.c,v 1.3tsi Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/i128IBMDAC.c,v 1.2 2000/10/25 22:53:33 robin Exp $ */ #include "xf86.h" #include "xf86_ansic.h" @@ -322,7 +322,7 @@ I128ProgramIBMRGB(ScrnInfoPtr pScrn, DisplayModePtr mode) I128Ptr pI128 = I128PTR(pScrn); unsigned char tmp2, m, n, df, best_m, best_n, best_df, max_n; CARD32 tmpl, tmph, tmpc; - long f, vrf, outf, best_diff, best_outf = 0, diff; + long f, vrf, outf, best_vrf, best_diff, best_outf, diff; long requested_freq; int freq = mode->SynthClock; int flags = mode->Flags; @@ -350,6 +350,7 @@ I128ProgramIBMRGB(ScrnInfoPtr pScrn, DisplayModePtr mode) requested_freq = freq * 1000; best_m = best_n = best_df = 0; + best_vrf = best_outf = 0; best_diff = requested_freq; /* worst case */ for (df=0; df<4; df++) { @@ -531,7 +532,7 @@ I128ProgramSilverHammer(ScrnInfoPtr pScrn, DisplayModePtr mode) I128Ptr pI128 = I128PTR(pScrn); unsigned char tmp2, m, n, df, best_m, best_n, best_df, max_n; CARD32 tmpl, tmph, tmpc; - long f, vrf, outf, best_diff, best_outf = 0, diff; + long f, vrf, outf, best_vrf, best_diff, best_outf, diff; long requested_freq; int freq = mode->SynthClock; int flags = mode->Flags; @@ -561,6 +562,7 @@ I128ProgramSilverHammer(ScrnInfoPtr pScrn, DisplayModePtr mode) requested_freq = freq * 1000; best_m = best_n = best_df = 0; + best_vrf = best_outf = 0; best_diff = requested_freq; /* worst case */ for (df=0; df<4; df++) { @@ -730,3 +732,5 @@ I128ProgramSilverHammer(ScrnInfoPtr pScrn, DisplayModePtr mode) return(TRUE); } + + diff --git a/src/i128_driver.c b/src/i128_driver.c index adc9b92..417261d 100644 --- a/src/i128_driver.c +++ b/src/i128_driver.c @@ -22,7 +22,7 @@ * */ -/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/i128_driver.c,v 1.34tsi Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/i128_driver.c,v 1.30 2003/08/23 15:02:57 dawes Exp $ */ /* All drivers should typically include these */ @@ -84,8 +84,8 @@ static Bool I128SaveScreen(ScreenPtr pScreen, int mode); /* Optional functions */ static void I128FreeScreen(int scrnIndex, int flags); -static ModeStatus I128ValidMode(int scrnIndex, DisplayModePtr mode, - Bool verbose, int flags); +static int I128ValidMode(int scrnIndex, DisplayModePtr mode, Bool verbose, + int flags); static void I128DisplayPowerManagementSet(ScrnInfoPtr pScrn, int PowerManagementMode, int flags); @@ -141,7 +141,7 @@ static XF86ModuleVersionInfo i128VersRec = MODULEVENDORSTRING, MODINFOSTRING1, MODINFOSTRING2, - XORG_VERSION_CURRENT, + XF86_VERSION_CURRENT, I128_MAJOR_VERSION, I128_MINOR_VERSION, I128_PATCHLEVEL, ABI_CLASS_VIDEODRV, /* This is a video driver */ ABI_VIDEODRV_VERSION, @@ -521,6 +521,7 @@ I128PreInit(ScrnInfoPtr pScrn, int flags) I128Ptr pI128; vgaHWPtr hwp; int i; + int bytesPerPixel; ClockRangePtr clockRanges; MessageType from; IOADDRESS iobase; @@ -628,6 +629,8 @@ I128PreInit(ScrnInfoPtr pScrn, int flags) } } + bytesPerPixel = pScrn->bitsPerPixel / 8; + /* We use a programmable clock */ pScrn->progClock = TRUE; @@ -1737,7 +1740,7 @@ I128FreeScreen(int scrnIndex, int flags) /* Checks if a mode is suitable for the selected chipset. */ /* Optional */ -static ModeStatus +static int I128ValidMode(int scrnIndex, DisplayModePtr mode, Bool verbose, int flags) { int lace; @@ -1786,15 +1789,20 @@ I128SaveScreen(ScreenPtr pScreen, int mode) } +static const int DDC_SDA_IN_SHIFT = 1; +static const int DDC_SDA_OUT_SHIFT = 2; +static const int DDC_SCL_IN_SHIFT = 3; +static const int DDC_SCL_OUT_SHIFT = 0; + static const int DDC_SDA_IN_MASK = 1 << 1; static const int DDC_SDA_OUT_MASK = 1 << 2; static const int DDC_SCL_IN_MASK = 1 << 3; static const int DDC_SCL_OUT_MASK = 1 << 0; +static const int DDC_MODE_SHIFT = 8; static const int DDC_MODE_MASK = 3 << 8; -#if 0 +static const int DDC_MODE_DIS = 0; static const int DDC_MODE_DDC1 = 1 << 8; -#endif static const int DDC_MODE_DDC2 = 2 << 8; #if 0 @@ -1941,8 +1949,7 @@ I128getDDC(ScrnInfoPtr pScrn) /* Read and output monitor info using DDC2 over I2C bus */ if (pI128->I2C) { MonInfo = xf86DoEDID_DDC2(pScrn->scrnIndex, pI128->I2C); - xf86DrvMsg(pScrn->scrnIndex, X_INFO, "I2C Monitor info: %p\n", - (void *)MonInfo); + xf86DrvMsg(pScrn->scrnIndex, X_INFO, "I2C Monitor info: %p\n", MonInfo); xf86PrintEDID(MonInfo); xf86DrvMsg(pScrn->scrnIndex, X_INFO, "end of I2C Monitor info\n"); } @@ -1950,8 +1957,7 @@ I128getDDC(ScrnInfoPtr pScrn) /* Read and output monitor info using DDC1 */ if (pI128->ddc1Read) { MonInfo = xf86DoEDID_DDC1(pScrn->scrnIndex, NULL, pI128->ddc1Read ) ; - xf86DrvMsg(pScrn->scrnIndex, X_INFO, "DDC Monitor info: %p\n", - (void *)MonInfo); + xf86DrvMsg(pScrn->scrnIndex, X_INFO, "DDC Monitor info: %p\n", MonInfo); xf86PrintEDID(MonInfo); xf86DrvMsg(pScrn->scrnIndex, X_INFO, "end of DDC Monitor info\n"); } @@ -2013,29 +2019,29 @@ I128DumpBaseRegisters(ScrnInfoPtr pScrn) xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " PCI Registers\n"); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " MW0_AD 0x%08lx addr 0x%08lx %spre-fetchable\n", + " MW0_AD 0x%08x addr 0x%08x %spre-fetchable\n", pI128->PciInfo->memBase[0], pI128->PciInfo->memBase[0] & 0xFFC00000, pI128->PciInfo->memBase[0] & 0x8 ? "" : "not-"); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " MW1_AD 0x%08lx addr 0x%08lx %spre-fetchable\n", + " MW1_AD 0x%08x addr 0x%08x %spre-fetchable\n", pI128->PciInfo->memBase[1], pI128->PciInfo->memBase[1] & 0xFFC00000, pI128->PciInfo->memBase[1] & 0x8 ? "" : "not-"); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " XYW_AD(A) 0x%08lx addr 0x%08lx\n", + " XYW_AD(A) 0x%08x addr 0x%08x\n", pI128->PciInfo->memBase[2], pI128->PciInfo->memBase[2] & 0xFFC00000); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " XYW_AD(B) 0x%08lx addr 0x%08lx\n", + " XYW_AD(B) 0x%08x addr 0x%08x\n", pI128->PciInfo->memBase[3], pI128->PciInfo->memBase[3] & 0xFFC00000); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " RBASE_G 0x%08lx addr 0x%08lx\n", + " RBASE_G 0x%08x addr 0x%08x\n", pI128->PciInfo->memBase[4], pI128->PciInfo->memBase[4] & 0xFFFF0000); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " IO 0x%08lx addr 0x%08lx\n", + " IO 0x%08x addr 0x%08x\n", pI128->PciInfo->ioBase[5], pI128->PciInfo->ioBase[5] & 0xFFFFFF00); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, @@ -2047,7 +2053,7 @@ I128DumpBaseRegisters(ScrnInfoPtr pScrn) pI128->PciInfo->subsysVendor, pI128->PciInfo->subsysVendor & 0xFFFFFF00); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " RBASE_E 0x%08lx addr 0x%08lx %sdecode-enabled\n\n", + " RBASE_E 0x%08x addr 0x%08x %sdecode-enabled\n\n", pI128->PciInfo->biosBase, pI128->PciInfo->biosBase & 0xFFFF8000, pI128->PciInfo->biosBase & 0x1 ? "" : "not-"); @@ -2060,39 +2066,39 @@ I128DumpBaseRegisters(ScrnInfoPtr pScrn) xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " IO Mapped Registers\n"); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " RBASE_G 0x%08lx addr 0x%08lx\n", - (unsigned long)pI128->io.rbase_g, pI128->io.rbase_g & 0xFFFFFF00UL); + " RBASE_G 0x%08x addr 0x%08x\n", + pI128->io.rbase_g, pI128->io.rbase_g & 0xFFFFFF00); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " RBASE_W 0x%08lx addr 0x%08lx\n", - (unsigned long)pI128->io.rbase_w, pI128->io.rbase_w & 0xFFFFFF00UL); + " RBASE_W 0x%08x addr 0x%08x\n", + pI128->io.rbase_w, pI128->io.rbase_w & 0xFFFFFF00); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " RBASE_A 0x%08lx addr 0x%08lx\n", - (unsigned long)pI128->io.rbase_a, pI128->io.rbase_a & 0xFFFFFF00UL); + " RBASE_A 0x%08x addr 0x%08x\n", + pI128->io.rbase_a, pI128->io.rbase_a & 0xFFFFFF00); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " RBASE_B 0x%08lx addr 0x%08lx\n", - (unsigned long)pI128->io.rbase_b, pI128->io.rbase_b & 0xFFFFFF00UL); + " RBASE_B 0x%08x addr 0x%08x\n", + pI128->io.rbase_b, pI128->io.rbase_b & 0xFFFFFF00); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " RBASE_I 0x%08lx addr 0x%08lx\n", - (unsigned long)pI128->io.rbase_i, pI128->io.rbase_i & 0xFFFFFF00UL); + " RBASE_I 0x%08x addr 0x%08x\n", + pI128->io.rbase_i, pI128->io.rbase_i & 0xFFFFFF00); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " RBASE_E 0x%08lx addr 0x%08lx size 0x%lx\n\n", - (unsigned long)pI128->io.rbase_e, pI128->io.rbase_e & 0xFFFF8000UL, - pI128->io.rbase_e & 0x7UL); + " RBASE_E 0x%08x addr 0x%08x size 0x%x\n\n", + pI128->io.rbase_e, pI128->io.rbase_e & 0xFFFF8000, + pI128->io.rbase_e & 0x7); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " Miscellaneous IO Registers\n"); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " ID 0x%08lx\n", (unsigned long)pI128->io.id); + " ID 0x%08x\n", pI128->io.id); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " CONFIG1 0x%08lx\n", (unsigned long)pI128->io.config1); + " CONFIG1 0x%08x\n", pI128->io.config1); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " CONFIG2 0x%08lx\n", (unsigned long)pI128->io.config2); + " CONFIG2 0x%08x\n", pI128->io.config2); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " SGRAM 0x%08lx\n", (unsigned long)pI128->io.sgram); + " SGRAM 0x%08x\n", pI128->io.sgram); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " SOFT_SW 0x%08lx\n", (unsigned long)pI128->io.soft_sw); + " SOFT_SW 0x%08x\n", pI128->io.soft_sw); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " VGA_CTL 0x%08lx\n", (unsigned long)pI128->io.vga_ctl); + " VGA_CTL 0x%08x\n", pI128->io.vga_ctl); } @@ -2125,243 +2131,194 @@ I128DumpActiveRegisters(ScrnInfoPtr pScrn) vga_ctl = inl(iobase + 0x30); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "IO Mapped Registers\n"); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " RBASE_G 0x%08lx addr 0x%08lx\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " RBASE_G 0x%08x addr 0x%08x\n", rbase_g, rbase_g & 0xFFFFFF00); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " RBASE_W 0x%08lx addr 0x%08lx\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " RBASE_W 0x%08x addr 0x%08x\n", rbase_w, rbase_w & 0xFFFFFF00); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " RBASE_A 0x%08lx addr 0x%08lx\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " RBASE_A 0x%08x addr 0x%08x\n", rbase_a, rbase_a & 0xFFFFFF00); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " RBASE_B 0x%08lx addr 0x%08lx\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " RBASE_B 0x%08x addr 0x%08x\n", rbase_b, rbase_b & 0xFFFFFF00); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " RBASE_I 0x%08lx addr 0x%08lx\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " RBASE_I 0x%08x addr 0x%08x\n", rbase_i, rbase_i & 0xFFFFFF00); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, - " RBASE_E 0x%08lx addr 0x%08lx size 0x%lx\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " RBASE_E 0x%08x addr 0x%08x size 0x%x\n", rbase_e, rbase_e & 0xFFFF8000, rbase_e & 0x7); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "Miscellaneous IO Registers\n"); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " ID 0x%08lx\n", id); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " REV %ld HBT %ld BASE0 %ld VDEN %ld VB %ld BASE1 %ld BASE2 %ld DS %ld\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " ID 0x%08x\n", id); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " REV %d HBT %d BASE0 %d VDEN %d VB %d BASE1 %d BASE2 %d DS %d\n", id&7, (id>>3)&3, (id>>6)&3, (id>>8)&3, (id>>10)&1, (id>>11)&3, (id>>13)&3, (id>>15)&1); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DDEN %ld DB %ld BASE3 %ld BASER %ld MDEN %ld TR %ld VS %ld\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DDEN %d DB %d BASE3 %d BASER %d MDEN %d TR %d VS %d\n", (id>>16)&3, (id>>18)&1, (id>>19)&3, (id>>21)&7, (id>>24)&3, (id>>26)&1, (id>>27)&1); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CLASS %ld EE %ld\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CLASS %d EE %d\n", (id>>28)&3, (id>>30)&1); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CONFIG1 0x%08lx\n", config1); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " VE %ld SFT_RST %ld ONE28 %ld VS %ld\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CONFIG1 0x%08x\n", config1); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " VE %d SFT_RST %d ONE28 %d VS %d\n", config1&1, (config1>>1)&1, (config1>>2)&1, (config1>>3)&1); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " G %ld W %ld A %ld B %ld I %ld E %ld W0 %ld W1 %ld XA %ld XB %ld\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " G %d W %d A %d B %d I %d E %d W0 %d W1 %d XA %d XB %d\n", (config1>>8)&1, (config1>>9)&1, (config1>>10)&1, (config1>>11)&1, (config1>>12)&1, (config1>>13)&1, (config1>>16)&1, (config1>>17)&1, (config1>>20)&1, (config1>>21)&1); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " HBPRI %ld VBPRI %ld DE1PRI %ld ISAPRI %ld\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " HBPRI %d VBPRI %d DE1PRI %d ISAPRI %d\n", (config1>>24)&3, (config1>>26)&3, (config1>>28)&3, (config1>>30)&3); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CONFIG2 0x%08lx\n", config2); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DWT %lx EWS %lx DWS %lx MC %lx FBB %ld IOB %ld FST %ld CNT %ld DEC %ld\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CONFIG2 0x%08x\n", config2); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DWT %x EWS %x DWS %x MC %x FBB %d IOB %d FST %d CNT %d DEC %d\n", config2&0x3, (config2>>8)&0xF, (config2>>16)&0x7, (config2>>20)&0xF, (config2>>24)&1, (config2>>25)&1, (config2>>26)&1, (config2>>27)&1, (config2>>28)&1); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " PRE %ld RVD %ld SDAC %ld\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " PRE %d RVD %d SDAC %d\n", (config2>>29)&1, (config2>>30)&1, (config2>>31)&1); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " SGRAM 0x%08lx\n", sgram); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " SOFT_SW 0x%08lx\n", soft_sw); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DDC 0x%08lx\n", ddc); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " VGA_CTL 0x%08lx\n", vga_ctl); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MEMMUX %ld VGADEC %ld VIDMUX %ld ENA %ld BUFSEL %ld STR %ld\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " SGRAM 0x%08x\n", sgram); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " SOFT_SW 0x%08x\n", soft_sw); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DDC 0x%08x\n", ddc); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " VGA_CTL 0x%08x\n", vga_ctl); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MEMMUX %d VGADEC %d VIDMUX %d ENA %d BUFSEL %d STR %d\n", vga_ctl&1, (vga_ctl>>1)&1, (vga_ctl>>2)&1, (vga_ctl>>3)&1, (vga_ctl>>4)&1, (vga_ctl>>5)&1); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " 3C2 %ld DACDEC %ld MSK 0x%02lx\n", + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " 3C2 %d DACDEC %d MSK 0x%02x\n", (vga_ctl>>6)&1, (vga_ctl>>7)&1, (vga_ctl>>8)&0xff); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "CRT Registers\n"); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " INT_VCNT 0x%08lx (%ld)\n", - vrbg[0x20/4]&0x000000FFUL, vrbg[0x20/4]&0x000000FFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " INT_HCNT 0x%08lx (%ld)\n", - vrbg[0x24/4]&0x00000FFFUL, vrbg[0x24/4]&0x00000FFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DB_ADR 0x%08lx (%ld)\n", - vrbg[0x28/4]&0x01FFFFF0UL, vrbg[0x28/4]&0x01FFFFF0UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DB_PTCH 0x%08lx (%ld)\n", - vrbg[0x2C/4]&0x0000FFF0UL, vrbg[0x2C/4]&0x0000FFF0UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_HAC 0x%08lx (%ld)\n", - vrbg[0x30/4]&0x00003FFFUL, vrbg[0x30/4]&0x00003FFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_HBL 0x%08lx (%ld)\n", - vrbg[0x34/4]&0x00003FFFUL, vrbg[0x34/4]&0x00003FFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_HFP 0x%08lx (%ld)\n", - vrbg[0x38/4]&0x00003FFFUL, vrbg[0x38/4]&0x00003FFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_HS 0x%08lx (%ld)\n", - vrbg[0x3C/4]&0x00003FFFUL, vrbg[0x3C/4]&0x00003FFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_VAC 0x%08lx (%ld)\n", - vrbg[0x40/4]&0x00000FFFUL, vrbg[0x40/4]&0x00000FFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_VBL 0x%08lx (%ld)\n", - vrbg[0x44/4]&0x00000FFFUL, vrbg[0x44/4]&0x00000FFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_VFP 0x%08lx (%ld)\n", - vrbg[0x48/4]&0x00000FFFUL, vrbg[0x48/4]&0x00000FFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_VS 0x%08lx (%ld)\n", - vrbg[0x4C/4]&0x00000FFFUL, vrbg[0x4C/4]&0x00000FFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_LCNT 0x%08lx\n", - vrbg[0x50/4]&0x00000FFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_ZOOM 0x%08lx\n", - vrbg[0x54/4]&0x0000000FUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_1CON 0x%08lx PH %ld PV %ld CS %ld INL %ld H/VSE %ld/%ld VE %ld BTS %ld\n", - (unsigned long)vrbg[0x58/4], - vrbg[0x58/4]&1UL, (vrbg[0x58/4]>>1)&1UL, (vrbg[0x58/4]>>2)&1UL, - (vrbg[0x58/4]>>3)&1UL, (vrbg[0x58/4]>>4)&1UL, (vrbg[0x58/4]>>5)&1UL, - (vrbg[0x58/4]>>6)&1UL, (vrbg[0x58/4]>>8)&1UL); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " INT_VCNT 0x%08x (%d)\n", + vrbg[0x20/4]&0xFF, vrbg[0x20/4]&0xFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " INT_HCNT 0x%08x (%d)\n", + vrbg[0x24/4]&0xFFF, vrbg[0x24/4]&0xFFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DB_ADR 0x%08x (%d)\n", + vrbg[0x28/4]&0x01FFFFF0, vrbg[0x28/4]&0x01FFFFF0); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DB_PTCH 0x%08x (%d)\n", + vrbg[0x2C/4]&0xFFF0, vrbg[0x2C/4]&0xFFF0); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_HAC 0x%08x (%d)\n", + vrbg[0x30/4]&0x3FFF, vrbg[0x30/4]&0x3FFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_HBL 0x%08x (%d)\n", + vrbg[0x34/4]&0x3FFF, vrbg[0x34/4]&0x3FFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_HFP 0x%08x (%d)\n", + vrbg[0x38/4]&0x3FFF, vrbg[0x38/4]&0x3FFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_HS 0x%08x (%d)\n", + vrbg[0x3C/4]&0x3FFF, vrbg[0x3C/4]&0x3FFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_VAC 0x%08x (%d)\n", + vrbg[0x40/4]&0xFFF, vrbg[0x40/4]&0xFFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_VBL 0x%08x (%d)\n", + vrbg[0x44/4]&0xFFF, vrbg[0x44/4]&0xFFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_VFP 0x%08x (%d)\n", + vrbg[0x48/4]&0xFFF, vrbg[0x48/4]&0xFFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_VS 0x%08x (%d)\n", + vrbg[0x4C/4]&0xFFF, vrbg[0x4C/4]&0xFFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_LCNT 0x%08x\n", vrbg[0x50/4]&0x0FFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_ZOOM 0x%08x\n", vrbg[0x54/4]&0xF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_1CON 0x%08x PH %d PV %d CS %d INL %d H/VSE %d/%d VE %d BTS %d\n", + vrbg[0x58/4], + vrbg[0x58/4]&1, (vrbg[0x58/4]>>1)&1, (vrbg[0x58/4]>>2)&1, + (vrbg[0x58/4]>>3)&1, (vrbg[0x58/4]>>4)&1, (vrbg[0x58/4]>>5)&1, + (vrbg[0x58/4]>>6)&1, (vrbg[0x58/4]>>8)&1); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_2CON 0x%08lx MEM %ld RFR %ld TRD %ld SPL %ld\n", - (unsigned long)vrbg[0x5C/4], - vrbg[0x5C/4]&7UL, (vrbg[0x5C/4]>>8)&1UL, - (vrbg[0x5C/4]>>16)&7UL, (vrbg[0x5C/4]>>24)&1UL); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CRT_2CON 0x%08x MEM %d RFR %d TRD %d SPL %d\n", + vrbg[0x5C/4], + vrbg[0x5C/4]&7, (vrbg[0x5C/4]>>8)&1, + (vrbg[0x5C/4]>>16)&7, (vrbg[0x5C/4]>>24)&1); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "Memory Windows Registers\n"); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW0_CTRL 0x%08lx\n", - (unsigned long)vrbw[0x00]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " AMV %ld MP %ld AMD %ld SEN %ld BSY %ld MDM %ld DEN %ld PSZ %ld\n", - (vrbw[0x00]>>1)&1UL, (vrbw[0x00]>>2)&1UL, (vrbw[0x00]>>3)&1UL, - (vrbw[0x00]>>4)&3UL, (vrbw[0x00]>>8)&1UL, (vrbw[0x00]>>21)&3UL, - (vrbw[0x00]>>24)&3UL, (vrbw[0x00]>>26)&3UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "M/V/DSE %ld/%ld/%ld\n", - (vrbw[0x00]>>28)&1UL, (vrbw[0x00]>>29)&1UL, (vrbw[0x00]>>30)&1UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW0_AD 0x%08lx MW0_SZ 0x%08lx MW0_PGE 0x%08lx\n", - vrbw[0x04/4]&0xFFFFF000UL, vrbw[0x08/4]&0x0000000FUL, - vrbw[0x0C/4]&0x000F001FUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW0_ORG10 0x%08lx MW0_ORG14 0x%08lx MW0_MSRC 0x%08lx\n", - vrbw[0x10/4]&0x01FFF000UL, vrbw[0x14/4]&0x01FFF000UL, - vrbw[0x18/4]&0x00FFFF00UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW0_WKEY 0x%08lx MW0_KYDAT 0x%08lx MW0_MASK 0x%08lx\n", - (unsigned long)vrbw[0x1C/4], vrbw[0x20/4]&0x000F000FUL, - (unsigned long)vrbw[0x24/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW1_CTRL 0x%08lx\n", - (unsigned long)vrbw[0x28/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " AMV %ld MP %ld AMD %ld SEN %ld BSY %ld MDM %ld DEN %ld PSZ %ld\n", - (vrbw[0x28/4]>>1)&1UL, (vrbw[0x28/4]>>2)&1UL, (vrbw[0x28/4]>>3)&1UL, - (vrbw[0x28/4]>>4)&3UL, (vrbw[0x28/4]>>8)&1UL, (vrbw[0x28/4]>>21)&3UL, - (vrbw[0x28/4]>>24)&3UL, (vrbw[0x28/4]>>26)&3UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "M/V/DSE %ld/%ld/%ld\n", - (vrbw[0x28/4]>>28)&1UL, (vrbw[0x28/4]>>29)&1UL, (vrbw[0x28/4]>>30)&1UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW1_AD 0x%08lx MW1_SZ 0x%08lx MW1_PGE 0x%08lx\n", - vrbw[0x2C/4]&0xFFFFF000UL, vrbw[0x30/4]&0x0000000FUL, - vrbw[0x34/4]&0x000F001FUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW1_ORG10 0x%08lx MW1_ORG14 0x%08lx MW1_MSRC 0x%08lx\n", - vrbw[0x38/4]&0x01FFF000UL, vrbw[0x3c/4]&0x01FFF000UL, - vrbw[0x40/4]&0x00FFFF00UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW1_WKEY 0x%08lx MW1_KYDAT 0x%08lx MW1_MASK 0x%08lx\n", - (unsigned long)vrbw[0x44/4], vrbw[0x48/4]&0x000F000FUL, - (unsigned long)vrbw[0x4C/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW0_CTRL 0x%08x\n", vrbw[0x00]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " AMV %d MP %d AMD %d SEN %d BSY %d MDM %d DEN %d PSZ %d\n", + (vrbw[0x00]>>1)&1, (vrbw[0x00]>>2)&1, (vrbw[0x00]>>3)&1, + (vrbw[0x00]>>4)&3, (vrbw[0x00]>>8)&1, (vrbw[0x00]>>21)&3, + (vrbw[0x00]>>24)&3, (vrbw[0x00]>>26)&3); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "M/V/DSE %d/%d/%d\n", + (vrbw[0x00]>>28)&1, (vrbw[0x00]>>29)&1, (vrbw[0x00]>>30)&1); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW0_AD 0x%08x MW0_SZ 0x%08x MW0_PGE 0x%08x\n", + vrbw[0x04/4]&0xFFFFF000, vrbw[0x08/4]&0x0000000F, + vrbw[0x0C/4]&0x000F001F); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW0_ORG10 0x%08x MW0_ORG14 0x%08x MW0_MSRC 0x%08x\n", + vrbw[0x10/4]&0x01FFF000, vrbw[0x14/4]&0x01FFF000, + vrbw[0x18/4]&0x00FFFF00); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW0_WKEY 0x%08x MW0_KYDAT 0x%08x MW0_MASK 0x%08x\n", + vrbw[0x1C/4], vrbw[0x20/4]&0x000F000F, vrbw[0x24/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW1_CTRL 0x%08x\n", vrbw[0x28/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " AMV %d MP %d AMD %d SEN %d BSY %d MDM %d DEN %d PSZ %d\n", + (vrbw[0x28/4]>>1)&1, (vrbw[0x28/4]>>2)&1, (vrbw[0x28/4]>>3)&1, + (vrbw[0x28/4]>>4)&3, (vrbw[0x28/4]>>8)&1, (vrbw[0x28/4]>>21)&3, + (vrbw[0x28/4]>>24)&3, (vrbw[0x28/4]>>26)&3); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "M/V/DSE %d/%d/%d\n", + (vrbw[0x28/4]>>28)&1, (vrbw[0x28/4]>>29)&1, (vrbw[0x28/4]>>30)&1); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW1_AD 0x%08x MW1_SZ 0x%08x MW1_PGE 0x%08x\n", + vrbw[0x2C/4]&0xFFFFF000, vrbw[0x30/4]&0x0000000F, + vrbw[0x34/4]&0x000F001F); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW1_ORG10 0x%08x MW1_ORG14 0x%08x MW1_MSRC 0x%08x\n", + vrbw[0x38/4]&0x01FFF000, vrbw[0x3c/4]&0x01FFF000, + vrbw[0x40/4]&0x00FFFF00); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MW1_WKEY 0x%08x MW1_KYDAT 0x%08x MW1_MASK 0x%08x\n", + vrbw[0x44/4], vrbw[0x48/4]&0x000F000F, vrbw[0x4C/4]); xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "Engine A Registers\n"); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " INTP 0x%08lx\n", - vrba[0x00/4]&0x03UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " INTM 0x%08lx\n", - vrba[0x04/4]&0x03UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " FLOW 0x%08lx\n", - vrba[0x08/4]&0x0FUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " BUSY 0x%08lx\n", - vrba[0x0C/4]&0x01UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XYW_AD 0x%08lx SIZE 0x%lx ADDR 0x%lx\n", - vrba[0x10/4]&0xFFFFFF00UL, (vrba[0x10/4]>>8)&0x0000000FUL, - vrba[0x10/4]&0xFFFFF000UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " ZCTL 0x%08lx\n", - (unsigned long)vrba[0x18/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " BUF_CTRL 0x%08lx\n", - (unsigned long)vrba[0x20/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " AMV %ld MP %ld AMD %ld SEN %ld DEN %ld DSE %ld VSE %ld MSE %ld\n", - (vrba[0x20/4]>>1)&1UL, (vrba[0x20/4]>>2)&1UL, (vrba[0x20/4]>>3)&1UL, - (vrba[0x20/4]>>8)&3UL, (vrba[0x20/4]>>10)&3UL, (vrba[0x20/4]>>12)&1UL, - (vrba[0x20/4]>>13)&1UL, (vrba[0x20/4]>>14)&1UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " PS %ld MDM %ld PSIZE %ld CRCO %ld\n", - (vrba[0x20/4]>>16)&0x1FUL, - (vrba[0x20/4]>>21)&3UL, (vrba[0x20/4]>>24)&3UL, (vrba[0x20/4]>>30)&3UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_PGE 0x%08lx DVPGE 0x%lx MPGE 0x%lx\n", - vrba[0x24/4]&0x000F001FUL, (vrba[0x24/4]>>8)&0x01FUL, - (vrba[0x24/4]&0x000F0000UL)>>16); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_SORG 0x%08lx\n", - vrba[0x28/4]&0x0FFFFFFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_DORG 0x%08lx\n", - vrba[0x2C/4]&0x0FFFFFFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_MSRC 0x%08lx\n", - vrba[0x30/4]&0x03FFFFF0UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_WKEY 0x%08lx\n", - (unsigned long)vrba[0x38/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_ZPTCH 0x%08lx\n", - vrba[0x3C/4]&0x000FFFF0UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_SPTCH 0x%08lx\n", - vrba[0x40/4]&0x0000FFF0UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_DPTCH 0x%08lx\n", - vrba[0x44/4]&0x0000FFF0UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD 0x%08lx\n", - vrba[0x48/4]&0x7FFFFFFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " OPC 0x%02lx ROP 0x%02lx STYLE 0x%02lx CLP 0x%lx PATRN 0x%lx HDF %ld\n", - vrba[0x48/4]&0x00FFUL, (vrba[0x48/4]>>8)&0x00FFUL, (vrba[0x48/4]>>16)&0x001FUL, - (vrba[0x48/4]>>21)&7UL, (vrba[0x48/4]>>24)&0x0FUL, (vrba[0x48/4]>>28)&7UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD_SHADE 0x%02lx\n", - vrba[0x4C/4]&0x00FFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD_OPC 0x%02lx\n", - vrba[0x50/4]&0x00FFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD_ROP 0x%02lx\n", - vrba[0x54/4]&0x00FFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD_STYLE 0x%02lx\n", - vrba[0x58/4]&0x001FUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD_PATRN 0x%02lx\n", - vrba[0x5C/4]&0x000FUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD_CLP 0x%02lx\n", - vrba[0x60/4]&0x0007UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD_HDF 0x%02lx\n", - vrba[0x64/4]&0x0007UL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " FORE 0x%08lx\n", - (unsigned long)vrba[0x68/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " BACK 0x%08lx\n", - (unsigned long)vrba[0x6C/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MASK 0x%08lx\n", - (unsigned long)vrba[0x70/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " RMSK 0x%08lx\n", - (unsigned long)vrba[0x74/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " LPAT 0x%08lx\n", - (unsigned long)vrba[0x78/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " PCTRL 0x%08lx\n", - (unsigned long)vrba[0x7C/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " PLEN 0x%02ld PSCL 0x%02ld SPTR 0x%02ld SSCL 0x%lx STATE 0x%04lx\n", - vrba[0x7C/4]&0x1FUL, (vrba[0x7C/4]>>5)&7UL, (vrba[0x7C/4]>>8)&0x1FUL, - (vrba[0x7C/4]>>13)&7UL, (vrba[0x7C/4]>>16)&0xFFFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CLPTL 0x%08lx CLPTLY 0x%04lx CLPTLX 0x%04lx\n", - (unsigned long)vrba[0x80/4], vrba[0x80/4]&0x00FFFFUL, (vrba[0x80/4]>>16)&0x00FFFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CLPBR 0x%08lx CLPBRY 0x%04lx CLPBRX 0x%04lx\n", - (unsigned long)vrba[0x84/4], - vrba[0x84/4]&0x00FFFFUL, (vrba[0x84/4]>>16)&0x00FFFFUL); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY0 0x%08lx\n", - (unsigned long)vrba[0x88/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY1 0x%08lx\n", - (unsigned long)vrba[0x8C/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY2 0x%08lx\n", - (unsigned long)vrba[0x90/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY3 0x%08lx\n", - (unsigned long)vrba[0x94/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY4 0x%08lx\n", - (unsigned long)vrba[0x98/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY5 0x%08lx\n", - (unsigned long)vrba[0x9C/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY6 0x%08lx\n", - (unsigned long)vrba[0xA0/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY7 0x%08lx\n", - (unsigned long)vrba[0xA4/4]); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY8 0x%08lx\n", - (unsigned long)vrba[0xA8/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " INTP 0x%08x\n", vrba[0x00/4]&0x03); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " INTM 0x%08x\n", vrba[0x04/4]&0x03); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " FLOW 0x%08x\n", vrba[0x08/4]&0x0F); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " BUSY 0x%08x\n", vrba[0x0C/4]&0x01); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XYW_AD 0x%08x SIZE 0x%x ADDR 0x%x\n", + vrba[0x10/4]&0xFFFFFF00, (vrba[0x10/4]>>8)&0x0F, + vrba[0x10/4]&0xFFFFF000); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " ZCTL 0x%08x\n", vrba[0x18/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " BUF_CTRL 0x%08x\n", vrba[0x20/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " AMV %d MP %d AMD %d SEN %d DEN %d DSE %d VSE %d MSE %d\n", + (vrba[0x20/4]>>1)&1, (vrba[0x20/4]>>2)&1, (vrba[0x20/4]>>3)&1, + (vrba[0x20/4]>>8)&3, (vrba[0x20/4]>>10)&3, (vrba[0x20/4]>>12)&1, + (vrba[0x20/4]>>13)&1, (vrba[0x20/4]>>14)&1); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " PS %d MDM %d PSIZE %d CRCO %d\n", + (vrba[0x20/4]>>16)&0x1F, + (vrba[0x20/4]>>21)&3, (vrba[0x20/4]>>24)&3, (vrba[0x20/4]>>30)&3); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_PGE 0x%08x DVPGE 0x%x MPGE 0x%x\n", + vrba[0x24/4]&0x000F001F, (vrba[0x24/4]>>8)&0x01F, + (vrba[0x24/4]&0x000F0000)>>16); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_SORG 0x%08x\n", vrba[0x28/4]&0x0FFFFFFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_DORG 0x%08x\n", vrba[0x2C/4]&0x0FFFFFFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_MSRC 0x%08x\n", vrba[0x30/4]&0x03FFFFF0); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_WKEY 0x%08x\n", vrba[0x38/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_ZPTCH 0x%08x\n", vrba[0x3C/4]&0x000FFFF0); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_SPTCH 0x%08x\n", vrba[0x40/4]&0x0000FFF0); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " DE_DPTCH 0x%08x\n", vrba[0x44/4]&0x0000FFF0); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD 0x%08x\n", vrba[0x48/4]&0x7FFFFFFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " OPC 0x%02x ROP 0x%02x STYLE 0x%02x CLP 0x%x PATRN 0x%x HDF %d\n", + vrba[0x48/4]&0xFF, (vrba[0x48/4]>>8)&0xFF, (vrba[0x48/4]>>16)&0x1F, + (vrba[0x48/4]>>21)&7, (vrba[0x48/4]>>24)&0xF, (vrba[0x48/4]>>28)&7); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD_SHADE 0x%02x\n", vrba[0x4C/4]&0xFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD_OPC 0x%02x\n", vrba[0x50/4]&0xFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD_ROP 0x%02x\n", vrba[0x54/4]&0xFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD_STYLE 0x%02x\n", vrba[0x58/4]&0x1F); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD_PATRN 0x%02x\n", vrba[0x5C/4]&0x0F); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD_CLP 0x%02x\n", vrba[0x60/4]&0x07); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CMD_HDF 0x%02x\n", vrba[0x64/4]&0x07); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " FORE 0x%08x\n", vrba[0x68/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " BACK 0x%08x\n", vrba[0x6C/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " MASK 0x%08x\n", vrba[0x70/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " RMSK 0x%08x\n", vrba[0x74/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " LPAT 0x%08x\n", vrba[0x78/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " PCTRL 0x%08x\n", vrba[0x7C/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " PLEN 0x%02d PSCL 0x%02d SPTR 0x%02d SSCL 0x%x STATE 0x%04x\n", + vrba[0x7C/4]&0x1F, (vrba[0x7C/4]>>5)&7, (vrba[0x7C/4]>>8)&0x1F, + (vrba[0x7C/4]>>13)&7, (vrba[0x7C/4]>>16)&0xFFFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CLPTL 0x%08x CLPTLY 0x%04x CLPTLX 0x%04x\n", + vrba[0x80/4], vrba[0x80/4]&0xFFFF, (vrba[0x80/4]>>16)&0xFFFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " CLPBR 0x%08x CLPBRY 0x%04x CLPBRX 0x%04x\n", + vrba[0x84/4], vrba[0x84/4]&0xFFFF, (vrba[0x84/4]>>16)&0xFFFF); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY0 0x%08x\n", vrba[0x88/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY1 0x%08x\n", vrba[0x8C/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY2 0x%08x\n", vrba[0x90/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY3 0x%08x\n", vrba[0x94/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY4 0x%08x\n", vrba[0x98/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY5 0x%08x\n", vrba[0x9C/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY6 0x%08x\n", vrba[0xA0/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY7 0x%08x\n", vrba[0xA4/4]); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, " XY8 0x%08x\n", vrba[0xA8/4]); if (pI128->RamdacType != TI3025_DAC) I128DumpIBMDACRegisters(pScrn, vrbg); } diff --git a/src/i128accel.c b/src/i128accel.c index 4f87a57..d1a3bb4 100644 --- a/src/i128accel.c +++ b/src/i128accel.c @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/i128accel.c,v 1.7 2000/12/06 01:07:34 robin Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/i128accel.c,v 1.8 2003/02/17 16:08:28 dawes Exp $ */ /* * Copyright 1997-2000 by Robin Cutshaw <robin@XFree86.Org> diff --git a/src/i128dga.c b/src/i128dga.c index 97f4a6b..3fb1132 100644 --- a/src/i128dga.c +++ b/src/i128dga.c @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/i128dga.c,v 1.3tsi Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/i128dga.c,v 1.4 2002/10/09 16:38:19 tsi Exp $ */ #include "xf86.h" #include "xf86_OSproc.h" diff --git a/src/i128init.c b/src/i128init.c index 56d06d9..125e66f 100644 --- a/src/i128init.c +++ b/src/i128init.c @@ -52,7 +52,7 @@ I128SaveState(ScrnInfoPtr pScrn) if (pI128->Debug) { unsigned long tmp1 = inl(iR->iobase + 0x1C); unsigned long tmp2 = inl(iR->iobase + 0x20); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "I128SaveState saving, config1/2 = 0x%lx/0x%lx\n", tmp1, tmp2); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "I128SaveState saving, config1/2 = 0x%x/0x%x\n", tmp1, tmp2); I128DumpActiveRegisters(pScrn); } @@ -276,7 +276,7 @@ I128RestoreState(ScrnInfoPtr pScrn) if (pI128->Debug) { unsigned long tmp1 = inl(iR->iobase + 0x1C); unsigned long tmp2 = inl(iR->iobase + 0x20); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "I128RestoreState restoring, config1/2 = 0x%lx/0x%lx\n", tmp1, tmp2); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "I128RestoreState restoring, config1/2 = 0x%x/0x%x\n", tmp1, tmp2); I128DumpActiveRegisters(pScrn); } @@ -338,7 +338,7 @@ I128RestoreState(ScrnInfoPtr pScrn) if (pI128->Debug) { unsigned long tmp1 = inl(iR->iobase + 0x1C); unsigned long tmp2 = inl(iR->iobase + 0x20); - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "I128RestoreState resetting config1/2 from 0x%lx/0x%lx to 0x%lx/0x%lx\n", tmp1, tmp2, (unsigned long)iR->config1, (unsigned long)iR->config2); + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "I128RestoreState resetting config1/2 from 0x%x/0x%x to 0x%x/0x%x\n", tmp1, tmp2, iR->config1, iR->config2); I128DumpActiveRegisters(pScrn); } diff --git a/src/i128reg.h b/src/i128reg.h index 4b29d4e..e96c24b 100644 --- a/src/i128reg.h +++ b/src/i128reg.h @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/i128reg.h,v 1.2 2000/10/23 14:11:39 robin Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i128/i128reg.h,v 1.3 2002/01/25 21:56:02 tsi Exp $ */ /* * Copyright 1994 by Robin Cutshaw <robin@XFree86.Org> * |