1 /* SPDX-License-Identifier: MIT */ 2 /* Copyright © 2024 Intel Corporation */ 3 4 #ifndef __INTEL_BO__ 5 #define __INTEL_BO__ 6 7 #include <linux/types.h> 8 9 struct drm_gem_object; 10 struct seq_file; 11 struct vm_area_struct; 12 13 bool intel_bo_is_tiled(struct drm_gem_object *obj); 14 bool intel_bo_is_userptr(struct drm_gem_object *obj); 15 bool intel_bo_is_shmem(struct drm_gem_object *obj); 16 bool intel_bo_is_protected(struct drm_gem_object *obj); 17 void intel_bo_flush_if_display(struct drm_gem_object *obj); 18 int intel_bo_fb_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma); 19 int intel_bo_read_from_page(struct drm_gem_object *obj, u64 offset, void *dst, int size); 20 21 struct intel_frontbuffer *intel_bo_get_frontbuffer(struct drm_gem_object *obj); 22 struct intel_frontbuffer *intel_bo_set_frontbuffer(struct drm_gem_object *obj, 23 struct intel_frontbuffer *front); 24 25 void intel_bo_describe(struct seq_file *m, struct drm_gem_object *obj); 26 27 #endif /* __INTEL_BO__ */ 28