summaryrefslogtreecommitdiff
path: root/linux-core/drmP.h
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-29 10:45:34 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-29 10:45:34 +0200
commit279e8d26c6cf7347aa9cb6d50d025a41dff9a5be (patch)
tree99a18283601f80f59f74bcff273bbe3b0fcd2dd2 /linux-core/drmP.h
parent205740647060bc3bdec2b4402a666eb1015932ff (diff)
64-bit IOCTL integer (Michel Dänzer & Brian Paul)
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r--linux-core/drmP.h28
1 files changed, 1 insertions, 27 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index 07f3571b..af082ad7 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -952,9 +952,9 @@ typedef struct drm_buffer_object{
drm_ttm_object_t *ttm_object;
drm_ttm_backend_list_t *ttm_region;
void __user *user_pages;
+ unsigned long num_pages;
atomic_t mapped;
-
uint32_t flags;
uint32_t mask;
uint32_t mask_hint;
@@ -1360,32 +1360,6 @@ extern int drm_fence_ioctl(DRM_IOCTL_ARGS);
extern int drm_bo_ioctl(DRM_IOCTL_ARGS);
-/*
- * Convenience drm_u64_t functions
- */
-
-static __inline__ unsigned long drm_ul(drm_u64_t val)
-{
- unsigned long ret = val.lo;
-#if (BITS_PER_LONG == 64)
- ret |= (val.hi << 32);
-#endif
- return ret;
-}
-
-static __inline__ drm_u64_t drm_u64(unsigned long val)
-{
- drm_u64_t ret;
-
- ret.lo = val & 0xFFFFFFFFUL;
-#if (BITS_PER_LONG == 64)
- ret.hi = val >> 32;
-#else
- ret.hi = 0;
-#endif
- return ret;
-}
-
/* Inline replacements for DRM_IOREMAP macros */
static __inline__ void drm_core_ioremap(struct drm_map *map,