aboutsummaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-02-20 13:27:10 +1000
committerDave Airlie <airlied@linux.ie>2008-03-06 05:31:50 +1000
commit180c9188f4cb7163f1e3e7d5098eaabf29a98540 (patch)
tree71a6af7b47fa72f354d46a0340463265ec350dbd /shared-core
parent12574590cdf7871755d1939463ca6898251fd0d1 (diff)
drm/ttm: add ioctl to get back memory managed area sized
taken from modesetting branch but could be useful outside it.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/drm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h
index 663696c1..5981dcb8 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -955,6 +955,11 @@ struct drm_mm_init_arg {
uint64_t p_size;
};
+struct drm_mm_info_arg {
+ unsigned int mem_type;
+ uint64_t p_size;
+};
+
/**
* \name Ioctls Definitions
*/
@@ -1046,6 +1051,7 @@ struct drm_mm_init_arg {
#define DRM_IOCTL_BO_INFO DRM_IOWR(0xd4, struct drm_bo_reference_info_arg)
#define DRM_IOCTL_BO_WAIT_IDLE DRM_IOWR(0xd5, struct drm_bo_map_wait_idle_arg)
#define DRM_IOCTL_BO_VERSION DRM_IOR(0xd6, struct drm_bo_version_arg)
+#define DRM_IOCTL_MM_INFO DRM_IOWR(0xd7, struct drm_mm_info_arg)
/*@}*/