drm/amdkfd: add events IOCTL set definitions
authorAndrew Lewycky <Andrew.Lewycky@amd.com>
Sun, 7 Dec 2014 15:05:11 +0000 (17:05 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 19 May 2015 10:02:00 +0000 (13:02 +0300)
commit29a5d3eb9a7612b26ba098a0db65e54372612d07
tree69684f6c29fb18ffd6d12ab9542eba5a0c190272
parent2249d55827c9e5d5731d7a8622ecd366d8756bbb
drm/amdkfd: add events IOCTL set definitions

- AMDKFD_IOC_CREATE_EVENT:
Creates a new event of a specified type

- AMDKFD_IOC_DESTROY_EVENT:
Destroys an existing event

- AMDKFD_IOC_SET_EVENT:
Signal an existing event

- AMDKFD_IOC_RESET_EVENT:
Reset an existing event

- AMDKFD_IOC_WAIT_EVENTS:
Wait on event(s) until they are signaled

v2:

- Move the limit of the signal events to kfd_ioctl.h so it
  can be used by userspace

v3:
- Change all bool fields in struct kfd_memory_exception_failure
to uint32_t

Signed-off-by: Andrew Lewycky <Andrew.Lewycky@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
include/uapi/linux/kfd_ioctl.h