xserver: Branch 'master'

Alan Hourihane alanh at kemper.freedesktop.org
Wed Dec 13 14:18:32 EET 2006


 hw/xfree86/int10/generic.c                |    2 +-
 hw/xfree86/os-support/linux/int10/linux.c |    3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

New commits:
diff-tree b88ad820fac81d0dfd557a384bf0406e8893e7af (from 81281cb298a5825bc7a2e692375a86199293bbbe)
Author: Alan Hourihane <alanh at fairlite.demon.co.uk>
Date:   Wed Dec 13 12:13:11 2006 +0000

    Set Int10Current->Tag for the linux native int10 module
    Fixes bug #9296
    (cherry picked from 731952c561a3972d09d1315f4fd31466e459ccb9 commit)

diff --git a/hw/xfree86/int10/generic.c b/hw/xfree86/int10/generic.c
index 46a1179..d863727 100644
--- a/hw/xfree86/int10/generic.c
+++ b/hw/xfree86/int10/generic.c
@@ -98,7 +98,7 @@ xf86ExtendedInitInt10(int entityIndex, i
     base = INTPriv(pInt)->base = xnfalloc(SYS_BIOS);
 
     pvp = xf86GetPciInfoForEntity(entityIndex);
-    if (pvp) pInt->Tag = ((pciConfigPtr)(pvp->thisCard))->tag;
+    if (pvp) pInt->Tag = pciTag(pvp->bus, pvp->device, pvp->func);
 
     /*
      * we need to map video RAM MMIO as some chipsets map mmio
diff --git a/hw/xfree86/os-support/linux/int10/linux.c b/hw/xfree86/os-support/linux/int10/linux.c
index 6c8b230..dd1637a 100644
--- a/hw/xfree86/os-support/linux/int10/linux.c
+++ b/hw/xfree86/os-support/linux/int10/linux.c
@@ -90,6 +90,7 @@ xf86ExtendedInitInt10(int entityIndex, i
     legacyVGARec vga;
     xf86int10BiosLocation bios;
     Bool videoBiosMapped = FALSE;
+    pciVideoPtr pvp;
     
     if (int10Generation != serverGeneration) {
 	counter = 0;
@@ -151,6 +152,8 @@ xf86ExtendedInitInt10(int entityIndex, i
     pInt = (xf86Int10InfoPtr)xnfcalloc(1, sizeof(xf86Int10InfoRec));
     pInt->scrnIndex = screen;
     pInt->entityIndex = entityIndex;
+    pvp = xf86GetPciInfoForEntity(entityIndex);
+    if (pvp) pInt->Tag = pciTag(pvp->bus, pvp->device, pvp->func);
     if (!xf86Int10ExecSetup(pInt))
 	goto error0;
     pInt->mem = &linuxMem;



More information about the xorg-commit mailing list