mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 14:02:37 -04:00
drm/xe/compat: remove a bunch of compat gem headers
Now that we've switched to struct drm_gem_object and the intel_bo_* interfaces, we no longer need most of the compat gem headers. Remove. Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Acked-by: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/2ac115c5dd5f68da9172e9b5bd3a7eb4e10fce60.1726589119.git.jani.nikula@intel.com
This commit is contained in:
@@ -1 +0,0 @@
|
||||
/* Empty */
|
||||
@@ -1,17 +0,0 @@
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
/*
|
||||
* Copyright © 2023 Intel Corporation
|
||||
*/
|
||||
|
||||
#ifndef _I915_GEM_MMAN_H_
|
||||
#define _I915_GEM_MMAN_H_
|
||||
|
||||
#include "xe_bo_types.h"
|
||||
#include <drm/drm_prime.h>
|
||||
|
||||
static inline int i915_gem_fb_mmap(struct xe_bo *bo, struct vm_area_struct *vma)
|
||||
{
|
||||
return drm_gem_prime_mmap(&bo->ttm.base, vma);
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -1,34 +0,0 @@
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
/*
|
||||
* Copyright © 2022 Intel Corporation
|
||||
*/
|
||||
|
||||
#ifndef _I915_GEM_OBJECT_H_
|
||||
#define _I915_GEM_OBJECT_H_
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#include "xe_bo.h"
|
||||
|
||||
#define i915_gem_object_is_shmem(obj) (0) /* We don't use shmem */
|
||||
|
||||
static inline dma_addr_t i915_gem_object_get_dma_address(const struct xe_bo *bo, pgoff_t n)
|
||||
{
|
||||
/* Should never be called */
|
||||
WARN_ON(1);
|
||||
return n;
|
||||
}
|
||||
|
||||
static inline bool i915_gem_object_is_tiled(const struct xe_bo *bo)
|
||||
{
|
||||
/* legacy tiling is unused */
|
||||
return false;
|
||||
}
|
||||
|
||||
static inline bool i915_gem_object_is_userptr(const struct xe_bo *bo)
|
||||
{
|
||||
/* legacy tiling is unused */
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -1,12 +0,0 @@
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
/*
|
||||
* Copyright © 2022 Intel Corporation
|
||||
*/
|
||||
|
||||
#ifndef _I915_GEM_OBJECT_FRONTBUFFER_H_
|
||||
#define _I915_GEM_OBJECT_FRONTBUFFER_H_
|
||||
|
||||
#define i915_gem_object_get_frontbuffer(obj) NULL
|
||||
#define i915_gem_object_set_frontbuffer(obj, front) (front)
|
||||
|
||||
#endif
|
||||
@@ -1,11 +0,0 @@
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
/* Copyright © 2024 Intel Corporation */
|
||||
|
||||
#ifndef __I915_GEM_OBJECT_TYPES_H__
|
||||
#define __I915_GEM_OBJECT_TYPES_H__
|
||||
|
||||
#include "xe_bo.h"
|
||||
|
||||
#define to_intel_bo(x) gem_to_xe_bo((x))
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user