diff options
author | Dave Airlie <airlied@redhat.com> | 2008-02-20 13:27:10 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-02-22 13:49:51 +1000 |
commit | cdad850ebc3570e5ff5a0996f36832c965aa8a1d (patch) | |
tree | 4e084d4a2be9ba4c3ac90f708c32255b4f823f64 /shared-core | |
parent | 0d1cb1e8408d497fec66d9f31603f93800049c75 (diff) |
add ioctl to get back memory managed area sized - used for kernel inited areas
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/drm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h index 0d7cfd25..cbe83fd1 100644 --- a/shared-core/drm.h +++ b/shared-core/drm.h @@ -950,6 +950,12 @@ struct drm_mm_init_arg { uint64_t p_size; }; +struct drm_mm_info_arg { + unsigned int mem_type; + uint64_t p_size; +}; + + /* * Drm mode setting */ @@ -1209,6 +1215,7 @@ struct drm_mode_hotplug { #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) #define DRM_IOCTL_MODE_GETRESOURCES DRM_IOWR(0xA0, struct drm_mode_card_res) #define DRM_IOCTL_MODE_GETCRTC DRM_IOWR(0xA1, struct drm_mode_crtc) |