Commit 2ae68b01 authored by Jani Nikula's avatar Jani Nikula
Browse files

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: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Acked-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Acked-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/2ac115c5dd5f68da9172e9b5bd3a7eb4e10fce60.1726589119.git.jani.nikula@intel.com
parent 6f4429f9
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
/* Empty */
+0 −17
Original line number Diff line number Diff line
/* 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
+0 −34
Original line number Diff line number Diff line
/* 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
+0 −12
Original line number Diff line number Diff line
/* 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
+0 −11
Original line number Diff line number Diff line
/* 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