| 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 drm_scanout_buffer; |
| 11 | struct intel_framebuffer; |
| 12 | struct seq_file; |
| 13 | struct vm_area_struct; |
| 14 | |
| 15 | bool intel_bo_is_tiled(struct drm_gem_object *obj); |
| 16 | bool intel_bo_is_userptr(struct drm_gem_object *obj); |
| 17 | bool intel_bo_is_shmem(struct drm_gem_object *obj); |
| 18 | bool intel_bo_is_protected(struct drm_gem_object *obj); |
| 19 | int intel_bo_fb_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma); |
| 20 | int intel_bo_read_from_page(struct drm_gem_object *obj, u64 offset, void *dst, int size); |
| 21 | |
| 22 | struct intel_frontbuffer *intel_bo_frontbuffer_get(struct drm_gem_object *obj); |
| 23 | void intel_bo_frontbuffer_ref(struct intel_frontbuffer *front); |
| 24 | void intel_bo_frontbuffer_put(struct intel_frontbuffer *front); |
| 25 | void intel_bo_frontbuffer_flush_for_display(struct intel_frontbuffer *front); |
| 26 | |
| 27 | void intel_bo_describe(struct seq_file *m, struct drm_gem_object *obj); |
| 28 | |
| 29 | #endif /* __INTEL_BO__ */ |
| 30 |
