]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/drm/ttm/ttm_bo_driver.h
drm/ttm: add io_mem_pfn callback
[mirror_ubuntu-bionic-kernel.git] / include / drm / ttm / ttm_bo_driver.h
index 3641c6128ac2d0f35e71280cb9f0b482d17a086a..6bbd34d25a8de0d2d137ba1b9de82b29990f858a 100644 (file)
@@ -462,6 +462,15 @@ struct ttm_bo_driver {
                              struct ttm_mem_reg *mem);
        void (*io_mem_free)(struct ttm_bo_device *bdev,
                            struct ttm_mem_reg *mem);
+
+       /**
+        * Return the pfn for a given page_offset inside the BO.
+        *
+        * @bo: the BO to look up the pfn for
+        * @page_offset: the offset to look up
+        */
+       unsigned long (*io_mem_pfn)(struct ttm_buffer_object *bo,
+                                   unsigned long page_offset);
 };
 
 /**