*
*/
+#include "config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <signal.h>
#include <fcntl.h>
+#ifdef HAVE_ALLOCA_H
+# include <alloca.h>
+#endif
#include "xf86drm.h"
+/* Support gcc's __FUNCTION__ for people using other compilers */
+#if !defined(__GNUC__) && !defined(__FUNCTION__)
+# define __FUNCTION__ __func__ /* C99 */
+#endif
+
int sigio_fd;
static double usec(struct timeval *end, struct timeval *start)
}
sigio_fd = fd;
- drmInstallSIGIOHandler(fd, handler);
+ /* drmInstallSIGIOHandler(fd, handler); */
for (;;) sleep(60);
}
int c;
int r = 0;
int fd = -1;
- drmHandle handle;
+ drm_handle_t handle;
void *address;
char *pt;
unsigned long count;
unsigned long offset;
unsigned long size;
- drmContext context;
+ drm_context_t context;
int loops;
char buf[1024];
int i;
return r;
}
+
+void DRM_PRINTFLIKE(4, 0)
+xf86VDrvMsgVerb(int scrnIndex, int type, int verb, const char *format,
+ va_list args)
+{
+ vfprintf(stderr, format, args);
+}
+
+int xf86ConfigDRI[10];