amdkfd: Add amdkfd skeleton driver
authorOded Gabbay <oded.gabbay@amd.com>
Wed, 16 Jul 2014 18:08:55 +0000 (21:08 +0300)
committerOded Gabbay <oded.gabbay@amd.com>
Wed, 16 Jul 2014 18:08:55 +0000 (21:08 +0300)
commit4a488a7ad71401169cecee75dc94bcce642e2c53
tree5238eb2652e22d7bb8ce83906ed96db50c490a15
parentb7facbaec75a20f34c2065121dc423971682f922
amdkfd: Add amdkfd skeleton driver

This patch adds the amdkfd skeleton driver. The driver does nothing except
define a /dev/kfd device.

It returns -ENODEV on all amdkfd IOCTLs.

v3: Move bool field to the end of structure, removed the pmc ioctls and added
a meaningful error message for ioctl error.

v5:

Create a new folder drm/amd and move amdkfd from drm/radeon/ to drm/amd/
Remove scheduler_class from kfd_priv.h as it was never used
Add skeleton implementation of the Get Version IOCTL

v6:
Update module version to the correct number and remove the "default m" from the
Kconfig file

Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
drivers/gpu/drm/Kconfig
drivers/gpu/drm/Makefile
drivers/gpu/drm/amd/amdkfd/Kconfig [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/Makefile [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_device.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_module.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_priv.h [new file with mode: 0644]