aboutsummaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2008-01-15 09:46:59 +0100
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2008-01-15 09:47:04 +0100
commit099e89edf094ec231621b67129e9226ba50e99ad (patch)
tree993235692ffeb1b4a7d32d6635d3a850e12766e6 /linux-core
parent806c1929dcd344f6eab3133584a9c4ce9f3f47bc (diff)
Define i915_compat.c upper_32_bits for kernels < 2.6.21
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/i915_compat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-core/i915_compat.c b/linux-core/i915_compat.c
index f77260b1..cc024085 100644
--- a/linux-core/i915_compat.c
+++ b/linux-core/i915_compat.c
@@ -19,6 +19,10 @@
#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;