drm/nouveau/core: import ioctl/event interfaces
authorBen Skeggs <bskeggs@redhat.com>
Sat, 9 Aug 2014 18:10:20 +0000 (04:10 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Sat, 9 Aug 2014 19:13:04 +0000 (05:13 +1000)
commit8ec2a6ec6e229d67b19737f9b603eef478fa955d
tree2f6fcb42ede2334f4b110b2eda1fdd83c32b2168
parent29dff2f554b64a37750a9ba1506da725cd4cf713
drm/nouveau/core: import ioctl/event interfaces

This forms the basis for the new APIs that will be exposed to userspace,
giving it access to:

- Object method calls, the immediately useful of which is performance
  counters and the abiity to manipulate the ZBC tables.
- Information on the child classes an object supports, in order to avoid
  having to try all supported classes until successful.
- Notifications, which will be used in the future to inform the client
  if its channel was killed due to a lockup, etc.

This commit imports the interfaces, but are not currently used.  The DRM
portion of the driver will be ported to speak to the core using these
interfaces as much as possible.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
13 files changed:
drivers/gpu/drm/nouveau/Makefile
drivers/gpu/drm/nouveau/core/core/client.c
drivers/gpu/drm/nouveau/core/core/ioctl.c [new file with mode: 0644]
drivers/gpu/drm/nouveau/core/core/notify.c
drivers/gpu/drm/nouveau/core/include/core/client.h
drivers/gpu/drm/nouveau/core/include/core/handle.h
drivers/gpu/drm/nouveau/core/include/core/ioctl.h [new file with mode: 0644]
drivers/gpu/drm/nouveau/core/include/core/notify.h
drivers/gpu/drm/nouveau/core/include/core/object.h
drivers/gpu/drm/nouveau/core/include/core/printk.h
drivers/gpu/drm/nouveau/core/include/nvif/ioctl.h [new symlink]
drivers/gpu/drm/nouveau/nvif/event.h
drivers/gpu/drm/nouveau/nvif/ioctl.h [new file with mode: 0644]