summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/img/img-rogue/include/pvrsrv_device_types.h
diff options
context:
space:
mode:
authorClement <clement@starfivetech.com>2023-05-17 13:12:45 +0300
committerAndy Hu <andy.hu@starfivetech.com>2023-06-19 07:30:18 +0300
commitb3cdfe939ca21eadfd84cf8f287c7b0c890b5764 (patch)
treed56a688ec7d8232aaaefd5325c5bbbd7ad530bf3 /drivers/gpu/drm/img/img-rogue/include/pvrsrv_device_types.h
parentbfe3cdc40dfd06288944c8b7a85b7e070d980bc1 (diff)
downloadlinux-b3cdfe939ca21eadfd84cf8f287c7b0c890b5764.tar.xz
Upgrade Imagination DDK source to 1.19
Signed-off-by: Clement <clement@starfivetech.com>
Diffstat (limited to 'drivers/gpu/drm/img/img-rogue/include/pvrsrv_device_types.h')
-rw-r--r--drivers/gpu/drm/img/img-rogue/include/pvrsrv_device_types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/img/img-rogue/include/pvrsrv_device_types.h b/drivers/gpu/drm/img/img-rogue/include/pvrsrv_device_types.h
index 662e3bc17163..5736124688a2 100644
--- a/drivers/gpu/drm/img/img-rogue/include/pvrsrv_device_types.h
+++ b/drivers/gpu/drm/img/img-rogue/include/pvrsrv_device_types.h
@@ -45,7 +45,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "img_types.h"
-#define PVRSRV_MAX_DEVICES 16U /*!< Largest supported number of devices on the system */
+#define PVRSRV_MAX_DEVICES 16U /*!< Largest supported number of devices on the system */
+#define PVRSRV_HOST_DEVICE_ID 255U /*!< Device ID used for host (non-GPU) device. */
+
+static_assert(PVRSRV_MAX_DEVICES < PVRSRV_HOST_DEVICE_ID, "Invalid host device ID.");
#if defined(__KERNEL__) && defined(__linux__) && !defined(__GENKSYMS__)
#define __pvrsrv_defined_struct_enum__