aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drm_memory.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-03-18 21:42:48 +1100
committerDave Airlie <airlied@linux.ie>2007-03-18 21:42:48 +1100
commitc4808e206bcc5b3d3c0baa2e6e5130e67b78152b (patch)
tree7d63876836c6f89d047a431cc02b55e7e5db9423 /linux-core/drm_memory.h
parent93f66af76a18357f7e3bfcb52c241962287c5caa (diff)
remove drm_lookup_map unused now
Diffstat (limited to 'linux-core/drm_memory.h')
-rw-r--r--linux-core/drm_memory.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/linux-core/drm_memory.h b/linux-core/drm_memory.h
index 32b89e5f..ab36b7d7 100644
--- a/linux-core/drm_memory.h
+++ b/linux-core/drm_memory.h
@@ -57,28 +57,6 @@
# endif
#endif
-/*
- * Find the drm_map that covers the range [offset, offset+size).
- */
-static inline drm_map_t *drm_lookup_map(unsigned long offset,
- unsigned long size, drm_device_t * dev)
-{
- struct list_head *list;
- drm_map_list_t *r_list;
- drm_map_t *map;
-
- list_for_each(list, &dev->maplist->head) {
- r_list = (drm_map_list_t *) list;
- map = r_list->map;
- if (!map)
- continue;
- if (map->offset <= offset
- && (offset + size) <= (map->offset + map->size))
- return map;
- }
- return NULL;
-}
-
static inline void *agp_remap(unsigned long offset, unsigned long size,
drm_device_t * dev)
{