libkms: remove explicit define _FILE_OFFSET_BITS 64
[platform/upstream/libdrm.git] / freedreno / freedreno_drmif.h
index 6a40ab8..7c54e04 100644 (file)
@@ -49,6 +49,7 @@ enum fd_param_id {
        FD_DEVICE_ID,
        FD_GMEM_SIZE,
        FD_GPU_ID,
+       FD_CHIP_ID,
 };
 
 /* bo flags: */
@@ -72,6 +73,7 @@ enum fd_param_id {
  */
 
 struct fd_device * fd_device_new(int fd);
+struct fd_device * fd_device_new_dup(int fd);
 struct fd_device * fd_device_ref(struct fd_device *dev);
 void fd_device_del(struct fd_device *dev);
 
@@ -93,6 +95,8 @@ struct fd_bo * fd_bo_new(struct fd_device *dev,
                uint32_t size, uint32_t flags);
 struct fd_bo * fd_bo_from_fbdev(struct fd_pipe *pipe,
                int fbfd, uint32_t size);
+struct fd_bo *fd_bo_from_handle(struct fd_device *dev,
+               uint32_t handle, uint32_t size);
 struct fd_bo * fd_bo_from_name(struct fd_device *dev, uint32_t name);
 struct fd_bo * fd_bo_ref(struct fd_bo *bo);
 void fd_bo_del(struct fd_bo *bo);