I noticed a few days ago that the radeonhd driver does not compile with
the latest xserver git. After reviewing some of the changeslogs, it seems
that xserver repository has removed 2 files (wrappers) that the radeonhd
repository needs to compile. I have added a patch that will allow the
radeonhd driver compile with the latest xserver.
Also a few weeks ago, the radeonhd driver had some patches that finally
allowed me to use my DVI out on my Radeon X1600Pro card (RV530) but some
change around 1 or 2 weeks ago has finally prevented it from working
again. :(
diff -uNr xf86-video-radeonhd-original/src/rhd_atombios.c xf86-video-radeonhd/src/rhd_atombios.c
--- xf86-video-radeonhd-original/src/rhd_atombios.c 2007-12-09 20:54:45.000000000 -0600
+++ xf86-video-radeonhd/src/rhd_atombios.c 2007-12-09 20:56:41.000000000 -0600
@@ -28,7 +28,7 @@
#endif
#include "xf86.h"
#include "xf86_OSproc.h"
-#include "xf86_ansic.h"
+#include
#include "xf86Pci.h"
#include "edid.h"
#include "rhd.h"
@@ -818,7 +818,7 @@
mode->VRefresh = (1000.0 * ((float) mode->Clock))
/ ((float)(((float)mode->HTotal) * ((float)mode->VTotal)));
- xf86snprintf(name, NAME_LEN, "%dx%d",
+ snprintf(name, NAME_LEN, "%dx%d",
mode->HDisplay, mode->VDisplay);
mode->name = xstrdup(name);
@@ -1955,7 +1955,7 @@
cp[ncon].Output[0] = devices[n].ot;
cp[ncon].Output[1] = RHD_OUTPUT_NONE;
cp[ncon].Type = devices[n].con;
- cp[ncon].Name = xf86strdup(devices[n].name);
+ cp[ncon].Name = strdup(devices[n].name);
cp[ncon].Name = RhdAppendString(cp[ncon].Name, devices[n].outputName);
if (devices[n].dual) {
diff -uNr xf86-video-radeonhd-original/src/rhd_connector.c xf86-video-radeonhd/src/rhd_connector.c
--- xf86-video-radeonhd-original/src/rhd_connector.c 2007-12-09 20:54:45.000000000 -0600
+++ xf86-video-radeonhd/src/rhd_connector.c 2007-12-09 20:58:03.000000000 -0600
@@ -31,7 +31,7 @@
#include "edid.h"
/* for usleep */
-#include "xf86_ansic.h"
+#include
#include "rhd.h"
#include "rhd_connector.h"
diff -uNr xf86-video-radeonhd-original/src/rhd_crtc.c xf86-video-radeonhd/src/rhd_crtc.c
--- xf86-video-radeonhd-original/src/rhd_crtc.c 2007-12-09 20:54:45.000000000 -0600
+++ xf86-video-radeonhd/src/rhd_crtc.c 2007-12-09 20:57:47.000000000 -0600
@@ -30,7 +30,7 @@
#include "xf86.h"
/* for usleep */
-#include "xf86_ansic.h"
+#include
#include "rhd.h"
#include "rhd_crtc.h"
diff -uNr xf86-video-radeonhd-original/src/rhd_dac.c xf86-video-radeonhd/src/rhd_dac.c
--- xf86-video-radeonhd-original/src/rhd_dac.c 2007-12-09 20:54:45.000000000 -0600
+++ xf86-video-radeonhd/src/rhd_dac.c 2007-12-09 20:58:20.000000000 -0600
@@ -30,7 +30,7 @@
#include "xf86.h"
/* for usleep */
-#include "xf86_ansic.h"
+#include
#include "rhd.h"
#include "rhd_connector.h"
diff -uNr xf86-video-radeonhd-original/src/rhd_driver.c xf86-video-radeonhd/src/rhd_driver.c
--- xf86-video-radeonhd-original/src/rhd_driver.c 2007-12-09 20:54:45.000000000 -0600
+++ xf86-video-radeonhd/src/rhd_driver.c 2007-12-09 20:58:33.000000000 -0600
@@ -39,7 +39,7 @@
#include "compiler.h"
/* for usleep */
-#include "xf86_ansic.h"
+#include
#include "xf86Resources.h"
diff -uNr xf86-video-radeonhd-original/src/rhd_helper.c xf86-video-radeonhd/src/rhd_helper.c
--- xf86-video-radeonhd-original/src/rhd_helper.c 2007-12-09 20:54:45.000000000 -0600
+++ xf86-video-radeonhd/src/rhd_helper.c 2007-12-09 20:59:46.000000000 -0600
@@ -28,7 +28,7 @@
#endif
#include "xf86.h"
-#include "xf86_ansic.h"
+#include
#include "rhd.h"
@@ -114,10 +114,10 @@
char *d = c;
int k = size < 16 ? size : 16;
for (i = 0; i < k; i++)
- cur += xf86snprintf(cur,4,"%2.2x ",(unsigned char) (*(c++)));
+ cur += snprintf(cur,4,"%2.2x ",(unsigned char) (*(c++)));
c = d;
for (i = 0; i < k; i++) {
- cur += xf86snprintf(cur,2,"%c",((((CARD8)(*c)) > 32)
+ cur += snprintf(cur,2,"%c",((((CARD8)(*c)) > 32)
&& (((CARD8)(*c)) < 128)) ?
(unsigned char) (*(c)): '.');
c++;
@@ -179,15 +179,15 @@
if (!s2)
return s1;
else if (!s1)
- return xf86strdup(s2);
+ return strdup(s2);
else {
int len = strlen(s1) + strlen(s2) + 1;
char *result = (char *)xalloc(len);
if (!result) return s1;
- xf86strcpy(result,s1);
- xf86strcat(result,s2);
+ strcpy(result,s1);
+ strcat(result,s2);
xfree(s1);
return result;
}
diff -uNr xf86-video-radeonhd-original/src/rhd_i2c.c xf86-video-radeonhd/src/rhd_i2c.c
--- xf86-video-radeonhd-original/src/rhd_i2c.c 2007-12-09 20:54:45.000000000 -0600
+++ xf86-video-radeonhd/src/rhd_i2c.c 2007-12-09 20:57:24.000000000 -0600
@@ -29,7 +29,7 @@
#include "xf86.h"
#include "xf86_OSproc.h"
-#include "xf86_ansic.h"
+#include
#include "xf86i2c.h"
#include "rhd.h"
@@ -774,7 +774,7 @@
xf86DestroyI2CBusRec(I2CPtr, TRUE, FALSE);
goto error;
}
- xf86snprintf(I2CPtr->BusName,17,"RHD I2C line %1.1i",i);
+ snprintf(I2CPtr->BusName,17,"RHD I2C line %1.1i",i);
I2CPtr->scrnIndex = scrnIndex;
if (rhdPtr->ChipSet < RHD_RS600)
I2CPtr->I2CWriteRead = rhd5xxWriteRead;
diff -uNr xf86-video-radeonhd-original/src/rhd_lvtma.c xf86-video-radeonhd/src/rhd_lvtma.c
--- xf86-video-radeonhd-original/src/rhd_lvtma.c 2007-12-09 20:54:46.000000000 -0600
+++ xf86-video-radeonhd/src/rhd_lvtma.c 2007-12-09 20:59:59.000000000 -0600
@@ -35,7 +35,7 @@
#include "xf86.h"
/* for usleep */
-#include "xf86_ansic.h"
+#include
#include "rhd.h"
#include "rhd_crtc.h"
diff -uNr xf86-video-radeonhd-original/src/rhd_pll.c xf86-video-radeonhd/src/rhd_pll.c
--- xf86-video-radeonhd-original/src/rhd_pll.c 2007-12-09 20:54:46.000000000 -0600
+++ xf86-video-radeonhd/src/rhd_pll.c 2007-12-09 21:00:15.000000000 -0600
@@ -30,7 +30,7 @@
#include "xf86.h"
/* for usleep */
-#include "xf86_ansic.h"
+#include
#include "rhd.h"
#include "rhd_pll.h"
diff -uNr xf86-video-radeonhd-original/src/rhd_tmds.c xf86-video-radeonhd/src/rhd_tmds.c
--- xf86-video-radeonhd-original/src/rhd_tmds.c 2007-12-09 20:54:46.000000000 -0600
+++ xf86-video-radeonhd/src/rhd_tmds.c 2007-12-09 21:00:30.000000000 -0600
@@ -35,7 +35,7 @@
#include "xf86.h"
/* for usleep */
-#include "xf86_ansic.h"
+#include
#include "rhd.h"
#include "rhd_crtc.h"
--
To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org
For additional commands, e-mail: radeonhd+help@opensuse.org