summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_ioctl.c
diff options
context:
space:
mode:
authorBen Skeggs2011-02-21 02:17:35 +0100
committerDave Airlie2011-03-04 05:47:30 +0100
commit9f35421e09c494c36079d7cf5724ae9f832431d7 (patch)
tree1c9ab806a43a30df918e9e12505823a387779e34 /drivers/gpu/drm/drm_ioctl.c
parentdrm/radeon/kms: allow max clock of 340 Mhz on hdmi 1.3+ (diff)
downloadkernel-qcow2-linux-9f35421e09c494c36079d7cf5724ae9f832431d7.tar.gz
kernel-qcow2-linux-9f35421e09c494c36079d7cf5724ae9f832431d7.tar.xz
kernel-qcow2-linux-9f35421e09c494c36079d7cf5724ae9f832431d7.zip
drm/core: add ioctl to query device/driver capabilities
We're coming to see a need to have a set of generic capability checks in the core DRM, in addition to the driver-specific ioctls that already exist. This patch defines an ioctl to do as such, but does not yet define any capabilities. [airlied: drop the driver callback for now.] Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_ioctl.c')
-rw-r--r--drivers/gpu/drm/drm_ioctl.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_ioctl.c b/drivers/gpu/drm/drm_ioctl.c
index 117490590f56..d6de9d042b76 100644
--- a/drivers/gpu/drm/drm_ioctl.c
+++ b/drivers/gpu/drm/drm_ioctl.c
@@ -268,6 +268,17 @@ int drm_getstats(struct drm_device *dev, void *data,
}
/**
+ * Get device/driver capabilities
+ */
+int drm_getcap(struct drm_device *dev, void *data, struct drm_file *file_priv)
+{
+ struct drm_get_cap *req = data;
+
+ req->value = 0;
+ return 0;
+}
+
+/**
* Setversion ioctl.
*
* \param inode device inode.