summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gem/i915_gem_internal.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2022-02-10 16:45:39 +0100
committerJani Nikula <jani.nikula@intel.com>2022-02-11 11:52:50 +0100
commitb508d01fa577e21a8f574dec09a16e5f2f6c7d3d (patch)
tree3ba0402249c1ba69f977aa1877b9b63960e78e5c /drivers/gpu/drm/i915/gem/i915_gem_internal.h
parentdrm/i915/mst: update slot information for 128b/132b (diff)
downloadlinux-b508d01fa577e21a8f574dec09a16e5f2f6c7d3d.tar.xz
linux-b508d01fa577e21a8f574dec09a16e5f2f6c7d3d.zip
drm/i915: split out i915_gem_internal.h from i915_drv.h
We already have the i915_gem_internal.c file. Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/6715d1f3232c445990630bb3aac00f279f516fee.1644507885.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/gem/i915_gem_internal.h')
-rw-r--r--drivers/gpu/drm/i915/gem/i915_gem_internal.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_internal.h b/drivers/gpu/drm/i915/gem/i915_gem_internal.h
new file mode 100644
index 000000000000..6664e06112fc
--- /dev/null
+++ b/drivers/gpu/drm/i915/gem/i915_gem_internal.h
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2022 Intel Corporation
+ */
+
+#ifndef __I915_GEM_INTERNAL_H__
+#define __I915_GEM_INTERNAL_H__
+
+#include <linux/types.h>
+
+struct drm_i915_gem_object;
+struct drm_i915_gem_object_ops;
+struct drm_i915_private;
+
+struct drm_i915_gem_object *
+i915_gem_object_create_internal(struct drm_i915_private *i915,
+ phys_addr_t size);
+struct drm_i915_gem_object *
+__i915_gem_object_create_internal(struct drm_i915_private *i915,
+ const struct drm_i915_gem_object_ops *ops,
+ phys_addr_t size);
+
+#endif /* __I915_GEM_INTERNAL_H__ */