From 4eafeec960c29369982a9b15c24681a3072f491d Mon Sep 17 00:00:00 2001 From: Jeff Hartmann Date: Wed, 18 Jul 2001 21:02:58 +0000 Subject: Add module version name at a lower layer of the code, allows things to be more flexible and allow older module versions to still work. Might not be final code if we move over to DRI kernel module version, but will be if we use XFree86 version. + Only build tdfx.o instead of tdfx-4_1_0.o since tdfx.o has never changed its API. --- linux/drm.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'linux/drm.h') diff --git a/linux/drm.h b/linux/drm.h index 5faf2bae..ac9f407a 100644 --- a/linux/drm.h +++ b/linux/drm.h @@ -47,26 +47,10 @@ #define XFREE86_VERSION(major,minor,patch,snap) \ ((major << 16) | (minor << 8) | patch) -#define __DRM_STRINGIFY(x) #x -#define DRM_STRINGIFY(x) __DRM_STRINGIFY(x) - #ifndef CONFIG_XFREE86_VERSION -/* If CONFIG_XFREE86_VERSION is defined, these must also be defined */ -#define CONFIG_XFREE86_MAJOR 4 -#define CONFIG_XFREE86_MINOR 1 -#define CONFIG_XFREE86_PATCH 0 - #define CONFIG_XFREE86_VERSION XFREE86_VERSION(4,1,0,0) #endif -#define XF86_MAJ_STR DRM_STRINGIFY(CONFIG_XFREE86_MAJOR) -#define XF86_MIN_STR DRM_STRINGIFY(CONFIG_XFREE86_MINOR) -#define XF86_PATCH_STR DRM_STRINGIFY(CONFIG_XFREE86_PATCH) - -#ifndef CONFIG_XFREE86_VERSION_STR -#define CONFIG_XFREE86_VERSION_STR "-"##XF86_MAJ_STR##"_"##XF86_MIN_STR##"_"##XF86_PATCH_STR -#endif - #if CONFIG_XFREE86_VERSION < XFREE86_VERSION(4,1,0,0) #define DRM_PROC_DEVICES "/proc/devices" #define DRM_PROC_MISC "/proc/misc" -- cgit v1.2.3