Define i915_compat.c upper_32_bits for kernels < 2.6.21
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Tue, 15 Jan 2008 08:46:59 +0000 (09:46 +0100)
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Tue, 15 Jan 2008 08:47:04 +0000 (09:47 +0100)
linux-core/i915_compat.c

index f77260b..cc02408 100644 (file)
 #define I915_IFPADDR    0x60
 #define I965_IFPADDR    0x70
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)
+#define upper_32_bits(_val) (((u64)(_val)) >> 32)
+#endif
+
 static struct _i9xx_private_compat {
        void __iomem *flush_page;
        int resource_valid;