#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 {
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);