drm/core: add ioctl to query device/driver capabilities
authorBen Skeggs <bskeggs@redhat.com>
Mon, 21 Feb 2011 01:17:35 +0000 (11:17 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 4 Mar 2011 04:47:30 +0000 (14:47 +1000)
commit9f35421e09c494c36079d7cf5724ae9f832431d7
tree1c9ab806a43a30df918e9e12505823a387779e34
parente1e84017f95504348308085ae7cd0bfe268caf10
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>
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_ioctl.c
include/drm/drm.h
include/drm/drmP.h