diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-11-15 11:32:16 +0000 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-11-30 23:20:09 +0100 |
commit | 5973c7ee519e2a240c68b290a1836bdb25ed3701 (patch) | |
tree | 3d9138cd36bb494eeeda9b6db3b50b12f870e809 /include/drm | |
parent | acd15b6cc20f85bcef9e08b6ed4f142c34791c32 (diff) | |
download | op-kernel-dev-5973c7ee519e2a240c68b290a1836bdb25ed3701.zip op-kernel-dev-5973c7ee519e2a240c68b290a1836bdb25ed3701.tar.gz |
drm: Introduce drm_mm_create_block()
To be used later by i915 to preallocate exact blocks of space from the
range manager.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Dave Airlie <airlied@redhat.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_mm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_mm.h b/include/drm/drm_mm.h index 06d7f79..4020f96 100644 --- a/include/drm/drm_mm.h +++ b/include/drm/drm_mm.h @@ -102,6 +102,10 @@ static inline bool drm_mm_initialized(struct drm_mm *mm) /* * Basic range manager support (drm_mm.c) */ +extern struct drm_mm_node *drm_mm_create_block(struct drm_mm *mm, + unsigned long start, + unsigned long size, + bool atomic); extern struct drm_mm_node *drm_mm_get_block_generic(struct drm_mm_node *node, unsigned long size, unsigned alignment, |