drm/v3d: Add gpu_gem_info node via debugfs
[platform/kernel/linux-rpi.git] / drivers / gpu / drm / v3d / v3d_drv.h
index 1372e91..231aa57 100644 (file)
@@ -135,11 +135,17 @@ v3d_has_csd(struct v3d_dev *v3d)
 
 #define v3d_to_pdev(v3d) to_platform_device((v3d)->drm.dev)
 
+struct drm_v3d_file_private {
+       pid_t pid;
+       pid_t tgid;
+};
+
 /* The per-fd struct, which tracks the MMU mappings. */
 struct v3d_file_priv {
        struct v3d_dev *v3d;
 
        struct drm_sched_entity sched_entity[V3D_MAX_QUEUES];
+       struct drm_v3d_file_private priv;
 };
 
 struct v3d_bo {
@@ -319,6 +325,9 @@ int v3d_get_bo_offset_ioctl(struct drm_device *dev, void *data,
 struct drm_gem_object *v3d_prime_import_sg_table(struct drm_device *dev,
                                                 struct dma_buf_attachment *attach,
                                                 struct sg_table *sgt);
+int v3d_drm_gem_prime_fd_to_handle(struct drm_device *dev,
+                                  struct drm_file *file_priv, int prime_fd,
+                                  uint32_t *handle);
 
 /* v3d_debugfs.c */
 void v3d_debugfs_init(struct drm_minor *minor);