[xorg-commit-diffs] xc/programs/Xserver/hw/xfree86/common xorgHelper.c, NONE, 1.1.10.1 Imakefile, 1.1.4.6, 1.1.4.7 xf86AutoConfig.c, 1.1.4.2, 1.1.4.3 xf86Beta.c, 1.1.4.1, 1.1.4.2 xf86Config.c, 1.1.4.5, 1.1.4.6 xf86Configure.c, 1.1.4.2, 1.1.4.3 xf86DGA.c, 1.1.4.4, 1.1.4.5 xf86Init.c, 1.1.4.5, 1.1.4.6 xf86Mode.c, 1.1.4.3, 1.1.4.4 xf86Module.h, 1.1.4.1, 1.1.4.2 xf86RandR.c, 1.1.4.4, 1.1.4.5 xf86pciBus.c, 1.1.4.1, 1.1.4.2

Egbert Eich xorg-commit at pdx.freedesktop.org
Thu Apr 15 03:16:14 PDT 2004


Committed by: eich

Update of /cvs/xorg/xc/programs/Xserver/hw/xfree86/common
In directory pdx:/home/eich/tstbuild/xc/programs/Xserver/hw/xfree86/common

Modified Files:
      Tag: XORG-CURRENT
	Imakefile xf86AutoConfig.c xf86Beta.c xf86Config.c 
	xf86Configure.c xf86DGA.c xf86Init.c xf86Mode.c xf86Module.h 
	xf86RandR.c xf86pciBus.c 
Added Files:
      Tag: XORG-CURRENT
	xorgHelper.c 
Log Message:
2004-04-15  Egbert Eich  <eich at freedesktop.org>
        Merged changes from RELEASE-1 branch
	


--- NEW FILE: xorgHelper.c ---
/* $XdotOrg: xc/programs/Xserver/hw/xfree86/common/xorgHelper.c,v 1.1.10.1 2004/04/15 10:16:09 eich Exp $ */

#include "X.h"
#include "os.h"
#include "servermd.h"
#include "pixmapstr.h"
#include "windowstr.h"
#include "propertyst.h"
#include "gcstruct.h"
#include "loaderProcs.h"
#include "xf86.h"
#include "xf86Priv.h"
#include "xorgVersion.h"


CARD32
xorgGetVersion()
{
    return XORG_VERSION_CURRENT;
}

Index: Imakefile
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/common/Imakefile,v
retrieving revision 1.1.4.6
retrieving revision 1.1.4.7
diff -u -d -r1.1.4.6 -r1.1.4.7
--- a/Imakefile	26 Mar 2004 01:23:49 -0000	1.1.4.6
+++ b/Imakefile	15 Apr 2004 10:16:09 -0000	1.1.4.7
@@ -67,11 +67,11 @@
 MDEBUGDEFS = -DMEMDEBUG
 #endif
 
-#ifndef XF86ExpireServer
-#define XF86ExpireServer	NO
+#ifndef XorgExpireServer
+#define XorgExpireServer	NO
 #endif
 
-#if XF86ExpireServer
+#if XorgExpireServer
       BETASRC = xf86Beta.c
       BETAOBJ = xf86Beta.o
      BETADEFS = -DDO_CHECK_BETA
@@ -84,7 +84,7 @@
 #define NeedXF86Beta NO
 #endif
 
-#if XF86ExpireServer
+#if XorgExpireServer
 EXP_FORCE_DEFINES = -DSHOW_BETA_MESSAGE -DEXPIRE_SERVER
 #endif
 
@@ -119,6 +119,7 @@
 	xf86cmap.c\
 	xf86PM.c \
 	xf86Versions.c \
+	xorgHelper.c \
 	$(DEBUGSRC) \
 	$(KBD).c \
 	$(SBUSSRC) \
@@ -158,6 +159,7 @@
 	xf86cmap.o\
 	xf86PM.o \
 	xf86Versions.o \
+	xorgHelper.o \
 	$(DEBUGOBJ) \
 	$(SBUSOBJ) \
 	$(XF86_XINPUT_OBJ) \
@@ -193,10 +195,10 @@
   BUILDERMSG = -DBUILDERSTRING='$(BUILDERSTRING)'
 #endif
        XORGREL = XOrgReleaseString
-   XORGREL_DEF = -DXORG_RELEASE='"$(XORGREL)"'
+   XORGREL_DEF = -DXORG_RELEASE="\"$(XORGREL)\""
 
 CONSDEFINES = XFree86ConsoleDefines
-EXP_DEFINES = -DEXPIRY_TIME=XF86ServerExpiry $(EXP_FORCE_DEFINES)
+EXP_DEFINES = -DEXPIRY_TIME=XorgServerExpiry $(EXP_FORCE_DEFINES)
     DRIVERS = XF86CardDrivers
    IDRIVERS = XInputDrivers
 XCONFIGDEFINES = -DPROJECTROOT='"$(PROJECTROOT)"' \
@@ -206,7 +208,7 @@
 XF86CONFIGFILE = XConfigFile
 XCONFIGUREDEFINES = -DXF86CONFIGFILE='"$(XF86CONFIGFILE)"'
 
-    DEFINES = $(CONSDEFINES) $(KBDDEFINES) $(EXT_DEFINES) $(OS_DEFINES)
+    DEFINES = $(CONSDEFINES) $(KBDDEFINES) $(EXT_DEFINES) $(OS_DEFINES) $(CONFIG_DEFINES) $(XKBDEFRULESDEFS) $(VENDORSUPPORTDEFS)
 
 AllTarget($(OFILES))
 

Index: xf86AutoConfig.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/common/xf86AutoConfig.c,v
retrieving revision 1.1.4.2
retrieving revision 1.1.4.3
diff -u -d -r1.1.4.2 -r1.1.4.3
--- a/xf86AutoConfig.c	8 Feb 2004 00:17:31 -0000	1.1.4.2
+++ b/xf86AutoConfig.c	15 Apr 2004 10:16:09 -0000	1.1.4.3
@@ -265,7 +265,7 @@
 		 " -v 0x%04x -d 0x%04x -r 0x%02x -s 0x%04x"
 		 " -b 0x%04x -c 0x%04x",
 		 path,
-		 (unsigned int)xf86GetVersion(),
+		 (unsigned int)xorgGetVersion(),
 		 searchPath,
 		 info->vendor, info->chipType, info->chipRev,
 		 info->subsysVendor, info->subsysCard,

Index: xf86Beta.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/common/xf86Beta.c,v
retrieving revision 1.1.4.1
retrieving revision 1.1.4.2
diff -u -d -r1.1.4.1 -r1.1.4.2
--- a/xf86Beta.c	26 Nov 2003 22:48:57 -0000	1.1.4.1
+++ b/xf86Beta.c	15 Apr 2004 10:16:09 -0000	1.1.4.2
@@ -1,4 +1,5 @@
 /* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Beta.c,v 3.10 2003/08/24 17:36:49 dawes Exp $ */
+/* $XdotOrg$ */
 /*
  * Copyright (c) 1996-2002 by The XFree86 Project, Inc.
  *
@@ -187,11 +188,11 @@
     if (m) {
       putc('\007', m);
       fprintf(m, "\n");
-      fprintf(m, "             This is a beta version of XFree86.\n\n");
+      fprintf(m, "             This is a beta version of X.\n\n");
       fprintf(m, " This binary may be redistributed providing it is not"
 		 " modified in any way.\n\n");
       fprintf(m, " Please send success and problem reports to"
-		 " <report at XFree86.org>.\n\n");
+		 " <&&&&&@X.org>.\n\n");
       if (expired) {
 	fprintf(m, " This version (%s) has expired.\n", XF86_VERSION);
 	fprintf(m, " Please get the release version or a newer beta"

Index: xf86Config.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/common/xf86Config.c,v
retrieving revision 1.1.4.5
retrieving revision 1.1.4.6
diff -u -d -r1.1.4.5 -r1.1.4.6
--- a/xf86Config.c	5 Mar 2004 13:40:06 -0000	1.1.4.5
+++ b/xf86Config.c	15 Apr 2004 10:16:09 -0000	1.1.4.6
@@ -1058,7 +1058,7 @@
 	}
 #endif
 
-#ifdef XINERAMA
+#ifdef PANORAMIX
     from = X_DEFAULT;
     if (!noPanoramiXExtension)
       from = X_CMDLINE;
@@ -1102,7 +1102,7 @@
 #endif
 #ifdef XKB
   if (!xf86IsPc98()) {
-    xf86Info.xkbrules      = "xfree86";
+    xf86Info.xkbrules      = __XKBDEFRULES__;
     xf86Info.xkbmodel      = "pc105";
     xf86Info.xkblayout     = "us";
     xf86Info.xkbvariant    = NULL;

Index: xf86Configure.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/common/xf86Configure.c,v
retrieving revision 1.1.4.2
retrieving revision 1.1.4.3
diff -u -d -r1.1.4.2 -r1.1.4.3
--- a/xf86Configure.c	5 Mar 2004 13:40:06 -0000	1.1.4.2
+++ b/xf86Configure.c	15 Apr 2004 10:16:09 -0000	1.1.4.3
@@ -499,7 +499,7 @@
     int scrnum = 0;
     parsePrologue (XF86ConfLayoutPtr, XF86ConfLayoutRec)
 
-    ptr->lay_identifier = "XFree86 Configured";
+    ptr->lay_identifier = "X.org Configured";
 
     {
 	XF86ConfInputrefPtr iptr;
@@ -632,8 +632,8 @@
             /* Add only those font backends which are referenced by fontpath */
             /* 'strstr(dFP,"/dir")' is meant as 'dFP =~ m(/dir\W)' */
     	    if (defaultFontPath && (
-		(strcmp(*el, "xtt")  == 0 &&
-		 strstr(defaultFontPath, "/TrueType")) ||
+		(strcmp(*el, "freetype")  == 0 &&
+		 strstr(defaultFontPath, "/TTF")) ||
     	        (strcmp(*el, "type1")  == 0 &&
 		 strstr(defaultFontPath, "/Type1")) ||
     	        (strcmp(*el, "speedo") == 0 &&
@@ -741,6 +741,16 @@
 	    case DS_ASCII_STR:
 	    case DS_SERIAL:
 	    case DS_RANGES:
+		ptr->mon_hsync[ptr->mon_n_hsync].lo =
+		    ConfiguredMonitor->det_mon[i].section.ranges.min_h;
+		ptr->mon_hsync[ptr->mon_n_hsync].hi =
+		    ConfiguredMonitor->det_mon[i].section.ranges.max_h;
+		ptr->mon_n_vrefresh = 1;
+		ptr->mon_vrefresh[ptr->mon_n_hsync].lo =
+		    ConfiguredMonitor->det_mon[i].section.ranges.min_v;
+		ptr->mon_vrefresh[ptr->mon_n_hsync].hi =
+		ptr->mon_n_hsync++;
+		ConfiguredMonitor->det_mon[i].section.ranges.max_v;
 	    default:
 		break;
 	}
@@ -967,29 +977,33 @@
     ErrorF("\n");
 
 #ifdef SCO
-    ErrorF("\nXFree86 is using the kernel event driver to access the mouse.\n"
-	    "If you wish to use the internal XFree86 mouse drivers, please\n"
+    ErrorF("\n"__XSERVERNAME__
+	   " is using the kernel event driver to access the mouse.\n"
+	    "If you wish to use the internal "__XSERVERNAME__
+	   "mouse drivers, please\n"
 	    "edit the file and correct the Device.\n");
 #else /* !SCO */
     if (!foundMouse) {
-	ErrorF("\nXFree86 is not able to detect your mouse.\n"
+	ErrorF("\n"__XSERVERNAME__" is not able to detect your mouse.\n"
 		"Edit the file and correct the Device.\n");
     } else {
 #ifndef __UNIXOS2__  /* OS/2 definitely has a mouse */
-	ErrorF("\nXFree86 detected your mouse at device %s.\n"
+	ErrorF("\n"__XSERVERNAME__" detected your mouse at device %s.\n"
 		"Please check your config if the mouse is still not\n"
-		"operational, as by default XFree86 tries to autodetect\n"
+		"operational, as by default "__XSERVERNAME__
+	       " tries to autodetect\n"
 		"the protocol.\n",DFLT_MOUSE_DEV);
 #endif
     }
 #endif /* !SCO */
 
     if (xf86NumScreens > 1) {
-	ErrorF("\nXFree86 has configured a multihead system, please check your config.\n");
+	ErrorF("\n"__XSERVERNAME__
+	       " has configured a multihead system, please check your config.\n");
     }
 
-    ErrorF("\nYour XF86Config file is %s\n\n", filename);
-    ErrorF("To test the server, run 'XFree86 -xf86config %s'\n\n", filename);
+    ErrorF("\nYour %s file is %s\n\n", XF86CONFIGFILE ,filename);
+    ErrorF("To test the server, run 'X -xf86config %s'\n\n", filename);
 
 bail:
     OsCleanup(TRUE);

Index: xf86DGA.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/common/xf86DGA.c,v
retrieving revision 1.1.4.4
retrieving revision 1.1.4.5
diff -u -d -r1.1.4.4 -r1.1.4.5
--- a/xf86DGA.c	5 Mar 2004 13:40:06 -0000	1.1.4.4
+++ b/xf86DGA.c	15 Apr 2004 10:16:09 -0000	1.1.4.5
@@ -140,7 +140,7 @@
     for(i = 0; i < num; i++)
 	modes[i].num = i + 1;
 
-#ifdef XINERAMA
+#ifdef PANORAMIX
      if(!noPanoramiXExtension)
 	for(i = 0; i < num; i++)
 	    modes[i].flags &= ~DGA_PIXMAP_AVAILABLE;

Index: xf86Init.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/common/xf86Init.c,v
retrieving revision 1.1.4.5
retrieving revision 1.1.4.6
diff -u -d -r1.1.4.5 -r1.1.4.6
--- a/xf86Init.c	24 Feb 2004 15:16:35 -0000	1.1.4.5
+++ b/xf86Init.c	15 Apr 2004 10:16:09 -0000	1.1.4.6
@@ -69,7 +69,7 @@
 #include "xf86Priv.h"
 #include "xf86Config.h"
 #include "xf86_OSlib.h"
-#include "xf86Version.h"
+#include "xorgVersion.h"
 #include "xf86Date.h"
 #include "xf86Build.h"
 #include "mipointer.h"
@@ -1262,12 +1262,17 @@
 void
 OsVendorFatalError()
 {
-  ErrorF("\nWhen reporting a problem related to a server crash, please\n"
-	 "send the full server output, not just the last messages.\n");
-  if (xf86LogFile && xf86LogFileWasOpened)
-    ErrorF("This can be found in the log file \"%s\".\n", xf86LogFile);
-  ErrorF("Please report problems to %s.\n", BUILDERADDR);
-  ErrorF("\n");
+#ifdef VENDORSUPPORT
+    ErrorF("\nPlease refer to your Operating System Vendor support pages\n"
+	   "at %s for support on this crash.\n",VENDORSUPPORT);
+#else
+    ErrorF("\nPlease consult the "XVENDORNAME" support \n"
+	   "\t at "__VENDORDWEBSUPPORT__"\n for help. \n");
+#endif
+    if (xf86LogFile && xf86LogFileWasOpened)
+	ErrorF("Please also check the log file at \"%s\" for additional "
+              "information.\n", xf86LogFile);
+    ErrorF("\n");
 }
 
 int
@@ -1339,15 +1344,15 @@
       return 2;
     }
   }
-  if (!strcmp(argv[i], "-xf86config"))
+  if (!strcmp(argv[i], "-config") || !strcmp(argv[i], "-xf86config"))
   {
     if (!argv[i + 1])
       return 0;
     if (getuid() != 0 && !xf86PathIsSafe(argv[i + 1])) {
-      FatalError("\nInvalid argument for -xf86config\n"
-	  "\tFor non-root users, the file specified with -xf86config must be\n"
+      FatalError("\nInvalid argument for -config\n"
+	  "\tFor non-root users, the file specified with -config must be\n"
 	  "\ta relative path and must not contain any \"..\" elements.\n"
-	  "\tUsing default XF86Config search path.\n\n");
+	  "\tUsing default "__XCONFIGFILE__" search path.\n\n");
     }
     xf86ConfigFile = argv[i + 1];
     return 2;
@@ -1650,15 +1655,14 @@
   ErrorF("Device Dependent Usage\n");
   if (getuid() == 0)
   {
-    ErrorF("-xf86config file       specify a configuration file\n");
     ErrorF("-modulepath paths      specify the module search path\n");
     ErrorF("-logfile file          specify a log file name\n");
-    ErrorF("-configure             probe for devices and write an XF86Config\n");
+    ErrorF("-configure             probe for devices and write an "__XCONFIGFILE__"\n");
   }
   else
   {
-    ErrorF("-xf86config file       specify a configuration file, relative to the\n");
-    ErrorF("                       XF86Config search path, only root can use absolute\n");
+    ErrorF("-config file       specify a configuration file, relative to the\n");
+    ErrorF("                       "__XCONFIGFILE__" search path, only root can use absolute\n");
   }
   ErrorF("-probeonly             probe for devices, then exit\n");
   ErrorF("-scanpci               execute the scanpci module and exit\n");
@@ -1706,7 +1710,7 @@
 #define OSVENDOR ""
 #endif
 #ifndef PRE_RELEASE
-#define PRE_RELEASE XF86_VERSION_SNAP
+#define PRE_RELEASE XORG_VERSION_SNAP
 #endif
 
 static void
@@ -1714,25 +1718,25 @@
 {
 #if PRE_RELEASE
   ErrorF("\n"
-    "This is a pre-release version of the X.org Foundation's X11.\n"
+    "This is a pre-release version of the " XVENDORNAME " X11.\n"
     "Portions of this release are based on XFree86 4.4RC2 and selected\n"
     "files from XFree86 4.4RC3. It is not supported in any way.\n"
     "Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.\n"
     "Select the \"xorg\" product for bugs you find in this release.\n"
     "Before reporting bugs in pre-release versions please check the\n"
-    "latest version in the X.org Foundation \"monolithic tree\" CVS\n"
+    "latest version in the " XVENDORNAME " \"monolithic tree\" CVS\n"
     "repository hosted at http://www.freedesktop.org/Software/xorg/");
 #endif
-#if XF86_VERSION_SNAP > 0
+#if XORG_VERSION_SNAP > 0
   ErrorF(".%d", XF86_VERSION_SNAP);
 #endif
 
-#if XF86_VERSION_SNAP >= 900
-  ErrorF(" (%d.%d.0 RC %d)", XF86_VERSION_MAJOR, XF86_VERSION_MINOR + 1,
-				XF86_VERSION_SNAP - 900);
+#if XORG_VERSION_SNAP >= 900
+  ErrorF(" (%d.%d.0 RC %d)", XORG_VERSION_MAJOR, XORG_VERSION_MINOR + 1,
+				XORG_VERSION_SNAP - 900);
 #endif
 
-#ifdef XF86_CUSTOM_VERSION
+#ifdef XORG_CUSTOM_VERSION
   ErrorF(" (%s)", XF86_CUSTOM_VERSION);
 #endif
   ErrorF("\nRelease Date: %s\n", XF86_DATE);
@@ -1780,7 +1784,7 @@
 #if defined(BUILDERSTRING)
   ErrorF("%s \n",BUILDERSTRING);
 #endif
-  ErrorF("\tBefore reporting problems, check http://www.XFree86.Org/\n"
+  ErrorF("\tBefore reporting problems, check "__VENDORDWEBSUPPORT__"\n"
 	 "\tto make sure that you have the latest version.\n");
 #ifdef XFree86LOADER
   ErrorF("Module Loader present\n");

Index: xf86Mode.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/common/xf86Mode.c,v
retrieving revision 1.1.4.3
retrieving revision 1.1.4.4
diff -u -d -r1.1.4.3 -r1.1.4.4
--- a/xf86Mode.c	25 Feb 2004 21:46:46 -0000	1.1.4.3
+++ b/xf86Mode.c	15 Apr 2004 10:16:09 -0000	1.1.4.4
@@ -1682,7 +1682,7 @@
     /* Lookup each mode */
 #ifdef RANDR
     if (!xf86Info.disableRandR	
-#ifdef XINERAMA
+#ifdef PANORAMIX
 	&& noPanoramiXExtension
 #endif
 	)

Index: xf86Module.h
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/common/xf86Module.h,v
retrieving revision 1.1.4.1
retrieving revision 1.1.4.2
diff -u -d -r1.1.4.1 -r1.1.4.2
--- a/xf86Module.h	26 Nov 2003 22:48:58 -0000	1.1.4.1
+++ b/xf86Module.h	15 Apr 2004 10:16:09 -0000	1.1.4.2
@@ -63,11 +63,11 @@
 
 /* Built-in ABI classes.  These definitions must not be changed. */
 #define ABI_CLASS_NONE		NULL
-#define ABI_CLASS_ANSIC		"XFree86 ANSI C Emulation"
-#define ABI_CLASS_VIDEODRV	"XFree86 Video Driver"
-#define ABI_CLASS_XINPUT	"XFree86 XInput driver"
-#define ABI_CLASS_EXTENSION	"XFree86 Server Extension"
-#define ABI_CLASS_FONT		"XFree86 Font Renderer"
+#define ABI_CLASS_ANSIC		"X.Org ANSI C Emulation"
+#define ABI_CLASS_VIDEODRV	"X.Org Video Driver"
+#define ABI_CLASS_XINPUT	"X.Org XInput driver"
+#define ABI_CLASS_EXTENSION	"X.Org Server Extension"
+#define ABI_CLASS_FONT		"X.Org Font Renderer"
 
 #define ABI_MINOR_MASK		0x0000FFFF
 #define ABI_MAJOR_MASK		0xFFFF0000
@@ -95,9 +95,9 @@
 
 #ifndef MODULEVENDORSTRING
 #ifndef __OS2ELF__
-#define MODULEVENDORSTRING	"The XFree86 Project"
+#define MODULEVENDORSTRING	"X.Org Foundation"
 #else
-#define MODULEVENDORSTRING	"The XFree86 Project - XFree86/OS2"
+#define MODULEVENDORSTRING	"X.Org Foundation - OS2"
 #endif
 #endif
 
@@ -129,10 +129,10 @@
  * the video driver ABI are themselves video drivers.
  */
 #define MOD_CLASS_NONE		NULL
-#define MOD_CLASS_VIDEODRV	"XFree86 Video Driver"
-#define MOD_CLASS_XINPUT	"XFree86 XInput Driver"
-#define MOD_CLASS_FONT		"XFree86 Font Renderer"
-#define MOD_CLASS_EXTENSION	"XFree86 Server Extension"
+#define MOD_CLASS_VIDEODRV	"X.Org Video Driver"
+#define MOD_CLASS_XINPUT	"X.Org XInput Driver"
+#define MOD_CLASS_FONT		"X.Org Font Renderer"
+#define MOD_CLASS_EXTENSION	"X.Org Server Extension"
 
 /* This structure is expected to be returned by the initfunc */
 typedef struct {

Index: xf86RandR.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/common/xf86RandR.c,v
retrieving revision 1.1.4.4
retrieving revision 1.1.4.5
diff -u -d -r1.1.4.4 -r1.1.4.5
--- a/xf86RandR.c	5 Mar 2004 13:40:07 -0000	1.1.4.4
+++ b/xf86RandR.c	15 Apr 2004 10:16:09 -0000	1.1.4.5
@@ -244,7 +244,7 @@
     XF86RandRInfoPtr	randrp;
     ScrnInfoPtr		scrp = XF86SCRNINFO(pScreen);
     
-#ifdef XINERAMA
+#ifdef PANORAMIX
     /* XXX disable RandR when using Xinerama */
     if (!noPanoramiXExtension)
 	return TRUE;

Index: xf86pciBus.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/common/xf86pciBus.c,v
retrieving revision 1.1.4.1
retrieving revision 1.1.4.2
diff -u -d -r1.1.4.1 -r1.1.4.2
--- a/xf86pciBus.c	26 Nov 2003 22:48:58 -0000	1.1.4.1
+++ b/xf86pciBus.c	15 Apr 2004 10:16:09 -0000	1.1.4.2
@@ -310,7 +310,7 @@
 			    (memType)PCIGETMEMORY64HIGH(pcrp->pci_base1) << 32;
 #else
 			if (pcrp->pci_base1)
-			  info->memBase[0] = 0;
+			    info->memBase[0] = 0;
 #endif
 		    } 
 		}
@@ -910,10 +910,15 @@
 {
     PciBusPtr pbp;
     resPtr tmp,bridgeRes = NULL;
-    resRange range = target->val;
+    resRange range;
 
+    if (!target)
+	return;
+    
     if (!ResCanOverlap(&target->val))
 	return;
+
+    range = target->val;
     
     for (pbp=xf86PciBus; pbp; pbp = pbp->next) {
 	if (pbp->primary == busIndex) {




More information about the xorg-commit-diffs mailing list